/* ============================================================
   CUI Project Hub — style.css
   Brand: #003C6E (navy) | #FF7E27 (orange) | #42BC5C (green)
   Fonts: Quicksand (UI) | Lora (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Quicksand:wght@400;500;600;700&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --navy:        #003C6E;
  --navy-dark:   #002a50;
  --navy-mid:    #00508f;
  --navy-light:  #e8f0f8;
  --navy-faint:  #f0f5fb;
  --orange:      #FF7E27;
  --orange-dk:   #e06818;
  --orange-lt:   #fff4ec;
  --green:       #42BC5C;
  --green-dk:    #34a34d;
  --green-lt:    #edfaf1;
  --red:         #e53e3e;
  --red-lt:      #fef0f0;
  --white:       #ffffff;
  --bg:          #f0f4f9;
  --surface:     #ffffff;
  --border:      #dde3ee;
  --border-soft: #eef1f7;
  --text:        #1a2940;
  --text-muted:  #6b7a99;
  --text-light:  #9aa5be;
  --sidebar-w:   265px;
  --topbar-h:    62px;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 4px rgba(0,40,100,.07);
  --shadow:      0 2px 14px rgba(0,40,100,.10);
  --shadow-md:   0 6px 28px rgba(0,40,100,.13);
  --shadow-lg:   0 16px 48px rgba(0,40,100,.16);
  --transition:  all .18s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6,
button, .btn, label, nav,
.sidebar, .topbar, .card-title,
.badge, th, input, select, textarea,
.ui-font, .form-label, .nav-section-label {
  font-family: 'Quicksand', sans-serif;
}
a { color: var(--navy); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8d3e8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a0aec0; }

/* ══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════════ */
.login-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

/* Left decorative panel */
.login-panel {
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy-mid) 50%, #006ab3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.login-panel::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -150px; right: -150px;
}
.login-panel::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,126,39,.12);
  bottom: -80px; left: -80px;
}
.login-panel-logo { margin-bottom: 40px; position: relative; z-index: 1; }
.login-panel-logo img { height: 56px; filter: brightness(0) invert(1); }
.login-panel-tagline {
  color: rgba(255,255,255,.9);
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.35rem;
  text-align: center;
  line-height: 1.5;
  position: relative; z-index: 1;
  margin-bottom: 32px;
}
.login-panel-tagline strong {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.login-panel-dots {
  display: flex; gap: 8px; position: relative; z-index: 1;
}
.login-panel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.login-panel-dots span:first-child { background: var(--orange); width: 24px; border-radius: 4px; }
.login-panel-dots span:nth-child(2) { background: var(--green); }

/* Right form panel */
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--white);
}
.login-card {
  width: 100%;
  max-width: 420px;
}
.login-card-header { margin-bottom: 36px; }
.login-card-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.login-card-header p {
  color: var(--text-muted);
  font-size: .9rem;
  font-family: 'Lora', serif;
  font-style: italic;
}
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--text-light); font-size: .8rem;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Single-panel fallback (old .login-wrapper usage) */
.login-wrapper-simple {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #005fa3 60%, var(--navy-dark) 100%);
  padding: 20px;
}
.login-wrapper-simple .login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT
   ══════════════════════════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s ease;
  box-shadow: 3px 0 20px rgba(0,0,0,.15);
}

.sidebar-logo {
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sidebar-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.sidebar-logo-text { min-width: 0; }
.sidebar-logo-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.sidebar-logo-text small {
  display: block;
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav { padding: 10px 0; flex: 1; }

.nav-section-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 18px 18px 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  margin: 1px 8px 1px 0;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
  border-left-color: rgba(255,126,39,.6);
}
.sidebar-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-left-color: var(--orange);
  font-weight: 600;
}
.sidebar-nav a .nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-nav a .nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav a .nav-ext {
  font-size: .65rem;
  opacity: .5;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  margin-bottom: 8px;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-weight: 600;
  font-size: .83rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer-links {
  display: flex;
  gap: 4px;
}
.sidebar-footer-links a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  padding: 6px 8px;
  border-radius: 7px;
  transition: var(--transition);
}
.sidebar-footer-links a:hover {
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.8);
}

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: .02em;
}
.avatar-xs  { width: 24px; height: 24px; font-size: .6rem; }
.avatar-sm  { width: 32px; height: 32px; font-size: .72rem; }
.avatar-md  { width: 40px; height: 40px; font-size: .9rem; }
.avatar-lg  { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar-xl  { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-navy   { background: var(--navy); }
.avatar-green  { background: var(--green); }
.avatar-orange { background: var(--orange); }

/* ── Main Content ───────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}
.topbar-hamburger:hover { background: var(--bg); color: var(--navy); }
.topbar-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Notif button */
.notif-btn {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 7px 10px;
  transition: var(--transition);
  line-height: 1;
}
.notif-btn:hover { background: var(--navy-light); color: var(--navy); border-color: var(--navy); }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--orange);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  font-family: 'Quicksand', sans-serif;
}

/* Notification Dropdown */
.notif-wrap { position: relative; }
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 340px;
  max-height: 460px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  z-index: 300;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.notif-dropdown-header strong { font-size: .9rem; color: var(--navy); }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background .12s;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--navy-faint); }
.notif-item.unread:hover { background: var(--navy-light); }
.notif-item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-item-dot.read { background: transparent; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: .84rem; font-weight: 600; color: var(--text); }
.notif-item-msg   { font-size: .78rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.notif-item-time  { font-size: .72rem; color: var(--text-light); margin-top: 4px; }

/* ── Page body ──────────────────────────────────────────────── */
.page-body {
  padding: 28px;
  flex: 1;
}

/* ── Page header ────────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.page-header p {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header-cui {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
}
.card-header-cui h5 {
  margin: 0;
  font-size: .96rem;
  font-weight: 700;
  color: var(--navy);
}
.card-body-cui { padding: 20px; }

/* ── Stats Grid ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.navy   { background: var(--navy-light);  color: var(--navy); }
.stat-icon.orange { background: var(--orange-lt);   color: var(--orange); }
.stat-icon.green  { background: var(--green-lt);    color: var(--green-dk); }
.stat-icon.red    { background: var(--red-lt);      color: var(--red); }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { font-family: 'Quicksand', sans-serif; font-weight: 600; border-radius: 9px; transition: var(--transition); }
.btn-navy    { background: var(--navy);   color: #fff; border-color: var(--navy); }
.btn-navy:hover   { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); box-shadow: 0 4px 12px rgba(0,60,110,.25); }
.btn-orange  { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-dk); color: #fff; border-color: var(--orange-dk); box-shadow: 0 4px 12px rgba(255,126,39,.3); }
.btn-green   { background: var(--green);  color: #fff; border-color: var(--green); }
.btn-green:hover  { background: var(--green-dk);  color: #fff; border-color: var(--green-dk); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { font-family: 'Quicksand', sans-serif; font-weight: 600; border-radius: 6px; padding: .28em .65em; font-size: .75rem; }
.badge-pending    { background: #eef1ff; color: #4a6cf7; }
.badge-inprogress { background: var(--orange-lt); color: var(--orange-dk); }
.badge-review     { background: #fef9ec; color: #d97706; }
.badge-done       { background: var(--green-lt); color: var(--green-dk); }
.badge-cancelled  { background: #f3f4f6; color: #9ca3af; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-label {
  font-weight: 600;
  font-size: .84rem;
  color: var(--navy);
  margin-bottom: 5px;
  display: block;
}
.form-control, .form-select {
  font-family: 'Quicksand', sans-serif;
  font-size: .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3.5px rgba(0,60,110,.1);
  outline: none;
}
.form-control::placeholder { color: var(--text-light); }
.input-group-text {
  font-family: 'Quicksand', sans-serif;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
}
.input-group .form-control:focus { z-index: 1; }
.form-text { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); border: none; font-size: .88rem; }
.alert-success { background: var(--green-lt); color: var(--green-dk); }
.alert-danger  { background: var(--red-lt);   color: var(--red); }
.alert-warning { background: #fffbeb;         color: #b45309; }
.alert-info    { background: var(--navy-faint); color: var(--navy); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-cui { width: 100%; }
.table-cui th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg);
  padding: 10px 16px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table-cui td {
  vertical-align: middle;
  font-size: .88rem;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.table-cui tbody tr { transition: background .1s; }
.table-cui tbody tr:hover { background: var(--navy-faint); }
.table-cui tbody tr:last-child td { border-bottom: none; }

/* ── Kanban Board ───────────────────────────────────────────── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.kanban-col {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  min-width: 0;
}
.kanban-col-header {
  padding: 12px 14px;
  font-weight: 700;
  font-size: .83rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  background: var(--white);
}
.kanban-col-count {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff;
}
.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100px;
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kanban-card.priority-urgent { border-left-color: var(--red); }
.kanban-card.priority-high   { border-left-color: var(--orange); }
.kanban-card.priority-normal { border-left-color: var(--navy); }
.kanban-card.priority-low    { border-left-color: #cbd5e1; }
.kanban-card-title { font-weight: 600; font-size: .86rem; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.kanban-card-project { font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; }
.kanban-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.kanban-card-due { font-size: .74rem; color: var(--text-muted); }
.kanban-card-due.overdue { color: var(--red); font-weight: 700; }
.kanban-card-footer {
  display: flex; align-items: center; gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
}
.kanban-card-assignee { font-size: .74rem; color: var(--text-muted); }

/* ── Calendar ───────────────────────────────────────────────── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day-header {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cal-day {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-height: 88px;
  transition: var(--transition);
}
.cal-day:hover { border-color: var(--border); }
.cal-day.other-month { opacity: .4; background: var(--bg); }
.cal-day.today {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
  box-shadow: 0 0 0 1px var(--orange);
}
.cal-day-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: 'Quicksand', sans-serif;
}
.cal-day.today .cal-day-num {
  color: var(--white);
  background: var(--orange);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
}
.cal-event {
  font-size: .7rem;
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 2px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  color: #fff;
  transition: opacity .12s;
}
.cal-event:hover { opacity: .85; }

/* ── Shared Drive banner ────────────────────────────────────── */
.drive-banner {
  background: linear-gradient(135deg, var(--green-dk), #2d9444);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  margin-bottom: 20px;
  transition: var(--transition);
  text-decoration: none;
}
.drive-banner:hover { opacity: .93; transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.drive-banner-icon { font-size: 1.7rem; flex-shrink: 0; }
.drive-banner-text strong { font-size: .95rem; font-weight: 700; display: block; }
.drive-banner-text span   { font-size: .8rem; opacity: .85; }

/* ── Utility ────────────────────────────────────────────────── */
.text-navy   { color: var(--navy)   !important; }
.text-orange { color: var(--orange) !important; }
.text-green  { color: var(--green)  !important; }
.text-muted-cui { color: var(--text-muted) !important; }
.bg-navy     { background: var(--navy)   !important; }
.bg-orange   { background: var(--orange) !important; }
.bg-green    { background: var(--green)  !important; }
.fw-600      { font-weight: 600 !important; }
.fw-700      { font-weight: 700 !important; }
.divider     { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.gap-1       { gap: .25rem; }
.flex-1      { flex: 1; }

/* ── Sidebar overlay (mobile) ───────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 190;
}
.sidebar-overlay.show { display: block; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --sidebar-w: 265px; }

  /* Sidebar hidden off-canvas */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .main-content { margin-left: 0; }

  /* Topbar */
  .topbar { padding: 0 16px; }
  .topbar-hamburger { display: flex; align-items: center; justify-content: center; }
  .topbar-title { font-size: .95rem; }

  /* Page body */
  .page-body { padding: 16px; }
  .page-header h1 { font-size: 1.2rem; }

  /* Kanban → single column */
  .kanban-board { grid-template-columns: 1fr; }

  /* Stats → 2 col */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-value { font-size: 1.5rem; }

  /* Login → single column */
  .login-wrapper { grid-template-columns: 1fr; }
  .login-panel { display: none; }
  .login-form-side { padding: 32px 24px; background: linear-gradient(155deg, var(--navy-dark), var(--navy-mid)); }
  .login-card { max-width: 100%; }
  .login-card-header h1 { color: #fff; }
  .login-card-header p  { color: rgba(255,255,255,.7); }
  .login-card .form-label { color: rgba(255,255,255,.85); }
  .login-card .form-control { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
  .login-card .form-control::placeholder { color: rgba(255,255,255,.4); }
  .login-card .input-group-text { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.6); }
  .login-card .btn-outline-secondary { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.6); }
  .login-card .divider { border-color: rgba(255,255,255,.15); }
  .login-card p.text-center.small { color: rgba(255,255,255,.5) !important; }
  .login-card a.text-navy { color: rgba(255,200,100,.9) !important; }

  /* Table responsive */
  .table-responsive-stack td, .table-responsive-stack th {
    display: block; width: 100%;
  }

  /* Notif dropdown */
  .notif-dropdown { width: 300px; right: -10px; }
}

@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card    { padding: 14px; gap: 12px; }
  .stat-icon    { width: 40px; height: 40px; font-size: 1.1rem; }
  .stat-value   { font-size: 1.4rem; }
  .topbar-actions .btn span { display: none; }
  .cal-day      { min-height: 52px; padding: 4px; }
  .cal-event    { font-size: .62rem; padding: 1px 4px; }
}