/* ══════════════════════════════════════════════════
   KARIRGATE — DASHBOARD CSS
   Requires: styles.css (base variables & utilities)
══════════════════════════════════════════════════ */

/* ── LAYOUT ── */
.dashboard-root {
  display: flex;
  min-height: 100vh;
  background: var(--off);
}

/* ══════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════ */
.d-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.dsb-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(123,189,212,0.12);
}

.dsb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 18px;
}
.dsb-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
}
.dsb-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 25px;
  color: white;
  letter-spacing: 0.03em;
}

.dsb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(123,189,212,0.15);
  border-radius: 10px;
  padding: 8px 12px;
}
.dsb-search i { font-size: 12px; color: rgba(255,255,255,0.3); }
.dsb-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  width: 100%;
  font-family: inherit;
}
.dsb-search input::placeholder { color: rgba(255,255,255,0.25); }

.dsb-nav { flex: 1; padding: 12px 0; }

.dsb-section-label {
  padding: 12px 22px 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.dsb-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  border-left: 3px solid transparent;
}
.dsb-item:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}
.dsb-item.active {
  color: white;
  background: rgba(123,189,212,0.12);
  border-left-color: var(--sky);
}

.dsb-item .di-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
.dsb-item.active .di-icon { background: rgba(123,189,212,0.2); }

.dsb-item .di-label { flex: 1; font-weight: 500; }

.dsb-item .di-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
}
.dsb-item .di-badge.orange { background: var(--orange); color: white; }

.dsb-footer {
  padding: 16px 16px 20px;
  border-top: 1px solid rgba(123,189,212,0.12);
}
.dsb-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.dsb-user-card:hover { background: rgba(255,255,255,0.07); }

.dsb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky) 0%, var(--mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
  border: 2px solid rgba(123,189,212,0.4);
}
.dsb-footer {
  padding: 16px 16px 20px;
  border-top: 1px solid rgba(123,189,212,0.12);
}

.dsb-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}
.dsb-user-card:hover { background: rgba(255,255,255,0.07); }

.dsb-user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  width: 0; /* ← tambahkan ini, paksa flex yang atur lebarnya */
}

.dsb-user-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px; /* ← nilai fixed, sama di semua halaman */
}
.dsb-user-role {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dsb-user-menu { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════ */
.d-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── TOP BAR ── */
.d-topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.d-topbar-left { display: flex; align-items: center; gap: 8px; }
.d-topbar-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: var(--navy);
}
.d-topbar-left span {
  font-size: 15px;
  color: var(--text3);
  padding: center;
  background: var(--sky4);
  border-radius: 999px;
}
.d-topbar-right { display: flex; align-items: center; gap: 10px; }

.d-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.d-icon-btn:hover { background: var(--sky4); border-color: var(--sky); }
.d-icon-btn .notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  border: 1.5px solid white;
}

/* ── PAGE BODY ── */
.d-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── ACTIVITY STRIP ── */
.activity-strip {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
}
.activity-strip::-webkit-scrollbar { height: 0; }

.act-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.act-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.act-text { font-size: 12px; color: var(--text2); }
.act-text strong { color: var(--navy); font-weight: 600; }
.act-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* ── GREETING ── */
.d-greeting {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy2) 60%, #2a4a6e 100%);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.d-greeting::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(123,189,212,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.d-greeting-blob {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,189,212,0.12) 0%, transparent 70%);
  right: -60px; top: -80px;
}
.d-greeting-left { position: relative; z-index: 1; }

.d-greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123,189,212,0.15);
  border: 1px solid rgba(123,189,212,0.3);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--sky2);
  margin-bottom: 10px;
}
.d-greeting-badge-dot {
  width: 5px; height: 5px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 2s infinite;
}

.d-greeting h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: white;
  margin-bottom: 6px;
}
.d-greeting h2 em { color: var(--sky2); font-style: normal; }
.d-greeting p { font-size: 13px; color: rgba(255,255,255,0.55); }

.d-greeting-right { display: flex; gap: 12px; position: relative; z-index: 1; }
.d-greeting-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(123,189,212,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
}
.dgs-num { font-size: 22px; font-weight: 600; color: white; }
.dgs-lbl { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.dgs-delta { font-size: 10px; color: #4ade80; margin-top: 4px; }

/* ── STATS ROW ── */
.d-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.d-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  cursor: default;
}
.d-stat-card:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,43,74,0.07);
}

.dsc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.dsc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.dsc-trend {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
}
.trend-up { background: #edfdf4; color: #1a7a52; }
.trend-neutral { background: var(--sky4); color: var(--mid); }

.dsc-num { font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1; }
.dsc-lbl { font-size: 12px; color: var(--text3); margin-top: 3px; }

/* ── MID & BOTTOM GRID ── */
.d-mid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.d-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── CARD BASE ── */
.d-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.d-card-head {
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.d-card-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.d-card-link { font-size: 12px; color: var(--sky); cursor: pointer; text-decoration: none; }
.d-card-link:hover { color: var(--mid); }
.d-card-body { padding: 0 20px 18px; }

/* ── APPLICATION LIST ── */
.app-list { display: flex; flex-direction: column; }

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.app-row:last-child { border-bottom: none; }
.app-row:hover {
  background: var(--sky4);
  margin: 0 -20px;
  padding: 11px 20px;
  border-radius: 8px;
}

.app-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.app-info { flex: 1; min-width: 0; }
.app-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-meta-sep { color: var(--border2); }

.app-status {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.st-interview { background: #edfdf4; color: #1a7a52; }
.st-review    { background: #fff8e6; color: #9a6700; }
.st-applied   { background: var(--sky4); color: var(--mid); }
.st-rejected  { background: #fff0f0; color: #b94040; }
.st-offer     { background: #f0fff4; color: #1a7a52; border: 1px solid #b2efd0; }

/* ── PROFILE WIDGET ── */
.profile-widget { padding: 20px; }

.pw-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pw-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky) 0%, var(--mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  border: 3px solid var(--sky3);
  flex-shrink: 0;
}
.pw-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.pw-title { font-size: 12px; color: var(--text2); margin-top: 2px; }
.pw-badge {
  font-size: 10px;
  color: var(--green);
  background: #edfdf4;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
  display: inline-block;
}

.pw-progress { margin-bottom: 14px; }
.pw-prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 6px;
}
.pw-prog-label strong { color: var(--navy); font-weight: 600; }
.pw-prog-bar { height: 6px; background: var(--sky4); border-radius: 999px; overflow: hidden; }
.pw-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky) 0%, var(--mid) 100%);
  border-radius: 999px;
  width: 78%;
  transition: width 0.6s ease;
}

.pw-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.pw-skill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--sky4);
  color: var(--mid);
  font-weight: 500;
}
.pw-skill.more { background: var(--off); color: var(--text3); }

.pw-divider { height: 1px; background: var(--border); margin-bottom: 14px; }

.pw-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-bottom: 14px;
}
.pw-stat:not(:last-child) { border-right: 1px solid var(--border); }
.pw-stat-num { font-size: 18px; font-weight: 600; color: var(--navy); }
.pw-stat-lbl { font-size: 10px; color: var(--text3); margin-top: 2px; }

.pw-tips {
  background: var(--sky4);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.pw-tips-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pw-tips-item {
  font-size: 11px;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.pw-tips-item i { color: var(--orange); font-size: 9px; margin-top: 3px; flex-shrink: 0; }

.pw-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pw-btn:hover { background: var(--sky4); border-color: var(--sky); }

/* ── RECOMMENDED JOBS ── */
.rec-grid { display: flex; flex-direction: column; gap: 10px; }

.rec-job {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.rec-job:hover {
  border-color: var(--sky);
  background: var(--sky4);
  transform: translateX(2px);
}

.rec-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.rec-info { flex: 1; min-width: 0; }
.rec-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.rec-company { font-size: 11px; color: var(--text3); margin-top: 1px; }
.rec-bottom { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.rec-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--sky4);
  color: var(--mid);
  font-weight: 500;
}
.rec-match { font-size: 10px; color: var(--green); font-weight: 600; }
.rec-salary { font-size: 12px; font-weight: 600; color: var(--navy); text-align: right; white-space: nowrap; }
.rec-save { font-size: 13px; color: var(--text3); cursor: pointer; margin-left: 6px; }
.rec-save:hover { color: var(--sky); }

/* ── INTERVIEW SCHEDULE ── */
.schedule-list { display: flex; flex-direction: column; gap: 10px; }

.sched-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
}
.sched-date {
  width: 46px; height: 50px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sched-day { font-size: 18px; font-weight: 600; color: white; line-height: 1; }
.sched-month {
  font-size: 9px;
  color: var(--sky2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.sched-info { flex: 1; }
.sched-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.sched-company { font-size: 11px; color: var(--text3); margin-top: 2px; }
.sched-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text2);
  margin-top: 4px;
}
.sched-time i { font-size: 10px; color: var(--sky); }

.sched-type {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.sched-online { background: #edfdf4; color: #1a7a52; }
.sched-onsite { background: var(--sky4); color: var(--mid); }

/* ── SCHEDULE INFO BOX ── */
.sched-info-box {
  background: var(--sky4);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text2);
}
.sched-info-box i { color: var(--mid); font-size: 13px; flex-shrink: 0; }
.sched-info-box strong { color: var(--navy); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .d-stats    { grid-template-columns: repeat(2, 1fr); }
  .d-mid      { grid-template-columns: 1fr; }
  .d-bottom   { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .d-sidebar  { width: 68px; }
  .dsb-header { padding: 16px 12px; }
  .dsb-logo-text,
  .dsb-search,
  .dsb-section-label,
  .di-label,
  .di-badge,
  .dsb-user-info,
  .dsb-user-menu,
  .d-greeting-right { display: none; }
  .dsb-item   { padding: 10px; justify-content: center; }
  .dsb-user-card { padding: 6px; justify-content: center; }
  .d-body     { padding: 20px 16px; }
  .d-topbar   { padding: 12px 16px; }
  .d-greeting { padding: 20px; }
}

@media (max-width: 560px) {
  .d-stats        { grid-template-columns: 1fr 1fr; }
  .d-greeting h2  { font-size: 20px; }
}
    /* ─── Verified Badge ──────────────────────────────────────── */
    .verified-badge {
      display: inline-flex; align-items: center; gap: 4px;
      background: linear-gradient(135deg, #0ea5e9, #6366f1);
      color: #fff; font-size: 10px; font-weight: 600;
      padding: 2px 7px; border-radius: 999px; letter-spacing: .3px;
      vertical-align: middle;
    }
    .verified-badge i { font-size: 9px; }

    /* ─── Sidebar user footer – verified / verify-now row ────── */
    .dsb-user-sub {
      display: flex; align-items: center; gap: 5px;
      margin-top: 1px;
    }
    .sb-verified-pill {
      display: inline-flex; align-items: center; gap: 4px;
      background: linear-gradient(135deg, #0ea5e9, #6366f1);
      color: #fff; font-size: 10px; font-weight: 600;
      padding: 2px 8px; border-radius: 999px; letter-spacing: .3px;
      white-space: nowrap;
    }
    .sb-verified-pill i { font-size: 9px; }
    .sb-verify-now {
      display: inline-flex; align-items: center; gap: 4px;
      background: linear-gradient(135deg, #fff7ed, #fff);
      border: 1px solid #fed7aa;
      color: #ea580c; font-size: 10px; font-weight: 600;
      padding: 2px 8px; border-radius: 999px; letter-spacing: .3px;
      text-decoration: none; white-space: nowrap;
      transition: background .2s, border-color .2s;
    }
    .sb-verify-now:hover { background: linear-gradient(135deg, #ffedd5, #fff); border-color: #fb923c; }
    .sb-verify-now i { font-size: 9px; }