/* ==========================================================================
   Equator Bridge — Modern Administrative Design System
   PathClient Admin Console v2.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --color-brand-primary: #1c2353;
  --color-brand-primary-light: #2a357d;
  --color-brand-accent: #2563eb;
  --color-brand-accent-hover: #1d4ed8;

  /* Neutrals & Surfaces */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f1f5f9;
  --bg-surface-hover: #f8fafc;

  /* Sidebar Palette (Dark Slate) */
  --bg-sidebar: #0f172a;
  --bg-sidebar-surface: #1e293b;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.08);
  --bg-sidebar-active: rgba(37, 99, 235, 0.18);
  --text-sidebar: #94a3b8;
  --text-sidebar-bright: #f8fafc;
  --border-sidebar: #1e293b;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-dark: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #3b82f6;

  /* Semantic Alerts */
  --color-success: #10b981;
  --bg-success-subtle: #ecfdf5;
  --text-success: #065f46;
  --border-success: #a7f3d0;

  --color-warning: #f59e0b;
  --bg-warning-subtle: #fffbeb;
  --text-warning: #92400e;
  --border-warning: #fde68a;

  --color-danger: #ef4444;
  --bg-danger-subtle: #fef2f2;
  --text-danger: #991b1b;
  --border-danger: #fecaca;

  --color-info: #3b82f6;
  --bg-info-subtle: #eff6ff;
  --text-info: #1e40af;
  --border-info: #bfdbfe;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Layout dimensions */
  --sidebar-width: 260px;
  --topbar-height: 68px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: var(--color-brand-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-brand-accent-hover);
}

img, svg {
  vertical-align: middle;
}

/* ==========================================================================
   Application Master Shell
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-app);
}

/* --------------------------------------------------------------------------
   Sidebar (Fixed Left)
   -------------------------------------------------------------------------- */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  color: var(--text-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 100;
  border-right: 1px solid var(--border-sidebar);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  height: var(--topbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-sidebar);
  background: rgba(15, 23, 42, 0.5);
}

.sidebar-brand-logo {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.sidebar-brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-nav-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  padding: 12px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-sidebar);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 4px;
  transition: all 0.15s ease;
  position: relative;
}

.nav-link:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--text-sidebar-bright);
}

.nav-link.active {
  background-color: var(--bg-sidebar-active);
  color: #60a5fa;
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #dc2626;
  color: #ffffff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-sidebar);
  background: rgba(15, 23, 42, 0.7);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1c2353, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #38bdf8;
}

.sidebar-logout-btn {
  color: #94a3b8;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

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

/* --------------------------------------------------------------------------
   Sticky Topbar
   -------------------------------------------------------------------------- */
.app-topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.topbar-breadcrumb a {
  color: var(--text-secondary);
}

.topbar-breadcrumb a:hover {
  color: var(--color-brand-accent);
}

.topbar-breadcrumb-current {
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.api-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-success-subtle);
  color: var(--text-success);
  border: 1px solid var(--border-success);
}

.api-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   Page Body Container
   -------------------------------------------------------------------------- */
.app-content {
  flex: 1;
  padding: 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.app-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   UI Components (Cards, Buttons, Tables, Badges, Modals)
   ========================================================================== */

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.card-body {
  padding: 24px;
}

/* Metric KPI Stat Cards */
.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1;
  text-decoration: none;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  cursor: wait !important;
  opacity: 0.85;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: admin-spin 0.65s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-secondary .btn-spinner, 
.btn-outline-danger .btn-spinner {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: currentColor;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: #ffffff;
  border-color: var(--color-brand-primary);
}

.btn-primary:hover {
  background-color: var(--color-brand-primary-light);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(28, 35, 83, 0.25);
}

.btn-accent {
  background-color: var(--color-brand-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--color-brand-accent-hover);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-outline-danger {
  background: transparent;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-outline-danger:hover {
  background: #fef2f2;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

/* Tables */
.table-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  border-bottom: 1px solid var(--border-subtle);
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.table tr:hover td {
  background: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.badge-success {
  background: var(--bg-success-subtle);
  color: var(--text-success);
  border: 1px solid var(--border-success);
}

.badge-danger {
  background: var(--bg-danger-subtle);
  color: var(--text-danger);
  border: 1px solid var(--border-danger);
}

.badge-warning {
  background: var(--bg-warning-subtle);
  color: var(--text-warning);
  border: 1px solid var(--border-warning);
}

.badge-info {
  background: var(--bg-info-subtle);
  color: var(--text-info);
  border: 1px solid var(--border-info);
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-primary);
  background-color: #ffffff;
  transition: all 0.15s ease;
  font-family: inherit;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease forwards;
  color: #ffffff;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-success { background-color: #065f46; border: 1px solid #047857; }
.toast-error { background-color: #991b1b; border: 1px solid #b91c1c; }
.toast-info { background-color: #1e40af; border: 1px solid #2563eb; }

/* ==========================================================================
   Loading Indicators, Progress Bar & Global Overlays
   ========================================================================== */

/* Top Slim Glowing Progress Bar */
#admin-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #60a5fa 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 0 5px rgba(37, 99, 235, 0.8);
  z-index: 9999999;
  opacity: 0;
  pointer-events: none;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#admin-progress-bar.active {
  opacity: 1;
}

/* Global Full-Screen Modal Overlay Loader */
#admin-global-loader {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#admin-global-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.global-loader-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 90%;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#admin-global-loader.is-visible .global-loader-card {
  transform: scale(1);
}

.global-loader-spinner-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}

.global-loader-spinner-outer {
  position: absolute;
  inset: 0;
  border: 3.5px solid #e2e8f0;
  border-top-color: var(--color-brand-primary);
  border-right-color: var(--color-brand-accent);
  border-radius: 50%;
  animation: admin-spin 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.global-loader-spinner-inner {
  position: absolute;
  inset: 9px;
  border: 2.5px solid transparent;
  border-top-color: #38bdf8;
  border-left-color: #2563eb;
  border-radius: 50%;
  animation: admin-spin-reverse 1.2s linear infinite;
}

.global-loader-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.global-loader-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Card / Section Element Block Loader */
.is-blocked {
  position: relative !important;
  pointer-events: none !important;
  user-select: none !important;
}

.is-blocked > .block-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: inherit;
  animation: toast-in 0.2s ease forwards;
}

.block-loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--color-brand-accent);
  border-radius: 50%;
  animation: admin-spin 0.7s linear infinite;
}

.block-loader-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Spinner Keyframes */
@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

@keyframes admin-spin-reverse {
  to { transform: rotate(-360deg); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 95;
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-nav-toggle {
    display: block;
  }
}
