/* ============================================================
   DASHBOARD.CSS — Jadwal-in
   ============================================================ */
*,
*::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;
}

html,
body {
      max-width: 100%;
      overflow-x: hidden;
}

a {
      text-decoration: none;
}

/* ── Shared Navbar (same as membuat_jadwal) ── */
/* Sudah diganti menggunakan navbar.css sebagai css global */

/* ── 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;
}

.page-header-actions {
      display: flex;
      gap: 10px;
      align-items: center;
}

.date-badge {
      background: #eef3fb;
      border: 1px solid #c5d0e0;
      color: #1f3042;
      font-size: 12px;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 20px;
}

/* ── Dashboard main layout ── */
.dashboard-main {
      max-width: 1400px;
      margin: 0 auto;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
}

.dash-row {
      display: grid;
      gap: 16px;
}

.dash-row:first-child {
      grid-template-columns: 2fr 1.5fr 1fr;
}

.dash-row:last-child {
      grid-template-columns: 1.5fr 1fr;
}

/* ── Cards ── */
.dash-card {
      background: white;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 4px 20px rgba(31, 48, 66, 0.07);
      border: 1px solid #e0e7f0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 220px;
}

.dash-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid #f0f4fa;
      padding-bottom: 10px;
}

.dash-card-header i {
      color: #3f6ea0;
      font-size: 15px;
}

.dash-card-header h3 {
      font-size: 14px;
      font-weight: 600;
      color: #1f3042;
      flex: 1;
}

.dash-link {
      font-size: 11px;
      color: #3f6ea0;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
}

.dash-link:hover {
      text-decoration: underline;
}

/* ── Today schedule ── */
.today-day-badge {
      font-size: 11px;
      font-weight: 700;
      background: #3f6ea0;
      color: white;
      padding: 2px 10px;
      border-radius: 99px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
}

.today-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      max-height: 280px;
}

.today-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #f8fafc;
      border-left: 3px solid #3f6ea0;
      transition: background 0.2s;
}

.today-item.agenda-item-dash {
      border-left-color: #2d7d32;
}

.today-item.done-item {
      opacity: 0.45;
}

.today-item-time {
      font-size: 11px;
      font-weight: 600;
      color: #3f6ea0;
      white-space: nowrap;
}

.today-item-name {
      font-size: 13px;
      font-weight: 500;
      color: #1f3042;
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
}

.today-item-sub {
      font-size: 11px;
      color: #9aabb8;
}

.today-empty {
      font-size: 13px;
      color: #a0aec0;
      text-align: center;
      padding: 30px 0;
}

.today-empty i {
      display: block;
      font-size: 2rem;
      margin-bottom: 8px;
}

/* ── Upcoming ── */
.upcoming-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      max-height: 280px;
}

.upcoming-item {
      display: flex;
      gap: 10px;
      padding: 8px 12px;
      border-radius: 10px;
      background: #f8fafc;
}

.upcoming-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #3f6ea0;
      flex-shrink: 0;
      margin-top: 5px;
}

.upcoming-dot.agenda {
      background: #2d7d32;
}

.upcoming-info {
      flex: 1;
      min-width: 0;
}

.upcoming-info strong {
      font-size: 13px;
      color: #1f3042;
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
}

.upcoming-info span {
      font-size: 11px;
      color: #9aabb8;
}

.upcoming-empty {
      font-size: 13px;
      color: #a0aec0;
      text-align: center;
      padding: 24px 0;
}

/* ── Mini stats ── */
.mini-stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
}

.mini-stat {
      background: #f8fafc;
      border-radius: 12px;
      padding: 12px;
      text-align: center;
}

.mini-stat-val {
      font-family: 'Orbitron', sans-serif;
      font-size: 1.4rem;
      font-weight: 700;
      color: #3f6ea0;
      display: block;
}

.mini-stat-lbl {
      font-size: 11px;
      color: #9aabb8;
      margin-top: 2px;
      display: block;
}

/* ── Quick task ── */
.quick-task-input {
      display: flex;
      gap: 8px;
}

.quick-task-input input {
      flex: 1;
      padding: 8px 12px;
      border: 1.5px solid #d1d9e6;
      border-radius: 8px;
      font-size: 13px;
      font-family: 'Poppins', sans-serif;
      outline: none;
      transition: border-color 0.2s;
}

.quick-task-input input:focus {
      border-color: #3f6ea0;
}

.quick-task-input button {
      padding: 8px 14px;
      background: #1f3042;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.2s;
}

.quick-task-input button:hover {
      background: #2d4a6b;
}

.today-task-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
      max-height: 220px;
      overflow-y: auto;
}

.task-item-dash {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border-radius: 10px;
      background: #f8fafc;
      border: 1px solid #e8edf5;
      transition: background 0.2s;
}

.task-item-dash:hover {
      background: #f0f5fb;
}

.task-check {
      width: 18px;
      height: 18px;
      border: 2px solid #d1d9e6;
      border-radius: 5px;
      cursor: pointer;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, border-color 0.2s;
}

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

.task-name-dash {
      flex: 1;
      font-size: 13px;
      color: #1f3042;
}

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

.task-delete-dash {
      color: #cbd5e0;
      cursor: pointer;
      font-size: 12px;
      transition: color 0.2s;
}

.task-delete-dash:hover {
      color: #c53030;
}

.task-empty {
      font-size: 13px;
      color: #a0aec0;
      text-align: center;
      padding: 20px 0;
}

/* ── Reminder ── */
.reminder-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
      overflow-y: auto;
      max-height: 200px;
}

.reminder-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #fffaf0;
      border-left: 3px solid #d69e2e;
}

.reminder-item.urgent {
      background: #fff5f5;
      border-left-color: #c53030;
}

.reminder-item i {
      color: #d69e2e;
      flex-shrink: 0;
      margin-top: 2px;
}

.reminder-item.urgent i {
      color: #c53030;
}

.reminder-item-text strong {
      font-size: 12px;
      color: #1f3042;
      display: block;
}

.reminder-item-text span {
      font-size: 11px;
      color: #9aabb8;
}

.reminder-empty {
      font-size: 13px;
      color: #a0aec0;
      text-align: center;
      padding: 24px 0;
}

.reminder-setting {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid #f0f4fa;
      padding-top: 12px;
      margin-top: auto;
}

.reminder-setting label {
      font-size: 12px;
      color: #9aabb8;
      font-weight: 500;
}

.toggle-reminder-btn {
      padding: 5px 14px;
      background: #3f6ea0;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 500;
      font-family: 'Poppins', sans-serif;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: background 0.2s;
}

.toggle-reminder-btn:hover {
      background: #2d5080;
}

.toggle-reminder-btn.active {
      background: #276749;
}

.reminder-status {
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 99px;
      font-weight: 600;
}

.reminder-status.on {
      background: #d4edda;
      color: #276749;
}

.reminder-status.off {
      background: #f8f9fa;
      color: #9aabb8;
}

/* ── Responsive ── */
@media (max-width:1100px) {
      .dash-row:first-child {
            grid-template-columns: 1fr 1fr;
      }

      .dash-card--stats {
            grid-column: 1/-1;
      }

      .mini-stats-grid {
            grid-template-columns: repeat(4, 1fr);
      }
}

@media (max-width:768px) {
      /* .navbar-nav dihandle oleh navbar.css */

      .dash-row,
      .dash-row:first-child,
      .dash-row:last-child {
            grid-template-columns: 1fr;
      }

      .dashboard-main {
            padding: 12px;
      }
}

@media (max-width:480px) {
      /* .navbar-inner & .navbar-brand span dihandle oleh navbar.css */

      .mini-stats-grid {
            grid-template-columns: 1fr 1fr;
      }
}