*,
*::before,
*::after {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
}

body,
input,
button,
select,
textarea {
      font-family: 'Poppins', sans-serif;
}

body {
      background: #f4f7fb;
      color: #1f3042;
      min-height: 100vh;
}

a {
      text-decoration: none;
}

/* Navbar */
/* sudah di handle navbar.css sebagai css global */

.logout-btn {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.7);
      border-radius: 8px;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: background 0.2s, color 0.2s;
      font-family: 'Poppins', sans-serif;
}

.logout-btn:hover {
      background: rgba(197, 48, 48, 0.35);
      color: #fff;
}

/* Page header */
.page-header {
      background: white;
      border-bottom: 1px solid #dde3ee;
      padding: 16px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
}

.page-header-content h2 {
      font-size: 17px;
      color: #1f3042;
      font-weight: 600;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 8px;
}

.page-header-content h2 i {
      color: #3f6ea0;
}

.page-header-content p {
      font-size: 13px;
      color: #6b7a90;
}

.task-progress-wrap {
      font-size: 12px;
      color: #9aabb8;
      font-weight: 500;
}

/* Main layout */
.tasks-main {
      max-width: 1400px;
      margin: 0 auto;
      padding: 20px;
      display: flex;
      gap: 20px;
      align-items: flex-start;
}

/* Sidebar */
.tasks-sidebar {
      width: 320px;
      flex-shrink: 0;
      background: white;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 4px 20px rgba(31, 48, 66, 0.08);
      border: 1px solid #e0e7f0;
      position: sticky;
      top: 72px;
}

.tasks-sidebar h3 {
      font-size: 14px;
      font-weight: 600;
      color: #1f3042;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid #e8edf5;
      display: flex;
      align-items: center;
      gap: 8px;
}

.tasks-sidebar h3 i {
      color: #3f6ea0;
}

.t-input {
      margin: 10px 0;
}

.t-input label {
      display: block;
      font-size: 12px;
      font-weight: 500;
      color: #4a5568;
      margin-bottom: 4px;
}

.t-input input,
.t-input select,
.t-input textarea {
      display: block;
      width: 100%;
      padding: 7px 10px;
      border: 1.5px solid #d1d9e6;
      border-radius: 8px;
      font-size: 13px;
      font-family: 'Poppins', sans-serif;
      outline: none;
      transition: border-color 0.2s;
      background: white;
      resize: vertical;
}

.t-input input:focus,
.t-input select:focus,
.t-input textarea:focus {
      border-color: #3f6ea0;
      box-shadow: 0 0 0 3px rgba(63, 110, 160, 0.1);
}

.req {
      color: #e53e3e;
      font-weight: 700;
}

.optional {
      color: #9aabb8;
      font-size: 11px;
      font-weight: 400;
}

.submit-btn {
      width: 100%;
      padding: 10px;
      background: #1f3042;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 14px;
      transition: background 0.2s;
      font-family: 'Poppins', sans-serif;
      box-shadow: 0 2px 8px rgba(31, 48, 66, 0.2);
}

.submit-btn:hover {
      background: #2d4a6b;
}

.submit-btn.update-mode {
      background: #276749;
}

/* Task list area */
.tasks-content {
      flex: 1;
      min-width: 0;
}

.tasks-filter-bar {
      background: white;
      border-radius: 12px;
      padding: 12px 16px;
      margin-bottom: 14px;
      box-shadow: 0 2px 10px rgba(31, 48, 66, 0.06);
      border: 1px solid #e0e7f0;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
}

.filter-group {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      flex: 1;
}

.filter-chip {
      padding: 4px 12px;
      border: 1.5px solid #d1d9e6;
      background: white;
      color: #6b7a90;
      font-size: 12px;
      font-weight: 500;
      border-radius: 20px;
      cursor: pointer;
      font-family: 'Poppins', sans-serif;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 4px;
}

.filter-chip:hover {
      border-color: #1f3042;
      color: #1f3042;
}

.filter-chip.active {
      background: #1f3042;
      color: white;
      border-color: #1f3042;
}

.prio-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
}

.prio-dot.red {
      background: #c53030;
}

.prio-dot.yellow {
      background: #d69e2e;
}

.prio-dot.green {
      background: #276749;
}

.btn-clear-done {
      padding: 5px 12px;
      background: white;
      color: #c53030;
      border: 1.5px solid #fed7d7;
      border-radius: 8px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: 'Poppins', sans-serif;
      transition: all 0.2s;
      white-space: nowrap;
}

.btn-clear-done:hover {
      background: #c53030;
      color: white;
      border-color: #c53030;
}

/* Task group */
.task-group {
      margin-bottom: 20px;
}

.task-group-title {
      font-size: 11px;
      font-weight: 700;
      color: #9aabb8;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-bottom: 8px;
      padding: 0 4px;
}

.task-card {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      background: white;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 8px;
      border: 1px solid #e8edf5;
      box-shadow: 0 2px 8px rgba(31, 48, 66, 0.04);
      transition: box-shadow 0.2s, border-color 0.2s;
      cursor: default;
}

.task-card:hover {
      box-shadow: 0 4px 16px rgba(31, 48, 66, 0.1);
      border-color: #c5d0e0;
}

.task-card.done {
      opacity: 0.5;
}

.task-card.high {
      border-left: 3px solid #c53030;
}

.task-card.normal {
      border-left: 3px solid #d69e2e;
}

.task-card.low {
      border-left: 3px solid #276749;
}

.task-card.overdue {
      background: #fff5f5;
      border-color: #fed7d7;
}

.task-check-box {
      width: 20px;
      height: 20px;
      border: 2px solid #d1d9e6;
      border-radius: 6px;
      flex-shrink: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 2px;
      transition: all 0.2s;
}

.task-check-box:hover {
      border-color: #3f6ea0;
}

.task-check-box.checked {
      background: #276749;
      border-color: #276749;
      color: white;
      font-size: 10px;
}

.task-body {
      flex: 1;
      min-width: 0;
}

.task-title {
      font-size: 14px;
      font-weight: 500;
      color: #1f3042;
      margin-bottom: 3px;
}

.task-title.done {
      text-decoration: line-through;
      color: #a0aec0;
}

.task-meta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 4px;
}

.task-meta span {
      font-size: 11px;
      color: #9aabb8;
      display: flex;
      align-items: center;
      gap: 4px;
}

.task-meta span i {
      font-size: 10px;
}

.task-meta .overdue-text {
      color: #c53030;
      font-weight: 600;
}

.task-note {
      font-size: 12px;
      color: #6b7a90;
      margin-top: 5px;
      line-height: 1.4;
}

.task-actions {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex-shrink: 0;
}

.task-btn {
      padding: 4px 10px;
      border: 1.5px solid #d1d9e6;
      border-radius: 7px;
      background: white;
      color: #6b7a90;
      cursor: pointer;
      font-size: 11px;
      font-family: 'Poppins', sans-serif;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 4px;
}

.task-btn:hover {
      background: #1f3042;
      color: white;
      border-color: #1f3042;
}

.task-btn.del:hover {
      background: #c53030;
      border-color: #c53030;
      color: white;
}

/* Empty state */
.tasks-empty {
      text-align: center;
      padding: 50px 20px;
      color: #a0aec0;
}

.tasks-empty i {
      font-size: 2.5rem;
      display: block;
      margin-bottom: 12px;
      color: #d1d9e6;
}

.tasks-empty p {
      font-size: 14px;
}

/* Confirm dialog */
.confirm-dialog {
      display: none;
      position: fixed;
      z-index: 10000;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
      justify-content: center;
      align-items: center;
}

.confirm-dialog-content {
      background: white;
      padding: 28px 24px;
      border-radius: 16px;
      max-width: 320px;
      width: 90%;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.confirm-icon {
      font-size: 2rem;
      color: #c53030;
      margin-bottom: 10px;
}

#confirmText {
      font-size: 14px;
      color: #1f3042;
      font-weight: 500;
}

.confirm-buttons {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 18px;
}

.confirm-button {
      padding: 8px 18px;
      border: 2px solid #1f3042;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      background: white;
      color: #1f3042;
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: 'Poppins', sans-serif;
      transition: all 0.2s;
}

#confirmYes:hover {
      background: #276749;
      border-color: #276749;
      color: white;
}

.btn-cancel:hover {
      background: #c53030 !important;
      border-color: #c53030 !important;
      color: white !important;
}

/* Toast */
.toast-msg {
      display: none;
      position: fixed;
      top: 70px;
      right: 20px;
      background: #276749;
      color: white;
      padding: 11px 18px;
      border-radius: 10px;
      z-index: 9999;
      font-size: 13px;
      font-weight: 500;
      align-items: center;
      gap: 8px;
      max-width: 300px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.toast-msg.error {
      background: #c53030;
}

/* Responsive */
@media(max-width:1024px) {
      .tasks-main {
            flex-direction: column;
      }

      .tasks-sidebar {
            width: 100%;
            position: static;
      }
}

@media(max-width:768px) {
      .tasks-main {
            padding: 12px;
      }
}

@media(max-width:480px) {}