﻿/**
 * AuditQR CSS CUSTOM PROPERTIES
 * Global design tokens as CSS variables
 * Import this in all HTML files for consistent theming
 */

/* Self-hosted Material Symbols Outlined — no CDN dependency */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('./fonts/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
  min-width: 320px;
}

:root {
  /* COLOR PALETTE */
  --color-primary: #3185FC;
  --color-primary-light: #4A9AFF;
  --color-primary-dark: #1E4D99;
  
  --color-success: #3185FC;
  --color-success-light: #E8FFCC;
  --color-success-dark: #A8D47A;
  
  --color-error: #FF6B6B;
  --color-error-light: #FF9999;
  --color-error-dark: #CC3333;
  
  --color-warning: #FFAA00;
  --color-warning-light: #FFB733;
  --color-warning-dark: #CC8800;
  
  /* BACKGROUNDS & SURFACES */
  --color-bg: #080708;
  --color-surface: #10131a;
  --color-surface-2: #1A1A1A;
  --color-surface-elevated: #272a31;
  --color-surface-light: #32353c;
  
  /* TEXT COLORS */
  --color-text-primary: #E0E2EC;
  --color-text-secondary: #C1C6D6;
  --color-text-tertiary: #8B909F;
  --color-text-muted: #77867F;
  
  /* BORDERS */
  --color-border: rgba(119, 134, 127, 0.15);
  --color-border-light: rgba(119, 134, 127, 0.25);
  
  /* TYPOGRAPHY */
  --font-headline: "Noto Serif", serif;
  --font-display: "Noto Serif", serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-label: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  /* FONT SIZES */
  --fs-display-large: 48px;
  --fs-display-medium: 40px;
  --fs-heading-large: 32px;
  --fs-heading-medium: 28px;
  --fs-heading-small: 24px;
  --fs-body-large: 18px;
  --fs-body-medium: 15px;
  --fs-body-small: 13px;
  --fs-label-large: 14px;
  --fs-label-medium: 12px;
  --fs-label-small: 11px;
  
  /* LINE HEIGHTS */
  --lh-tight: 1.2;
  --lh-normal: 1.4;
  --lh-relaxed: 1.6;
  --lh-loose: 1.7;
  
  /* SPACING SCALE */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* BORDER RADIUS */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  
  /* SHADOWS */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* Z-INDEX */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-notification: 700;
  
  /* TRANSITIONS */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* COMPONENT STYLES */

/* PRIMARY BUTTON */
.btn-primary {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: white;
  font-family: var(--font-label);
  font-size: var(--fs-label-medium);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.btn-primary:active {
  filter: brightness(0.9);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary);
}

/* SECONDARY BUTTON */
.btn-secondary {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-family: var(--font-label);
  font-size: var(--fs-label-medium);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: rgba(49, 133, 252, 0.1);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary);
}

/* SUCCESS BUTTON */
.btn-success {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  background-color: var(--color-success);
  color: var(--color-surface);
  font-family: var(--font-label);
  font-size: var(--fs-label-medium);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  display: inline-block;
}

.btn-success:hover {
  background-color: var(--color-success-dark);
}

.btn-success:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-success:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-success);
}

/* DANGER BUTTON */
.btn-danger {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  background-color: var(--color-error);
  color: white;
  font-family: var(--font-label);
  font-size: var(--fs-label-medium);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  display: inline-block;
}

.btn-danger:hover {
  background-color: var(--color-error-dark);
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-error);
}

/* GHOST BUTTON */
.btn-ghost {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--color-text-primary);
  border: none;
  font-family: var(--font-label);
  font-size: var(--fs-label-medium);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  display: inline-block;
}

.btn-ghost:hover {
  background-color: var(--color-surface-2);
}

.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-primary);
}

/* INPUT FIELD */
.input-base {
  width: 100%;
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body-medium);
  transition: all var(--transition-base);
}

.input-base::placeholder {
  color: var(--color-text-muted);
}

.input-base:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-surface-elevated);
  box-shadow: 0 0 0 2px rgba(49, 133, 252, 0.1);
}

.input-base:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* CARD */
.card {
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

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

/* BADGE SUCCESS */
.badge-success {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background-color: rgba(49, 133, 252, 0.15);
  border: 1px solid rgba(49, 133, 252, 0.3);
  color: var(--color-success);
  font-family: var(--font-label);
  font-size: var(--fs-label-small);
  font-weight: 500;
}

/* BADGE ERROR */
.badge-error {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background-color: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--color-error);
  font-family: var(--font-label);
  font-size: var(--fs-label-small);
  font-weight: 500;
}

/* BADGE WARNING */
.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background-color: rgba(255, 170, 0, 0.15);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: var(--color-warning);
  font-family: var(--font-label);
  font-size: var(--fs-label-small);
  font-weight: 500;
}

/* HEADER */
.header {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100%;
  z-index: var(--z-sticky);
  width: 256px;
  background-color: var(--color-bg);
  border-right: 1px solid var(--color-border);
}

/* SUCCESS STATE */
.success-state {
  background-color: rgba(49, 133, 252, 0.1);
  border: 1px solid rgba(49, 133, 252, 0.3);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

/* ERROR STATE */
.error-state {
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--color-error);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

/* WARNING STATE */
.warning-state {
  background-color: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: var(--color-warning);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

/* UTILITY CLASSES */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }

.bg-primary { background-color: var(--color-primary); }
.bg-success { background-color: var(--color-success); }
.bg-error { background-color: var(--color-error); }
.bg-warning { background-color: var(--color-warning); }

.border-primary { border-color: var(--color-primary); }
.border-success { border-color: var(--color-success); }
.border-error { border-color: var(--color-error); }
.border-warning { border-color: var(--color-warning); }

/* ============================================================
   SHARED LAYOUT COMPONENTS
   All pages import this file â€” no more duplicating these blocks
   ============================================================ */

/* BASE RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* MATERIAL SYMBOLS DEFAULT */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(8, 7, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.navbar-logo:hover {
  opacity: 0.9;
}

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

.btn-nav {
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 8px 16px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-base);
}

.btn-nav:hover {
  color: var(--color-primary);
}

.btn-cta-nav {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn-cta-nav:hover {
  opacity: 0.9;
}

/* Back button for flow pages */
.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.nav-back-link:hover {
  background: var(--color-primary-dark, #1E4D99);
  color: white;
}

/* ---- HAMBURGER BUTTON ---- */
.hamburger-btn {
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
  border-radius: var(--radius-sm);
}

.hamburger-btn:hover {
  color: var(--color-primary);
  background: rgba(49, 133, 252, 0.08);
}

/* ---- SLIDE-IN SIDEBAR ---- */
.sidebar-menu {
  position: fixed;
  top: 64px;
  right: -320px;
  width: 320px;
  height: calc(100vh - 64px);
  background: rgba(8, 7, 8, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--color-border);
  z-index: 40;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 20px;
}

.sidebar-menu.open {
  right: 0;
}

.sidebar-section-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  color: rgba(119, 134, 127, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-base);
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: rgba(49, 133, 252, 0.08);
  color: var(--color-primary);
}

.sidebar-link.active {
  background: rgba(49, 133, 252, 0.12);
  color: var(--color-primary);
  font-weight: 500;
  border-left: 3px solid var(--color-primary);
}

.sidebar-link.danger {
  color: var(--color-error);
}

.sidebar-link.danger:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--color-error);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ---- PAGE LAYOUT CONTAINERS ---- */

/* Offset for fixed navbar */
.page-offset {
  padding-top: 96px; /* 64px navbar + 32px breathing room */
}

/* Full-width content container â€” flush with navbar edges */
.page-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Narrow content for forms/single-column pages */
.page-container-narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-container-xs {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---- STEP PROGRESS INDICATOR ---- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-indicator-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-surface-light);
  transition: all var(--transition-base);
}

.step-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(49, 133, 252, 0.4);
}

.step-dot.completed {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(49, 133, 252, 0.3);
}

/* ---- FORM LABEL ---- */
.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ---- FORM HELPER TEXT ---- */
.form-helper {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ---- NUMBER INPUT: remove WebKit/Firefox spin buttons ---- */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ---- SKELETON LOADER ---- */
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}

/* ---- COMPACT FOOTER ---- */
.footer-compact {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 24px 32px;
  text-align: center;
}

.footer-compact p {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  opacity: 0.6;
  margin: 0;
}

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: #1c2027;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #272a31;
}

/* ---- DECORATIVE GLOWS ---- */
.glow-blue-bottom {
  background: radial-gradient(ellipse 60% 40% at 50% 110%, rgba(49, 133, 252, 0.08) 0%, transparent 60%);
}

.glow-green-top {
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(49, 133, 252, 0.09) 0%, transparent 70%);
}

.glow-blue-center {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-blue-center::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  background: rgba(49, 133, 252, 0.05);
  filter: blur(120px);
  border-radius: 50%;
}

/* ---- ANIMATIONS ---- */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.animate-pulse-ring {
  animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 2s linear infinite;
}

/* Toast progress animation */
@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}
.animate-toast-progress {
  animation: toast-progress linear forwards;
}

/* ---- GLOBAL BORDER RADIUS CONSISTENCY ----
   All rectangular/square elements use --radius-sm (4px) â€” same as the navbar
   "Get Started" button. !important is required because Tailwind play CDN injects
   its stylesheet after this file loads, so it would otherwise win the cascade.
   rounded-full is intentionally excluded â€” pills, badges, and circular elements
   keep their circular shape. rounded-none is intentionally excluded â€” elements
   explicitly opting out of radius keep zero radius. */
.rounded,
.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl {
  border-radius: var(--radius-sm) !important;
}

/* Directional variants */
.rounded-r-sm, .rounded-r-md, .rounded-r-lg, .rounded-r-xl, .rounded-r-2xl {
  border-top-right-radius: var(--radius-sm) !important;
  border-bottom-right-radius: var(--radius-sm) !important;
}
.rounded-l-sm, .rounded-l-md, .rounded-l-lg, .rounded-l-xl, .rounded-l-2xl {
  border-top-left-radius: var(--radius-sm) !important;
  border-bottom-left-radius: var(--radius-sm) !important;
}
.rounded-t-sm, .rounded-t-md, .rounded-t-lg, .rounded-t-xl, .rounded-t-2xl {
  border-top-left-radius: var(--radius-sm) !important;
  border-top-right-radius: var(--radius-sm) !important;
}
.rounded-b-sm, .rounded-b-md, .rounded-b-lg, .rounded-b-xl, .rounded-b-2xl {
  border-bottom-left-radius: var(--radius-sm) !important;
  border-bottom-right-radius: var(--radius-sm) !important;
}
.rounded-tl-sm, .rounded-tl-md, .rounded-tl-lg, .rounded-tl-xl, .rounded-tl-2xl {
  border-top-left-radius: var(--radius-sm) !important;
}
.rounded-tr-sm, .rounded-tr-md, .rounded-tr-lg, .rounded-tr-xl, .rounded-tr-2xl {
  border-top-right-radius: var(--radius-sm) !important;
}
.rounded-bl-sm, .rounded-bl-md, .rounded-bl-lg, .rounded-bl-xl, .rounded-bl-2xl {
  border-bottom-left-radius: var(--radius-sm) !important;
}
.rounded-br-sm, .rounded-br-md, .rounded-br-lg, .rounded-br-xl, .rounded-br-2xl {
  border-bottom-right-radius: var(--radius-sm) !important;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   LG  â€” Small laptops  : 1024px â€“ 1280px
   MD  â€” Tablets        : 768px  â€“ 1024px
   SM  â€” Phone landscape: 576px  â€“ 768px
   XS  â€” Phone portrait : < 576px
   ============================================================ */

/* ---- LG: Small laptops ---- */
@media (max-width: 1280px) {
  .navbar-content  { padding: 0 28px; }
  .page-container  { padding-left: 28px; padding-right: 28px; }
}

/* ---- MD: Tablets ---- */
@media (max-width: 1024px) {
  .navbar-content          { padding: 0 24px; }
  .page-container          { padding-left: 24px; padding-right: 24px; }
  .page-container-narrow   { padding-left: 24px; padding-right: 24px; }
  .page-container-xs       { padding-left: 20px; padding-right: 20px; }
}

/* ---- SM: Phone landscape ---- */
@media (max-width: 768px) {
  .navbar-content          { padding: 0 24px; }
  .page-container          { padding-left: 24px; padding-right: 24px; }
  .page-container-narrow   { padding-left: 24px; padding-right: 24px; }
  .page-container-xs       { padding-left: 20px; padding-right: 20px; }
  .footer-compact          { padding: 16px; }
  .sidebar-menu            { width: min(300px, 85vw); right: min(-300px, -85vw); }
}

/* ---- XS: Phone portrait ---- */
@media (max-width: 576px) {
  /* Navbar */
  .navbar-content          { padding: 0 20px; }
  .navbar-logo             { font-size: 17px; }

  /* Page layout */
  .page-offset             { padding-top: 80px; }
  .page-container          { padding-left: 20px; padding-right: 20px; }
  .page-container-narrow   { padding-left: 20px; padding-right: 20px; }
  .page-container-xs       { padding-left: 16px; padding-right: 16px; }

  /* Sidebar */
  .sidebar-menu            { width: min(280px, 88vw); right: min(-280px, -88vw); }

  /* Tables â€” reduce cell padding on mobile */
  .table-xs td,
  .table-xs th             { padding: 10px 8px !important; font-size: 12px !important; }

  /* Cards & panels */
  .card                    { padding: var(--space-md); }
  .success-state,
  .error-state,
  .warning-state           { padding: var(--space-md); }

  /* Footer */
  .footer-compact          { padding: 14px 12px; }
  .footer-compact p        { font-size: 10px; }

  /* Buttons â€” full width on XS by default unless overridden */
  .btn-full-xs             { width: 100%; }
}

/* Utility: table horizontal scroll on mobile */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

