/* ── Nasarawa SDC Portal — Green & White Theme ──────────────────────────── */
:root {
  --primary:        #1a6b3c;
  --primary-dark:   #0f4a28;
  --primary-light:  #2d9e5f;
  --secondary:      #f0faf4;
  --accent:         #28a745;
  --accent-hover:   #218838;
  --warning:        #ffc107;
  --danger:         #dc3545;
  --info:           #17a2b8;
  --dark:           #1a2e1f;
  --text-dark:      #1c2b20;
  --text-muted:     #6c757d;
  --border:         #c8e6c9;
  --bg-light:       #f8fff9;
  --sidebar-width:  260px;
  --topbar-height:  64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: var(--bg-light); color: var(--text-dark); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ── Navbar (landing page) ── */
.navbar-sdc {
  background: rgba(26, 107, 60, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 2px 12px rgba(26,107,60,.3);
}
.navbar-sdc .navbar-brand { color: #fff; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.navbar-sdc .nav-link { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500; padding: 6px 14px; transition: color .15s; }
.navbar-sdc .nav-link:hover { color: #fff; }
.navbar-sdc .btn-nav { background: #fff; color: var(--primary); font-weight: 700; border-radius: 8px; padding: 8px 20px; font-size: .88rem; transition: all .2s; }
.navbar-sdc .btn-nav:hover { background: var(--secondary); color: var(--primary-dark); }

/* ── Hero Section ── */
.hero-sdc {
  background: linear-gradient(135deg, #0a2e18 0%, #1a6b3c 50%, #0d4020 100%);
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-sdc::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-sdc .hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: .8rem; font-weight: 600; letter-spacing: .5px; border: 1px solid rgba(255,255,255,.2); margin-bottom: 20px; }
.hero-sdc h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero-sdc p { color: rgba(255,255,255,.85); font-size: 1.1rem; line-height: 1.7; margin-bottom: 32px; }
.hero-card { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 28px; color: #fff; }
.hero-card .stat-num { font-size: 2rem; font-weight: 900; color: #a8e6c0; }
.hero-card .stat-label { font-size: .85rem; opacity: .8; }

/* ── Auth Pages ── */
.auth-wrapper { min-height: 100vh; background: linear-gradient(135deg, #0a2e18 0%, #1a6b3c 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: #fff; border-radius: 20px; padding: 40px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 60px; }
.auth-logo h2 { color: var(--primary); font-weight: 800; font-size: 1.3rem; margin-top: 10px; }
.auth-logo p { color: var(--text-muted); font-size: .85rem; }
.auth-card .form-label { font-weight: 600; color: var(--text-dark); font-size: .9rem; }
.auth-card .form-control { border: 2px solid #e0e0e0; border-radius: 10px; padding: 10px 14px; font-size: .95rem; transition: border-color .2s; }
.auth-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,107,60,.1); }
.btn-primary-sdc { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 12px 24px; font-weight: 700; font-size: .95rem; width: 100%; transition: all .2s; cursor: pointer; }
.btn-primary-sdc:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,107,60,.3); }

/* ── Dashboard Layout ── */
.wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width); background: var(--primary-dark); color: #fff;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 200;
  display: flex; flex-direction: column; transition: transform .3s;
  box-shadow: 2px 0 20px rgba(0,0,0,.2);
}
.sidebar-brand { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand .brand-name { font-size: .85rem; font-weight: 800; color: #fff; line-height: 1.3; }
.sidebar-brand .brand-sub { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.sidebar-brand .brand-logo { width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 8px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-section { padding: 10px 20px 4px; font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 500; text-decoration: none; transition: all .2s; border-left: 3px solid transparent; }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--primary-light); }
.sidebar-link.active { background: rgba(255,255,255,.12); color: #fff; border-left-color: #a8e6c0; font-weight: 600; }
.sidebar-link i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer .user-info { display: flex; align-items: center; gap: 10px; }
.sidebar-footer .user-avatar { width: 36px; height: 36px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0; }
.sidebar-footer .user-name { font-size: .82rem; font-weight: 600; color: #fff; }
.sidebar-footer .user-role { font-size: .72rem; color: rgba(255,255,255,.5); }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: var(--sidebar-width); right: 0; height: var(--topbar-height);
  background: #fff; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.page-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.sidebar-toggle { background: none; border: none; font-size: 1.3rem; color: var(--text-dark); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.sidebar-toggle:hover { background: var(--secondary); }
.topbar-bell { position: relative; color: var(--text-dark); font-size: 1.2rem; text-decoration: none; padding: 6px; border-radius: 8px; }
.topbar-bell:hover { background: var(--secondary); }
.bell-badge { position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff; font-size: .6rem; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.topbar-avatar { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none; overflow: hidden; }
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Main Content */
.main-content { margin-left: var(--sidebar-width); padding-top: var(--topbar-height); min-height: 100vh; width: calc(100% - var(--sidebar-width)); }
.content-area { padding: 28px 24px; }

/* ── Cards ── */
.stat-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.stat-card .stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--text-dark); }
.stat-card .stat-label { font-size: .85rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; }
.stat-card .stat-change { font-size: .78rem; font-weight: 600; margin-top: 8px; }

.card-sdc { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); overflow: hidden; }
.card-sdc .card-header-sdc { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-sdc .card-header-sdc h5 { font-weight: 700; color: var(--text-dark); margin: 0; font-size: 1rem; }
.card-sdc .card-body-sdc { padding: 24px; }

/* ── Program Cards (Civil Servant Dashboard) ── */
.program-card { background: #fff; border-radius: 20px; border: 2px solid var(--border); padding: 32px 28px; text-align: center; transition: all .3s; cursor: pointer; text-decoration: none; display: block; }
.program-card:hover { border-color: var(--primary); box-shadow: 0 8px 32px rgba(26,107,60,.15); transform: translateY(-4px); }
.program-card .prog-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #fff; margin: 0 auto 20px; }
.program-card h4 { color: var(--text-dark); font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.program-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; margin-bottom: 20px; }
.program-card .prog-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: .78rem; font-weight: 700; }

/* ── Status Pills ── */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-draft { background: #e9ecef; color: #495057; }
.status-submitted { background: #cce5ff; color: #004085; }
.status-payment_pending { background: #fff3cd; color: #856404; }
.status-payment_uploaded { background: #d1ecf1; color: #0c5460; }
.status-payment_approved { background: #d4edda; color: #155724; }
.status-payment_rejected { background: #f8d7da; color: #721c24; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

/* ── Multi-step Form ── */
.step-wizard { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; gap: 0; }
.step-item { display: flex; align-items: center; flex: 1; max-width: 200px; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; border: 2px solid #dee2e6; background: #fff; color: var(--text-muted); transition: all .3s; }
.step-circle.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(26,107,60,.3); }
.step-circle.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-top: 6px; text-align: center; }
.step-label.active { color: var(--primary); }
.step-connector { flex: 1; height: 2px; background: #dee2e6; margin: 0 4px; margin-bottom: 24px; }
.step-connector.done { background: var(--accent); }
.step-block { text-align: center; }

/* ── Tables ── */
.table-sdc { width: 100%; border-collapse: collapse; }
.table-sdc thead th { background: var(--primary); color: #fff; padding: 12px 16px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; border: none; }
.table-sdc tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.table-sdc tbody tr:hover { background: var(--secondary); }
.table-sdc tbody td { padding: 12px 16px; font-size: .88rem; color: var(--text-dark); vertical-align: middle; }

/* ── Buttons ── */
.btn-sdc-primary { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 10px 22px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-sdc-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,107,60,.3); }
.btn-sdc-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 8px 20px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-sdc-outline:hover { background: var(--primary); color: #fff; }
.btn-sdc-danger { background: var(--danger); color: #fff; border: none; border-radius: 10px; padding: 8px 18px; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-sdc-danger:hover { background: #c82333; color: #fff; }
.btn-sdc-success { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 8px 18px; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-sdc-success:hover { background: var(--accent-hover); color: #fff; }
.btn-sdc-warning { background: var(--warning); color: #212529; border: none; border-radius: 10px; padding: 8px 18px; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ── Alerts ── */
.alert-sdc { border-radius: 12px; padding: 14px 18px; font-size: .9rem; border: none; display: flex; align-items: flex-start; gap: 10px; }
.alert-sdc-success { background: #d4edda; color: #155724; }
.alert-sdc-danger { background: #f8d7da; color: #721c24; }
.alert-sdc-warning { background: #fff3cd; color: #856404; }
.alert-sdc-info { background: #d1ecf1; color: #0c5460; }

/* ── Form Styles ── */
.form-section { background: #fff; border-radius: 16px; border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; }
.form-section h6 { font-weight: 700; color: var(--primary); font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--secondary); }
.form-control-sdc { border: 2px solid #e0e0e0; border-radius: 10px; padding: 10px 14px; font-size: .9rem; width: 100%; transition: border-color .2s; background: #fff; }
.form-control-sdc:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(26,107,60,.1); }
.form-label-sdc { font-weight: 600; color: var(--text-dark); font-size: .88rem; margin-bottom: 6px; display: block; }
.form-label-sdc .req { color: var(--danger); }

/* ── Upload Area ── */
.upload-area { border: 2px dashed var(--border); border-radius: 14px; padding: 40px 20px; text-align: center; transition: all .2s; cursor: pointer; background: var(--secondary); }
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: #e8f5e9; }
.upload-area i { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }
.upload-area p { color: var(--text-muted); font-size: .9rem; }

/* ── Timeline (for registration status) ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item.pending::before { background: #dee2e6; box-shadow: 0 0 0 2px #dee2e6; }
.timeline-date { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.timeline-text { font-size: .88rem; font-weight: 600; color: var(--text-dark); }

/* ── Responsive ── */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; width: 100%; }
  .topbar { left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }
  .sidebar-overlay.show { display: block; }
}

/* ── Utilities ── */
.text-primary-sdc { color: var(--primary) !important; }
.bg-primary-sdc { background: var(--primary) !important; }
.bg-light-sdc { background: var(--secondary) !important; }
.border-primary-sdc { border-color: var(--primary) !important; }
.rounded-sdc { border-radius: 12px; }
.shadow-sdc { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* Animate */
.animate-fadeIn { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Print / PDF ── */
@media print { .sidebar, .topbar, .no-print { display: none !important; } .main-content { margin: 0; } }

/* ── Sidebar Close Button (mobile) ── */
.sidebar-close-btn {
  display: none;
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(255,255,255,.8);
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.sidebar-close-btn:hover { background: rgba(255,255,255,.2); color: white; }

/* ── Topbar Hamburger ── */
.sidebar-toggle {
  background: none; border: none;
  font-size: 1.4rem; color: var(--text-dark);
  cursor: pointer; padding: 6px 10px;
  border-radius: 8px; line-height: 1;
  transition: background .15s;
}
.sidebar-toggle:hover { background: var(--secondary); }

/* ── Responsive Sidebar ── */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); z-index: 300; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: flex; }
  .main-content { margin-left: 0 !important; width: 100% !important; }
  .topbar { left: 0 !important; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 299;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.show { display: block; }
  .content-area { padding: 20px 16px; }
}

@media (max-width: 576px) {
  .sidebar { width: 100%; max-width: 300px; }
  .topbar { padding: 0 14px; }
  .page-title { font-size: .95rem; }
  .content-area { padding: 16px 12px; }
  .stat-card { padding: 18px; }
  .stat-card .stat-num { font-size: 1.6rem; }
  .form-section { padding: 20px 16px; }
  .step-wizard { gap: 0; overflow-x: auto; padding-bottom: 4px; }
  .step-label { font-size: .68rem; }
  .table-sdc thead th { font-size: .75rem; padding: 10px 10px; }
  .table-sdc tbody td { font-size: .82rem; padding: 10px 10px; }
}

/* ── Topbar breadcrumb on mobile ── */
@media (max-width: 480px) {
  .topbar-right .topbar-bell { font-size: 1.1rem; }
}

/* ── Utility: fw-600, fw-700, fw-800 ── */
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* ── Additional Mobile Responsiveness ── */
@media (max-width: 768px) {
  /* Landing page hero */
  .hero-sdc h1 { font-size: 1.8rem; }
  .hero-sdc p { font-size: .95rem; }
  .hero-card { padding: 18px; }
  .hero-card .stat-num { font-size: 1.5rem; }

  /* Program cards stacked */
  .program-card { padding: 22px 18px; }
  .program-card .prog-icon { width: 60px; height: 60px; font-size: 1.6rem; }

  /* Tables: horizontal scroll */
  .table-responsive-sdc { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Buttons full-width on small screens */
  .btn-block-mobile { width: 100%; justify-content: center; }

  /* Auth card */
  .auth-card { padding: 28px 20px; }

  /* Stat cards 2-col grid */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* Step wizard compact */
  .step-wizard { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 0 8px; }
  .step-block { min-width: 70px; }
  .step-connector { min-width: 20px; }

  /* Card body padding */
  .card-sdc .card-body-sdc { padding: 16px; }
  .card-sdc .card-header-sdc { padding: 14px 16px; }
}

@media (max-width: 480px) {
  /* Topbar */
  .topbar { padding: 0 12px; }
  .page-title { font-size: .88rem; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Form sections */
  .form-section { padding: 16px 12px; }
  .form-section h6 { font-size: .82rem; }

  /* Buttons */
  .btn-sdc-primary, .btn-sdc-outline, .btn-sdc-danger, .btn-sdc-success { padding: 9px 16px; font-size: .85rem; }

  /* Status pills */
  .status-pill { font-size: .68rem; padding: 3px 8px; }

  /* Alert */
  .alert-sdc { font-size: .85rem; padding: 12px 14px; }
}

/* ── Sidebar always visible on desktop ── */
@media (min-width: 993px) {
  .sidebar { transform: translateX(0) !important; }
  .sidebar-toggle { display: none; }
  .sidebar-overlay { display: none !important; }
  .sidebar-close-btn { display: none !important; }
}

/* ── Landing page navbar mobile ── */
@media (max-width: 992px) {
  .navbar-sdc .navbar-collapse { background: rgba(15,74,40,.97); padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .navbar-sdc .nav-link { padding: 10px 20px; }
  .navbar-sdc .btn-nav { margin: 8px 20px; display: inline-block; }
}

/* ── Cadre cards responsive ── */
@media (max-width: 576px) {
  .cadre-card { padding: 14px; }
  .cadre-card .cadre-name { font-size: .88rem; }
}

/* ── Table action buttons on mobile ── */
@media (max-width: 640px) {
  .table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
  .table-actions a, .table-actions button { font-size: .75rem; padding: 4px 8px; }
}

/* ── Dashboard welcome banner ── */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  border-radius: 20px; padding: 28px 32px; color: #fff; position: relative; overflow: hidden; margin-bottom: 28px;
}
.welcome-banner::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.welcome-banner h3 { font-weight: 800; font-size: 1.4rem; margin-bottom: 6px; }
.welcome-banner p { opacity: .85; font-size: .9rem; margin: 0; }
@media (max-width: 576px) {
  .welcome-banner { padding: 20px 18px; border-radius: 14px; }
  .welcome-banner h3 { font-size: 1.1rem; }
}

/* ── Notification badge on sidebar ── */
.sidebar-badge {
  background: var(--danger); color: #fff; font-size: .65rem; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; margin-left: auto;
}
.sidebar-badge-warning {
  background: var(--warning); color: #212529; font-size: .65rem; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; margin-left: auto;
}
