* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.app-container {
  height: 100vh;
  display: flex;
}
.sidebar {
  width: 280px;
  background-color: #ffffff;
  color: white;
  padding: 10px;
}
.logo {
  margin: 10px;
  display: flex;
  gap: 10px;
}
.sidebar .logo h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #4f46e5;
}
.logo-icon {
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4f46e5;
  border-radius: 10px;
  padding: 5px 3px;
}
nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
nav .deep-work p {
  font-size: 14px;
  color: #94a3b8;
  font-family: Arial;
  font-weight: bold;
}
nav button {
  background-color: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 15px;
  cursor: pointer;
}
nav #pomodoro {
  background: #fff1f2 !important;
  color: #f43f5e !important;
  padding: 10px 20px;
}
nav link:hover {
  box-shadow: 0 10px 25px -5px rgba(244, 63, 94.4);
}
.nav-link.active {
  background-color: #4f46e5;
  color: #ffffff;
  padding: 10px 20px;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.main {
  flex: 1;
  padding: 10px;
  background-color: #f8fafc;
  height: fit-content;
}
.header {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  color: rgb(0, 0, 0);
  padding: 10px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.left-header {
  padding: 10px;
}
.left-header #current-date {
  color: #94a3b8;
}
.right-header {
  display: flex;
  align-items: center;
  gap: 20px;
}
#active-task {
  display: flex;
  flex-direction: column;
  justify-content: end;
}
#global-timer {
  color: #4f46e5;
  font-size: 16px;
  font-weight: bold;
}
.add-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 16px;
  font-weight: bold;
  width: 200px;
  height: 50px;
  border-radius: 20px;
  color: #ffffff;
  background-color: #4f46e5;
  border: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}
.add-new-btn i {
  color: #ffffff;
}
/* --------------------------------- */
#view-port {
  padding: 20px;
}
#view-dashboard .stats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
#view-dashboard .stats .stats-card {
  width: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
#view-dashboard .stats .stats-card .stats-icon {
  height: 40px;
  width: 40px;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background-color: #eef2ff;
  margin-bottom: 15px;
  color: #4f46e5;
}
#view-dashboard .stats .card1 .stats-icon {
  background-color: #eef2ff;
  color: #4f46e5;
}
#view-dashboard .stats .card2 .stats-icon {
  background: #ecfdf5;
  color: #059669;
}
#view-dashboard .stats .card3 .stats-icon {
  background: #fff1f2;
  color: #e11d48;
}
#view-dashboard .stats .card4 .stats-icon {
  background: #fffbeb;
  color: #d97706;
}
#view-dashboard .stats .stats-card p {
  color: #94a3b8;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}
#view-dashboard .stats .stats-card h3 {
  font-size: 24px;
  font-weight: bold;
}
canvas {
  width: 100%;
  max-width: 100%;
}
.dashboard-charts {
  display: flex;
  gap: 10px;
}
.chart-card {
  width: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.recent-missions {
  width: 30%;
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.recent-missions span {
  text-decoration: underline;
  color: #4f46e5;
  font-weight: bold;
}
.recent-missions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
/* Kanban */

.kanban-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .kanban-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kanban-column.in-progress {
  background: rgba(79, 70, 229, 0.1);
  border-radius: 40px;
  padding: 16px;
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.kanban-column.to-do {
  background: rgba(217, 119, 6, 0.1);
  border-radius: 40px;
  padding: 16px;
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.kanban-column.done {
  background: rgba(5, 150, 105, 0.1);
  border-radius: 40px;
  padding: 16px;
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 24px;
}

.column-header h5 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #94a3b8;
}

.column-header h5 + span {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.in-progress .column-header h5 {
  color: #4f46e5;
}

.in-progress .column-header span {
  background: #4f46e5;
  color: white;
}
.to-do .column-header h5 {
  color: #d97706;
}

.to-do .column-header span {
  background: #d97706;
  color: white;
}
.done .column-header h5 {
  color: #059669;
}

.done .column-header span {
  background: #059669;
  color: white;
}
.task-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 500px;
  padding-bottom: 100px;
}

.task-card {
  background: white;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s;
}
.task-card {
  cursor: grab;
}

.task-card:active {
  cursor: grabbing;
}

.task-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.task-card .category {
  font-size: 11px;
  font-weight: bold;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 5px;
}

.task-card .delete-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
}

.task-card .delete-btn:hover {
  color: #f43f5e;
}

.task-card h4 {
  margin: 5px 0;
}

.priority-p1 {
  border-left: 5px solid #ef4444;
}
.priority-p2 {
  border-left: 5px solid #f59e0b;
}
.priority-p3 {
  border-left: 5px solid #3b82f6;
}
.task-footer {
  text-align: right;
}
.task-footer .task-time {
  margin: 10px;
}
.task-footer .toggle-timer {
  color: #4f46e5;
  background-color: rgba(79, 70, 229, 0.1);
  font-size: 16px;
  height: 30px;
  width: 30px;
  border: none;
  border-radius: 50%;
}
/* -------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: rgba(15, 23, 42, 0.4);
  /* backdrop-filter: blur(12px); */
  padding: 24px;
}
.modal.show {
  display: flex;
}
.modal-inner {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.close-x {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  line-height: 20px;
  border: 1px solid #4f46e5;
  color: #4f46e5;
}
.modal-head h3 {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
}

.modal-form label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-left: 8px;
  margin-bottom: 8px;
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 24px;
  border-radius: 32px;
  border: none;
  background: #f8fafc;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 24px;
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: flex;
  justify-content: space-between;
}

.modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  
}

.launch-btn {
  flex: 2;
  background: #4f46e5;
  color: white;
  padding: 24px;
  border-radius: 32px;
  font-weight: 800;
  font-size: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.cancel-btn {
  flex: 1;
  background: #f1f5f9;
  color: #64748b;
  padding: 24px;
  border-radius: 32px;
  font-weight: 700;
  font-size: 20px;
  border: none;
  cursor: pointer;
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
/* ------------------ */
.donut-container {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
}

.donut {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin: 40px auto;
  background: conic-gradient(
    #4f46e5 0deg 120deg,
    #f43f5e 120deg 240deg,
    #f59e0b 240deg 330deg,
    #10b981 330deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-center {
  width: 230px;
  height: 230px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-center strong {
  font-size: 34px;
  color: black;
  margin-bottom: 10px;
}

.donut-center span {
  font-size: 20px;
  color: #64748b;
}

/* Legend */
.donut-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 16px;
}

.donut-legend .c {
  width: 20px;
  height: 10px;
  display: inline-block;
  margin-right: 6px;
}

.work {
  background: #4f46e5;
}
.study {
  background: #f43f5e;
}
.personal {
  background: #f59e0b;
}
.health {
  background: #10b981;
}
/* --------------------------------- */
/* Pomodoro Overlay */
#pomodoro-overlay {
  width: 100%;
  height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 100px;
  background: #0f172a;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.close-btn:hover {
  color: white;
}

/* Circle Timer */
.pomo-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(
    #4f46e5 0deg,
    rgba(255, 255, 255, 0.1) 0deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pomo-circle-inner {
  width: 260px;
  height: 260px;
  background: #37455b;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pomo-text span {
  text-align: center;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #a5b4fc;
}

.pomo-text h2 {
  font-size: 60px;
  margin-top: 8px;
  font-weight: 800;
  text-align: center;
}

.pomo-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.pomo-buttons button {
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s;
}

#pomo-btn {
  background: #4f46e5;
  color: white;
}

.pomo-buttons button:last-child {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Animation effect */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.active-timer-glow {
  animation: pulse 2s infinite;
}
.hidden {
  display: none;
}
/* ---------------- */
/* .timeline-wrapper {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  overflow-x: auto;
} */
.timeline-wrapper {
  background: #fff;
  position: relative;
  border-radius: 24px;
  height: 510px;
  width: 1200px; 
  overflow-x: auto; 
  overflow-y: auto; 
  box-sizing: border-box;
   box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  overflow-x: hidden;
}
/* Header */
.timeline-view .title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px;
  font-weight: bold;
  margin-left: 500px;
  margin-bottom: 20px;
  color: #37455b;
}
.timeline-header {
  font-family: "Plus Jakarta Sans", sans-serif;
  display: grid;
  grid-template-columns: 200px repeat(12, 1fr); 
  text-align: center;
  padding-top: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #64748b;
  height: 60px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

/* Rows */
.timeline-body {
  margin-top: 20px;
  padding: 0 15px;
}
.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 200px repeat(12, 1fr);
  height: 60px;
  margin-bottom: 10px;
  border-width: 1px solid #37455b;
}

/* Task Bar */
.task-bar {
  font-family: "Plus Jakarta Sans", sans-serif;
  position: absolute;
  height: 100%;
  top: 6px;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
}

/* Priority colors */
.cat-Work {
  background: #fee2e2;
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

.cat-Study {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.cat-Health {
  background: rgb(16, 185, 129, 0.1);
  color: #065f46;
  border-left: 4px solid #10b981;
}
.cat-Personal {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-left: 4px solid #4f46e5;
}

/* ---------------------- */
.tl-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tl-day .day-name {
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
}

.tl-day .day-number {
  font-size: 18px;
  font-weight: 900;
}
