/* ============================================================
   Azmi Dive Centre — Dark Woody Glassmorphism Theme
   ============================================================
   Font: Inter (easy to swap — change the import + --font-body)
   Colors: Deep walnut/mahogany + warm amber accents
   ============================================================ */

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

/* ---------- Design Tokens (CSS Custom Properties) ---------- */
:root {
  /* Font */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Base palette — dark wood */
  --bg-base:       #1a120b;
  --bg-surface:    #2a1f14;
  --bg-elevated:   #3d2e1e;
  --bg-hover:      #4a3828;

  /* Glass */
  --glass-bg:          rgba(42, 31, 20, 0.55);
  --glass-bg-strong:   rgba(42, 31, 20, 0.75);
  --glass-border:      rgba(255, 235, 205, 0.12);
  --glass-border-light:rgba(255, 235, 205, 0.06);
  --glass-blur:        12px;
  --glass-blur-lg:     20px;

  /* Accent — amber/gold */
  --accent:        #c9903d;
  --accent-hover:  #daa24e;
  --accent-soft:   rgba(201, 144, 61, 0.15);
  --accent-ring:   rgba(201, 144, 61, 0.35);

  /* Text */
  --text-primary:    #f5ebe0;
  --text-secondary:  #a89279;
  --text-muted:      #7a6a56;
  --text-heading:    #fcebd5;

  /* Semantic */
  --success:       #5b8c5a;
  --success-soft:  rgba(91, 140, 90, 0.18);
  --error:         #c45c5c;
  --error-soft:    rgba(196, 92, 92, 0.18);
  --info:          #6b93a8;
  --info-soft:     rgba(107, 147, 168, 0.18);
  --warning:       #d4a843;
  --warning-soft:  rgba(212, 168, 67, 0.18);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.25);
  --shadow-glow:0 0 20px rgba(201, 144, 61, 0.15);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Woody deck plank lines */
  background-image:
    /* Plank gap lines — thin dark grooves */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(0, 0, 0, 0.35) 59px,
      rgba(0, 0, 0, 0.35) 60px,
      rgba(10, 6, 3, 0.25) 60px,
      rgba(10, 6, 3, 0.25) 61px,
      transparent 61px,
      transparent 120px
    ),
    /* Subtle wood grain streaks */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(201, 144, 61, 0.02) 14px,
      rgba(201, 144, 61, 0.02) 15px,
      transparent 15px,
      transparent 32px,
      rgba(160, 110, 50, 0.015) 32px,
      rgba(160, 110, 50, 0.015) 33px,
      transparent 33px,
      transparent 47px,
      rgba(201, 144, 61, 0.018) 47px,
      rgba(201, 144, 61, 0.018) 48px,
      transparent 48px,
      transparent 60px
    ),
    /* Faint highlight on top edge of each plank */
    repeating-linear-gradient(
      0deg,
      rgba(255, 235, 205, 0.03),
      rgba(255, 235, 205, 0.01) 3px,
      transparent 6px,
      transparent 60px
    );
  background-size: 100% 120px, 100% 60px, 100% 60px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { margin-bottom: 0.75rem; color: var(--text-primary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-hover); }

small, .text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.glass-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 235, 205, 0.18);
}
.glass-card-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur-lg));
  -webkit-backdrop-filter: blur(var(--glass-blur-lg));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

/* ---------- Glass Navbar ---------- */
.glass-navbar {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur-lg));
  -webkit-backdrop-filter: blur(var(--glass-blur-lg));
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--accent);
  color: #1a120b;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  color: #1a120b;
}

/* Secondary / Ghost */
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--glass-border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 235, 205, 0.2);
  color: var(--text-primary);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Danger */
.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}
.btn-danger:hover {
  background: #d46a6a;
  border-color: #d46a6a;
}

/* Success */
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover {
  background: #6a9e69;
  border-color: #6a9e69;
}

/* Info */
.btn-info {
  background: var(--info);
  color: #fff;
  border-color: var(--info);
}

/* Icon button */
.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Sizes */
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}
.btn-block { width: 100%; }

/* ---------- Form Controls ---------- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: rgba(26, 18, 11, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: rgba(26, 18, 11, 0.7);
}
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.25);
}
.form-select {
  appearance: auto;
  -webkit-appearance: menulist;
  background-color: rgba(26, 18, 11, 0.5);
  color: var(--text-primary);
  cursor: pointer;
}
.form-select option {
  background: #2a1f14;
  color: #f5ebe0;
  padding: 0.5rem;
}
.form-textarea {
  resize: vertical;
  min-height: 5rem;
}

.invalid-feedback {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.25rem;
  display: none;
}
.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
  display: block;
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check-label {
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.5;
}
.form-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-right: 1rem;
}

/* ---------- Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.data-table thead th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
  white-space: nowrap;
}
.data-table thead th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}
.data-table thead th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}
.data-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border-light);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background var(--transition-fast);
}
.data-table tbody tr:hover {
  background: rgba(255, 235, 205, 0.04);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
}
.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge-danger {
  background: var(--error-soft);
  color: var(--error);
}
.badge-info {
  background: var(--info-soft);
  color: var(--info);
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

/* ---------- Tabs ---------- */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-link {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.tab-link:hover {
  color: var(--text-primary);
  background: rgba(255, 235, 205, 0.04);
}
.tab-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Modal / Overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 4, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
}
.modal-overlay.show {
  display: flex;
}
.modal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3, .modal-header h5 {
  margin: 0;
  font-size: 1.125rem;
}
.modal-body {
  padding: 1.25rem 1.5rem;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.alert-danger {
  background: var(--error-soft);
  color: #f0a0a0;
  border: 1px solid rgba(196, 92, 92, 0.3);
}
.alert-success {
  background: var(--success-soft);
  color: #8fc98e;
  border: 1px solid rgba(91, 140, 90, 0.3);
}
.alert-warning {
  background: var(--warning-soft);
  color: #e8c76a;
  border: 1px solid rgba(212, 168, 67, 0.3);
}
.alert-info {
  background: var(--info-soft);
  color: #8eb8cc;
  border: 1px solid rgba(107, 147, 168, 0.3);
}

/* ---------- Info Tooltip ---------- */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--info);
  background: var(--info-soft);
  border-radius: 50%;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 0.375rem;
  flex-shrink: 0;
}
.info-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  width: max-content;
  max-width: 260px;
  white-space: normal;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 100;
}
.info-icon:hover::after,
.info-icon:focus::after,
.info-icon.active::after {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Progress Steps ---------- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 2px solid var(--glass-border);
  transition: all var(--transition-base);
}
.step-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-base);
}
.step.active .step-number {
  background: var(--accent);
  color: #1a120b;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(201, 144, 61, 0.3);
}
.step.active .step-label { color: var(--text-primary); }
.step.completed .step-number {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.step.completed .step-label { color: var(--success); }
.step-line {
  width: 3rem;
  height: 2px;
  background: var(--glass-border);
  margin: 0 0.5rem;
}
.step-line.completed { background: var(--success); }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur-lg));
  -webkit-backdrop-filter: blur(var(--glass-blur-lg));
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  transition: transform var(--transition-base);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.sidebar-brand img {
  height: 36px;
  border-radius: var(--radius-sm);
}
.sidebar-brand span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
}
.sidebar-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.5rem 0 1rem;
}
.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.sidebar-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.sidebar-link svg, .sidebar-link i {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Sub-menu */
.sidebar-submenu {
  list-style: none;
  padding-left: 1rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base);
}
.sidebar-submenu.show {
  max-height: 500px;
}
.sidebar-submenu .sidebar-link {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
}
.sidebar-toggle-arrow {
  margin-left: auto;
  transition: transform var(--transition-fast);
  font-size: 0.75rem;
}
.sidebar-link[aria-expanded="true"] .sidebar-toggle-arrow {
  transform: rotate(180deg);
}

/* ---------- Main Layout ---------- */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}
.main-area {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content {
  flex: 1;
  padding: 1.5rem;

  /* Deck plank lines in content area */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(0, 0, 0, 0.2) 79px,
      rgba(0, 0, 0, 0.2) 80px,
      rgba(10, 6, 3, 0.12) 80px,
      rgba(10, 6, 3, 0.12) 81px,
      transparent 81px,
      transparent 160px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 18px,
      rgba(201, 144, 61, 0.015) 18px,
      rgba(201, 144, 61, 0.015) 19px,
      transparent 19px,
      transparent 39px,
      rgba(160, 110, 50, 0.012) 39px,
      rgba(160, 110, 50, 0.012) 40px,
      transparent 40px,
      transparent 58px,
      rgba(201, 144, 61, 0.013) 58px,
      rgba(201, 144, 61, 0.013) 59px,
      transparent 59px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 235, 205, 0.02),
      rgba(255, 235, 205, 0.008) 3px,
      transparent 5px,
      transparent 80px
    );
  background-size: 100% 160px, 100% 80px, 100% 80px;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.app-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border-light);
}

/* ---------- Utility ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1rem; }
.container-lg { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-0 { padding-top: 0; }
.pb-2 { padding-bottom: 0.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.relative { position: relative; }
.absolute { position: absolute; }

.border-0 { border: none; }
.border-b { border-bottom: 1px solid var(--glass-border); }

.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

.whitespace-nowrap { white-space: nowrap; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-none { list-style: none; }
.cursor-pointer { cursor: pointer; }

/* Section divider */
.section-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1.5rem 0;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-area {
    margin-left: 0;
  }
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .hide-mobile { display: none !important; }
  .main-content { padding: 1rem; }
  .top-bar { padding: 0.75rem 1rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.9375rem; }
  .form-input, .form-select, .form-textarea {
    padding: 0.75rem;
    font-size: 1rem;
  }
  .step-label { display: none; }
  .step-line { width: 1.5rem; }
}

@media (max-width: 480px) {
  .glass-card { padding: 1rem; }
  .main-content { padding: 0.75rem; }
}

/* Backdrop for mobile sidebar */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 4, 0.6);
  z-index: 1035;
  display: none;
}
.sidebar-backdrop.show {
  display: block;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease; }
.animate-slide-up { animation: slideUp 0.3s ease; }

/* ---------- Print ---------- */
@media print {
  .sidebar, .top-bar, .app-footer, .sidebar-backdrop { display: none !important; }
  .main-area { margin-left: 0 !important; }
  .glass-card { background: #fff; color: #000; box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; color: #000; }
}
