/* ==========================================================================
   Dashboard & data-page specific layout
   ========================================================================== */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 22px; font-weight: 700; }
.page-header .page-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }
.page-header .today-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-tint); color: var(--secondary);
  font-size: 12.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 22px; }

.chart-card canvas { max-height: 300px; }

.two-col-charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-bottom: 22px; }

.legend-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.8px; }
.legend-row .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 8px; }
.legend-row .val { font-weight: 700; font-family: var(--font-display); }

.activity-quick-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.quick-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Login page */
.login-shell { min-height: 100vh; display: flex; }
.login-visual {
  flex: 1.1;
  position: relative;
  background: linear-gradient(155deg, var(--secondary) 0%, var(--primary) 55%, #4C8DFF 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px;
  color: #fff;
  overflow: hidden;
}
.login-visual::before, .login-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.login-visual::before { width: 420px; height: 420px; top: -140px; right: -140px; }
.login-visual::after { width: 280px; height: 280px; bottom: -100px; left: -80px; background: rgba(255,255,255,.06); }
.login-visual__content { position: relative; z-index: 2; max-width: 460px; }
.login-visual__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; font-size: 14px; }
.login-visual__title { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.22; margin: 32px 0 14px; }
.login-visual__sub { color: rgba(255,255,255,.85); font-size: 14.5px; line-height: 1.6; max-width: 400px; }
.login-illustration { position: relative; z-index: 2; margin-top: 30px; }
.login-stats-row { position: relative; z-index: 2; display: flex; gap: 28px; }
.login-stats-row .l-stat b { font-family: var(--font-display); font-size: 22px; display: block; }
.login-stats-row .l-stat span { font-size: 11.5px; color: rgba(255,255,255,.75); }

.login-form-side {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: var(--bg);
}
.login-form-card { width: 100%; max-width: 400px; animation: pageFade .5s var(--ease); }
.login-form-card .lf-logo { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; box-shadow: var(--shadow-primary); margin-bottom: 22px; }

/* Calendar view (jadwal) */
.calendar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.calendar-day-col { background: var(--card-soft); border-radius: var(--radius-md); padding: 12px; min-height: 320px; }
.calendar-day-col h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 10px; padding-left: 4px; }
.cal-event {
  background: var(--card);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}
.cal-event b { display: block; font-size: 12.5px; }
.cal-event .cal-time { color: var(--text-muted); font-size: 11px; }

/* Detail guru */
.detail-photo-wrap { text-align: center; }
.detail-photo-wrap img { width: 140px; height: 140px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-md); }
.detail-field { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.detail-field:last-child { border-bottom: none; }
.detail-field label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); display: block; margin-bottom: 3px; }
.detail-field .val { font-size: 13.8px; font-weight: 600; }
