/* ==============================================================================
   PT CIPTA OPTIMA PERSADA - CORPORATE GOVERNANCE & COMPLIANCE PORTAL
   admin.copersada.com - Design System & Modern Aesthetics (Dark & Light Theme)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* DARK THEME (DEFAULT) */
  --bg-primary: #070d18;
  --bg-secondary: #0b1526;
  --bg-card: rgba(15, 27, 48, 0.75);
  --bg-card-hover: rgba(22, 38, 66, 0.85);
  --bg-glass: rgba(11, 23, 44, 0.6);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 168, 232, 0.35);
  --border-accent: rgba(0, 168, 232, 0.6);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --navy: #0b2545;
  --cyan: #00a8e8;
  --cyan-glow: rgba(0, 168, 232, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --rose: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.25);
  --purple: #8b5cf6;

  --sidebar-w: 280px;
  --header-h: 74px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px -5px var(--cyan-glow);
}

/* ==============================================================================
   LIGHT THEME OVERRIDES (CRISP & CLEAN CORPORATE)
   ============================================================================== */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --border-subtle: #e2e8f0;
  --border-glow: rgba(0, 168, 232, 0.35);
  --border-accent: #0284c7;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 0 1px 1px rgba(0, 0, 0, 0.04);
}

body.light-theme {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 168, 232, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

body.light-theme .sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
}

body.light-theme .brand-text h1,
body.light-theme .header-title-box h2,
body.light-theme .vault-title,
body.light-theme .panel-card h4,
body.light-theme .section-head h3,
body.light-theme .kpi-num,
body.light-theme .data-table td strong {
  color: #0f172a;
}

body.light-theme .top-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e2e8f0;
}

body.light-theme .panel-card,
body.light-theme .vault-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.light-theme .vault-item:hover {
  border-color: var(--cyan);
  background: #f8fafc;
}

body.light-theme .form-input,
body.light-theme .role-switcher-select {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light-theme .user-profile-badge {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
}

body.light-theme .nav-item {
  color: #475569;
}

body.light-theme .nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.light-theme .nav-item.active {
  background: linear-gradient(90deg, rgba(0, 168, 232, 0.15), rgba(0, 168, 232, 0.05));
  color: #0284c7;
  border-color: rgba(0, 168, 232, 0.4);
}

body.light-theme .data-table th {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-color: #cbd5e1;
}

body.light-theme .data-table td {
  border-bottom-color: #e2e8f0;
  color: #475569;
}

body.light-theme .data-table tr:hover td {
  background: #f8fafc;
  color: #0f172a;
}

body.light-theme .theme-toggle-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

body.light-theme .auth-modal {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

body.light-theme .auth-title {
  color: #0f172a;
}

body.light-theme .auth-sub {
  color: #64748b;
}

body.light-theme .hero-radar-banner {
  background: linear-gradient(135deg, #0b2545, #133966);
  box-shadow: 0 10px 25px -5px rgba(11, 37, 69, 0.2);
}

body.light-theme .tab-section .countdown-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.light-theme .tab-section .countdown-card h4 {
  color: #0f172a;
}

body.light-theme .tab-section .countdown-card .countdown-desc {
  color: #64748b;
}

body.light-theme .code-badge {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

body.light-theme .tag-red { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
body.light-theme .tag-amber { background: rgba(245, 158, 11, 0.15); color: #b45309; }
body.light-theme .tag-green { background: rgba(16, 185, 129, 0.15); color: #047857; }
body.light-theme .tag-blue { background: rgba(0, 168, 232, 0.15); color: #0284c7; }
body.light-theme .tag-purple { background: rgba(139, 92, 246, 0.15); color: #6d28d9; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 168, 232, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 168, 232, 0.5);
}

/* ==============================================================================
   SIDEBAR
   ============================================================================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.brand-box {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.2;
}

.brand-text span {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-menu {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 10px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 168, 232, 0.18), rgba(0, 168, 232, 0.04));
  border-color: rgba(0, 168, 232, 0.3);
  box-shadow: 0 0 15px -3px var(--cyan-glow);
}

.nav-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
}

.user-profile-badge {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.role-switcher-select {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  margin-top: 8px;
}

/* ==============================================================================
   AUTH LOCK SCREEN OVERLAY
   ============================================================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 13, 24, 0.95);
  backdrop-filter: blur(24px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-modal {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(15, 27, 48, 0.95), rgba(11, 37, 69, 0.9));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  text-align: center;
  position: relative;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px var(--cyan-glow));
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-pin-input {
  font-family: var(--font-mono);
  letter-spacing: 4px;
  font-size: 18px;
  text-align: center;
}

.auth-error-msg {
  color: var(--rose);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  min-height: 18px;
}

/* ==============================================================================
   MAIN CONTENT LAYOUT
   ============================================================================== */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.3s ease;
}

.top-header {
  height: var(--header-h);
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-title-box h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.header-title-box p {
  font-size: 12.5px;
  color: var(--text-dim);
}

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

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.content-area {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ==============================================================================
   COMPLIANCE RADAR & HERO CARDS
   ============================================================================== */
.hero-radar-banner {
  background: linear-gradient(135deg, rgba(11, 37, 69, 0.9), rgba(15, 27, 48, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.hero-radar-banner::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.radar-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.countdown-card {
  background: rgba(7, 13, 24, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: all 0.2s ease;
  position: relative;
}

body.light-theme .countdown-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.countdown-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.tag-red { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.tag-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tag-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-blue { background: rgba(0, 168, 232, 0.2); color: #38bdf8; }
.tag-purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.countdown-card h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.countdown-days {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
}

.countdown-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==============================================================================
   SECTION CONTENT & TABS
   ============================================================================== */
.tab-section {
  display: none;
}
.tab-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head {
  margin-bottom: 24px;
}

.section-head h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.section-head p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Cards Grid */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.panel-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

body.light-theme .panel-card:hover {
  border-color: var(--border-glow);
}

.panel-card h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* KPI Stat Cards */
.kpi-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.kpi-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.kpi-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.kpi-trend {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.trend-up { color: var(--emerald); }
.trend-blue { color: var(--cyan); }

/* Progress Bar Component */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0 6px;
}

body.light-theme .progress-bar-wrap {
  background: #e2e8f0;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}
.fill-cyan { background: linear-gradient(90deg, var(--cyan), #38bdf8); }
.fill-emerald { background: linear-gradient(90deg, var(--emerald), #34d399); }
.fill-purple { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.fill-amber { background: linear-gradient(90deg, var(--amber), #fbbf24); }

/* Forms & Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: rgba(7, 13, 24, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0077b6);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px -3px var(--cyan-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.light-theme .btn-secondary {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
body.light-theme .btn-secondary:hover {
  background: #e2e8f0;
}

/* Vault List */
.vault-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vault-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(7, 13, 24, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.vault-item:hover {
  border-color: var(--border-accent);
  background: rgba(7, 13, 24, 0.8);
}

.vault-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vault-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 168, 232, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.vault-title {
  font-weight: 600;
  color: #fff;
}

.vault-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  background: rgba(11, 37, 69, 0.7);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 2px solid var(--border-subtle);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.code-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  background: rgba(0, 168, 232, 0.12);
  color: var(--cyan);
  border-radius: 4px;
  border: 1px solid rgba(0, 168, 232, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .top-header {
    padding: 0 16px;
  }
  .content-area {
    padding: 20px 16px;
  }
}

/* ==============================================================================
   CONTEXTUAL BEST PRACTICE GUIDES & POPOVERS (HOVER TOOLTIPS)
   ============================================================================== */
.guide-trigger-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 168, 232, 0.15);
  border: 1px solid rgba(0, 168, 232, 0.35);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  cursor: help;
  transition: all 0.2s ease;
}

.guide-badge:hover {
  background: rgba(0, 168, 232, 0.3);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.guide-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 320px;
  max-width: 90vw;
  background: rgba(11, 23, 44, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--cyan-glow);
  color: var(--text-main);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 9999;
  text-align: left;
}

/* Arrow indicator */
.guide-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--border-accent) transparent transparent transparent;
}

/* When hover on trigger or card */
.guide-trigger-wrap:hover .guide-popover,
.guide-trigger-wrap.active .guide-popover,
.has-guide:hover .guide-popover {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.guide-popover-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.guide-popover-body {
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e2e8f0;
}

.guide-step {
  display: flex;
  gap: 6px;
}

.guide-step strong {
  color: #f8fafc;
  white-space: nowrap;
}

.guide-popover-footer {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-dim);
  font-style: italic;
}

/* Light theme for popover */
body.light-theme .guide-popover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 0 15px rgba(2, 132, 199, 0.2);
  color: #0f172a;
}

body.light-theme .guide-popover::after {
  border-color: #0284c7 transparent transparent transparent;
}

body.light-theme .guide-popover-title {
  color: #0284c7;
  border-bottom-color: #e2e8f0;
}

body.light-theme .guide-popover-body {
  color: #334155;
}

body.light-theme .guide-step strong {
  color: #0f172a;
}

body.light-theme .guide-badge {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

/* ==============================================================================
   GOVERNANCE & APPROVAL WORKFLOW STYLING
   ============================================================================== */
.approval-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-draft { background: rgba(148, 163, 184, 0.2); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-review { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-rejected { background: rgba(244, 63, 94, 0.2); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }

/* Ticket priority tags */
.priority-high { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.priority-med { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.priority-low { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }

