/* ==========================================================================
   IMMIGRATION APPLICATION STATUS PORTAL — ENTERPRISE DESIGN SYSTEM
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #312e81;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-sidebar: #1e293b;

  /* Primary Brand */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.18);

  /* Status Colors */
  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --amber-50: #fffbeb;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --rose-50: #fff1f2;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-700: #be123c;

  --purple-50: #faf5ff;
  --purple-500: #a855f7;
  --purple-600: #9333ea;

  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-600: #475569;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 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.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Layout Constants */
  --sidebar-width: 260px;
  --header-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

.mono-font {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

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

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  color: #e2e8f0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform var(--transition-normal);
  border-right: 1px solid var(--border-sidebar);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Sidebar Elements */
.sidebar-header {
  height: var(--header-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-sidebar);
  position: relative;
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  flex-shrink: 0;
}

.sidebar-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.sidebar-brand span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mobile-only Close Drawer Button */
.sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-left: auto;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.sidebar-nav {
  padding: 1.25rem 0.85rem;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  padding: 0.75rem 0.75rem 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #94a3b8;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  min-height: 40px;
}

.nav-item:hover {
  background-color: var(--bg-sidebar-hover);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(90deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-sidebar);
  background-color: #0b1120;
}

.sidebar-user-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  padding: 0.4rem;
  transition: background var(--transition-fast);
}

.sidebar-user-link:hover {
  background: var(--bg-sidebar-hover);
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.avatar-circle.customer {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
}

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

.user-info-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info-role {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: capitalize;
}

/* Sidebar Backdrop Overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open-locked {
  overflow: hidden;
}

/* Header / Topbar */
.topbar {
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.45rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 38px;
  min-height: 38px;
}

.sidebar-toggle-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.topbar-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.topbar-mini-logo {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.topbar-brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.topbar-brand-title strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.badge-role-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: capitalize;
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.8rem;
}

.topbar-user-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background-color: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

.pulse-dot.rose {
  background-color: var(--rose-500);
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
  animation: pulse-ring-rose 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-ring-rose {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* Content Container */
.page-container {
  padding: 2rem;
  max-width: 1440px;
  width: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.case-header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

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

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-body {
  padding: 1.5rem;
}

/* Stat Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stat-color, var(--primary)), transparent);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}
.stat-desc.text-amber { color: var(--amber-600); font-weight: 600; }
.stat-desc.text-emerald { color: var(--emerald-600); font-weight: 600; }
.stat-desc.text-rose { color: var(--rose-600); font-weight: 600; }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.stat-icon.emerald { background-color: var(--emerald-50); color: var(--emerald-600); }
.stat-icon.amber   { background-color: var(--amber-50); color: var(--amber-600); }
.stat-icon.blue    { background-color: var(--blue-50); color: var(--blue-600); }
.stat-icon.rose    { background-color: var(--rose-50); color: var(--rose-600); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: #94a3b8;
  color: var(--text-main);
}

.btn-danger {
  background-color: var(--rose-500);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: var(--rose-600);
}

.btn-sm {
  padding: 0.42rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-icon-only {
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1;
}

/* Filter Pills */
.filter-pills-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.filter-pills-container::-webkit-scrollbar {
  display: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* Filter Form Grid */
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.filter-field {
  min-width: 140px;
}
.filter-field-search {
  flex: 2;
  min-width: 220px;
}
.filter-field-select {
  flex: 1;
  min-width: 150px;
}
.filter-field-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-subtle);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-inline-picker {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.form-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background-color: #f8fafc;
  padding: 0.85rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background-color: #f8fafc;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.badge-draft { background-color: #f1f5f9; color: #475569; }
.badge-documents-required { background-color: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-documents-received { background-color: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-ready-for-submission { background-color: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-submitted { background-color: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-application-received { background-color: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.badge-under-assessment { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-additional-information-required { background-color: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-decision-pending { background-color: #fdf4ff; color: #86198f; border: 1px solid #f5d0fe; }
.badge-approved { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-visa-granted { background-color: #ecfdf5; color: #065f46; font-weight: 700; border: 1px solid #6ee7b7; box-shadow: 0 1px 4px rgba(16,185,129,0.15); }
.badge-declined { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-withdrawn { background-color: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.badge-closed { background-color: #e2e8f0; color: #334155; }

/* Priority Badges */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.priority-urgent { background-color: var(--rose-50); color: var(--rose-600); border: 1px solid rgba(244,63,94,0.3); }
.priority-high   { background-color: var(--amber-50); color: var(--amber-700); border: 1px solid rgba(245,158,11,0.3); }
.priority-normal { background-color: var(--blue-50); color: var(--blue-600); }
.priority-low    { background-color: var(--slate-50); color: var(--slate-600); }

/* Timeline Stepper UI (Enterprise Standard) */
.timeline-stepper {
  position: relative;
  padding: 1rem 0;
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background-color: var(--border-light);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.timeline-step.completed .timeline-marker {
  background-color: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #ffffff;
}

.timeline-step.active .timeline-marker {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.timeline-step.completed::before {
  background-color: var(--emerald-500);
}

.timeline-body {
  flex: 1;
  background-color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.timeline-body:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-desc {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

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

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  animation: modal-enter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

/* Auth Page Styles */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #0f172a 90%);
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.auth-page-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-normal);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo-link {
  display: inline-block;
  text-decoration: none;
}

.auth-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-tabs {
  display: flex;
  background-color: #f1f5f9;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  gap: 0.25rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-tab:hover {
  color: var(--text-main);
}

.auth-tab.active {
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.82rem 1.25rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-demo-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.auth-demo-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-demo-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.auth-demo-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.auth-demo-btn:hover {
  background: var(--primary-light);
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.auth-demo-btn:active {
  transform: scale(0.98);
}

.auth-demo-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-demo-role {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
}

.auth-demo-user {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.auth-demo-action {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.auth-footer-links {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-back-home-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-back-home-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   CUSTOMER / APPLICANT PORTAL — DEDICATED STYLES & MOBILE OPTIMIZATIONS
   ========================================================================== */

.customer-portal-body {
  background-color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.customer-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.customer-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.customer-logo-small {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1rem;
}

.customer-brand-text strong {
  font-size: 1.05rem;
  color: var(--text-main);
  display: block;
  line-height: 1.2;
}

.customer-brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.customer-links {
  display: flex;
  gap: 1.5rem;
}

.customer-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.2rem;
  position: relative;
}

.customer-link.active {
  color: var(--primary);
}

.customer-link.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px 3px 0 0;
}

.customer-user-tray {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.customer-user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f8fafc;
  padding: 0.3rem 0.65rem 0.3rem 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.customer-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.customer-logout-btn .logout-icon {
  display: none;
}

.customer-main-container {
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  flex: 1;
}

/* Customer Case Cards */
.customer-case-card {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.customer-case-card:last-child {
  border-bottom: none;
}

.customer-case-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.customer-case-ref-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.customer-case-ref {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.customer-case-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.customer-case-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.customer-case-notice {
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  padding: 0.85rem 1.15rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.88rem;
}

.customer-case-notice-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.customer-case-notice-text {
  color: #334155;
  line-height: 1.5;
}

/* Customer Tracker Page Header */
.customer-tracker-header {
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.customer-back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.customer-tracker-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.customer-app-id {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.customer-tracker-category {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.customer-action-bar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.customer-switch-select {
  width: auto;
  font-size: 0.85rem;
}

/* Customer Hero Card */
.customer-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 5px solid var(--primary);
}

.customer-hero-body {
  padding: 1.75rem;
}

.customer-hero-status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.customer-hero-eyebrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.customer-hero-title {
  font-size: 1.4rem;
  color: var(--text-main);
  font-weight: 800;
  margin-top: 0.2rem;
}

.customer-hero-notice {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.customer-hero-notice-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.customer-hero-notice-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}

.customer-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Mobile Bottom Navigation (Hidden on Desktop) */
.mobile-bottom-nav {
  display: none;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

/* ==========================================================================
   ADMIN & CUSTOMER MOBILE BOTTOM NAVIGATION (Hidden on Desktop)
   ========================================================================== */

.admin-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
  justify-content: space-around;
  align-items: center;
  padding: 0 0.25rem;
}

.admin-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.admin-bottom-nav-item svg {
  transition: transform var(--transition-fast), stroke var(--transition-fast);
}

.admin-bottom-nav-item.active,
.admin-bottom-nav-item:hover {
  color: var(--primary);
}

.admin-bottom-nav-item.active svg {
  stroke: var(--primary);
  stroke-width: 2.3;
  transform: translateY(-1px);
}

/* Elevated New Case Center Button */
.admin-bottom-nav-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  position: relative;
  top: -12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  -webkit-tap-highlight-color: transparent;
}

.action-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
  margin-bottom: 2px;
  border: 3px solid #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-bottom-nav-action:active .action-btn-circle {
  transform: scale(0.92);
}

/* Mobile Bottom Navigation for Customer Portal */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  gap: 0.25rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item.active svg {
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.3));
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-close-btn {
    display: flex;
  }
  
  .sidebar-toggle-btn {
    display: inline-flex;
  }
  
  .topbar-mobile-brand {
    display: flex;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .topbar {
    padding: 0 1.25rem;
  }
  
  .page-container {
    padding: 1.5rem 1.25rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  /* Layout Grid Adjustments */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Admin & Customer Body Bottom Spacing for App Bars */
  .admin-portal-body {
    padding-bottom: 74px;
  }
  
  .customer-portal-body {
    padding-bottom: 70px;
  }

  .admin-mobile-bottom-nav {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .desktop-only-badge,
  .desktop-only-date,
  .desktop-only-nav {
    display: none !important;
  }

  /* Topbar Mobile */
  .topbar {
    height: 60px;
    padding: 0 1rem;
  }

  /* Page Header Mobile Stacking */
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .page-header-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .page-header-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .page-subtitle {
    font-size: 0.82rem;
  }

  .admin-page-container {
    padding: 1.15rem 1rem 2rem;
  }

  /* Stat Cards Grid on Mobile (Smart 2x2 Grid) */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .stat-card {
    padding: 1rem 0.9rem;
  }

  .stat-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .stat-desc {
    font-size: 0.7rem;
    margin-top: 0.2rem;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
  }

  .stat-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Filter Forms & Inputs on Mobile */
  .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-field {
    width: 100%;
    min-width: 100%;
  }

  .filter-field-actions {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }

  .filter-field-actions .btn {
    flex: 1;
    justify-content: center;
  }

  /* Prevent iOS Safari input auto-zoom */
  .form-control,
  .form-select,
  select.form-control {
    font-size: 16px;
    padding: 0.68rem 0.85rem;
  }

  .form-inline-picker {
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-actions-bar {
    flex-direction: column-reverse;
    gap: 0.6rem;
    width: 100%;
  }

  .form-actions-bar .btn,
  .btn-mobile-full {
    width: 100%;
    justify-content: center;
    padding: 0.72rem 1rem;
    font-size: 0.92rem;
  }

  /* Touch-Optimized Tables on Mobile */
  .table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    -webkit-overflow-scrolling: touch;
    box-shadow: inset -12px 0 8px -8px rgba(0, 0, 0, 0.04);
  }

  .table th {
    padding: 0.75rem 0.9rem;
    font-size: 0.72rem;
  }

  .table td {
    padding: 0.8rem 0.9rem;
    font-size: 0.84rem;
  }

  /* Application Details on Mobile */
  .case-header-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .timeline-step {
    gap: 1rem;
    padding-bottom: 1.5rem;
  }
  
  .timeline-marker {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .timeline-step::before {
    left: 15px;
    top: 32px;
  }
  
  .timeline-body {
    padding: 0.85rem 1rem;
  }
  
  .timeline-title {
    font-size: 0.88rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .timeline-desc {
    font-size: 0.82rem;
  }

  /* Modals on Mobile */
  .modal-dialog {
    max-width: 95vw;
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }
  
  .modal-body {
    padding: 1.15rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Customer Portal Adjustments */
  .customer-nav {
    height: 60px;
    padding: 0 1rem;
  }

  .customer-user-name {
    display: none;
  }

  .customer-user-badge {
    background: transparent;
    border: none;
    padding: 0;
  }

  .customer-logout-btn .logout-text {
    display: none;
  }
  .customer-logout-btn .logout-icon {
    display: block;
  }
  .customer-logout-btn {
    padding: 0.4rem 0.6rem;
  }

  .customer-main-container {
    padding: 1.25rem 1rem 2rem;
  }

  .customer-welcome-title {
    font-size: 1.35rem;
  }
  .customer-welcome-subtitle {
    font-size: 0.85rem;
  }

  .customer-case-card {
    padding: 1.15rem;
  }
  .customer-case-top {
    flex-direction: column;
    align-items: stretch;
  }
  .customer-case-action-wrap {
    width: 100%;
  }
  .customer-track-btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
  }

  .customer-tracker-header {
    margin-bottom: 1.25rem;
  }
  .customer-app-id {
    font-size: 1.35rem;
  }
  .customer-action-bar {
    width: 100%;
    display: flex;
  }
  .customer-action-bar .btn,
  .customer-switch-select {
    flex: 1;
    text-align: center;
    justify-content: center;
    font-size: 0.8rem;
  }

  .customer-hero-body {
    padding: 1.25rem;
  }
  .customer-hero-title {
    font-size: 1.2rem;
  }

  .customer-stepper-body {
    padding: 1.15rem;
  }

  .customer-submit-btn {
    width: 100%;
    padding: 0.75rem;
  }

  .customer-footer {
    padding-bottom: 2rem;
  }
}

/* Small Smartphone Screens (<= 480px) */
@media (max-width: 480px) {
  .topbar-brand-title strong {
    font-size: 0.82rem;
  }
  
  .topbar-new-case-btn .btn-text,
  .topbar-logout-btn .logout-text {
    display: none;
  }
  
  .topbar-new-case-btn,
  .topbar-logout-btn {
    padding: 0.4rem 0.55rem;
  }

  .admin-page-container {
    padding: 0.9rem 0.75rem 2rem;
  }

  .customer-brand-text span {
    display: none;
  }

  /* Mobile Auth Styling */
  .auth-page {
    padding: 1.25rem 0.75rem;
  }

  .auth-card {
    padding: 1.5rem 1.15rem;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.4);
  }

  .auth-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 0.6rem;
  }

  .auth-title {
    font-size: 1.3rem;
  }

  .auth-subtitle {
    font-size: 0.8rem;
  }

  .auth-tabs {
    padding: 0.25rem;
    margin-bottom: 1.25rem;
  }

  .auth-tab {
    padding: 0.55rem 0.25rem;
    font-size: 0.78rem;
  }

  .auth-demo-btn {
    padding: 0.55rem 0.75rem;
  }

  .auth-demo-role {
    font-size: 0.78rem;
  }

  .auth-demo-user {
    font-size: 0.72rem;
  }

  .auth-demo-action {
    font-size: 0.72rem;
  }
}

/* Print Styles */
@media print {
  .sidebar, .topbar, .customer-topbar, .mobile-bottom-nav, .admin-mobile-bottom-nav, .sidebar-backdrop, .btn, form, footer {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
  }
  .page-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
}

