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

:root {
  /* Light Mode Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-blue-light: #e0f2fe;
  --accent-success: #10b981;
  --accent-success-light: #d1fae5;
  --accent-warning: #f59e0b;
  --accent-warning-light: #fef3c7;
  --accent-danger: #ef4444;
  --accent-danger-light: #fee2e2;
  
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --glass-border: rgba(226, 232, 240, 0.8);
  --sidebar-width: 260px;
  
  /* Neon glow properties */
  --neon-glow-color: rgba(2, 132, 199, 0.15);
  --neon-glow-color-active: rgba(2, 132, 199, 0.4);
  --neon-border: rgba(2, 132, 199, 0.25);
}

[data-theme="dark"] {
  /* Dark Mode Colors */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #1f2937;
  
  --accent-blue: #38bdf8;
  --accent-blue-hover: #7dd3fc;
  --accent-blue-light: rgba(56, 189, 248, 0.15);
  --accent-success: #34d399;
  --accent-success-light: rgba(52, 211, 153, 0.15);
  --accent-warning: #fbbf24;
  --accent-warning-light: rgba(251, 191, 36, 0.15);
  --accent-danger: #f87171;
  --accent-danger-light: rgba(248, 113, 113, 0.15);
  
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* Neon glow properties */
  --neon-glow-color: rgba(56, 189, 248, 0.2);
  --neon-glow-color-active: rgba(56, 189, 248, 0.5);
  --neon-border: rgba(56, 189, 248, 0.35);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* INTRO ANIMATION */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.intro-content {
  text-align: center;
}

.intro-logo {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  animation: logoPulse 2.5s infinite ease-in-out, logoScaleUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: scale(0.8);
}

.intro-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: slideFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.intro-loader {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
}

.intro-loader::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #0369a1);
  border-radius: 10px;
  animation: fillLoader 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoScaleUp {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.2)); }
  50% { filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.6)); }
}

@keyframes slideFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fillLoader {
  to { width: 100%; }
}

/* APP CONTAINER */
#app-container {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

#app-container.active {
  display: flex;
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-icon:hover {
  background-color: var(--border-color);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.user-badge .role {
  font-size: 0.75rem;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* AUTHENTICATION VIEW */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 2rem;
  background: radial-gradient(circle at top right, var(--accent-blue-light) 0%, transparent 60%);
}

.auth-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

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

.auth-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-size: 1rem;
}

.auth-tab.active {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  margin-bottom: -2px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 12px;
  font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

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

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-hover) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

/* DASHBOARD LAYOUT */
.dashboard-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 73px);
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.menu-item:hover, .menu-item.active {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
}

.menu-item i {
  font-size: 1.1rem;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* Auth wrapper needs flex even when .active */
.auth-page-wrapper.view-section.active {
  display: flex !important;
}

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

.view-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card-clickable {
  cursor: pointer;
}

.stat-card-clickable:hover {
  transform: translateY(-3px);
  border-color: var(--neon-border) !important;
  box-shadow: var(--card-shadow), 0 8px 25px var(--neon-glow-color-active) !important;
}

.stat-card-arrow {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stat-card-clickable:hover .stat-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Dashboard stats modal table styling */
#dashboard-stats-table th {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

#dashboard-stats-table td {
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

#dashboard-stats-table tr:last-child td {
  border-bottom: none;
}

#dashboard-stats-table tr:hover td {
  background-color: var(--accent-blue-light);
}

#dashboard-stats-table .summary-row td {
  font-weight: 700;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  border-top: 2px solid var(--neon-border);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  color: var(--accent-blue);
  background-color: var(--accent-blue-light);
}

.stat-icon.revenue {
  color: var(--accent-success);
  background-color: var(--accent-success-light);
}

.stat-info h4 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info .value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* DATATABLES & LISTS */
.table-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

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

.table-search {
  position: relative;
}

.table-search input {
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  width: 250px;
}

.table-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

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

th {
  background-color: var(--bg-primary);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.925rem;
}

tr:last-child td {
  border-bottom: none;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new { background-color: var(--accent-warning-light); color: var(--accent-warning); }
.badge-assigned { background-color: var(--accent-blue-light); color: var(--accent-blue); }
.badge-inspection { background-color: var(--accent-blue-light); color: var(--accent-blue); }
.badge-waiting { background-color: var(--accent-warning-light); color: var(--accent-warning); }
.badge-approved { background-color: var(--accent-success-light); color: var(--accent-success); }
.badge-progress { background-color: var(--accent-blue-light); color: var(--accent-blue); }
.badge-completed { background-color: var(--accent-success-light); color: var(--accent-success); }
.badge-invoice { background-color: var(--accent-success-light); color: var(--accent-success); }
.badge-closed { background-color: var(--border-color); color: var(--text-secondary); }

/* TRACKING TIMELINE */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 3rem 0;
  padding: 0 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.timeline-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 4px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.timeline-step.active .timeline-icon {
  border-color: var(--accent-blue);
  background-color: var(--accent-blue);
  color: white;
  box-shadow: 0 0 0 6px var(--accent-blue-light);
  animation: pulseActive 2s infinite;
}

.timeline-step.completed .timeline-icon {
  border-color: var(--accent-success);
  background-color: var(--accent-success);
  color: white;
}

.timeline-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  max-width: 100px;
}

.timeline-step.active .timeline-label {
  color: var(--accent-blue);
  font-weight: 700;
}

.timeline-step.completed .timeline-label {
  color: var(--accent-success);
}

@keyframes pulseActive {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* REALTIME LOGS / REPAIR UPDATES */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.update-item {
  display: flex;
  gap: 1rem;
  border-left: 2px solid var(--border-color);
  padding-left: 1.25rem;
  position: relative;
}

.update-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
}

.update-item.highlight::before {
  background-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.update-item .time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 80px;
}

.update-item .content h5 {
  font-size: 0.9rem;
  font-weight: 600;
}

.update-item .content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* MODALS */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 550px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Form inside modal must also be a flex column so footer stays pinned */
.modal-card > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

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

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0; /* required for flex overflow scrolling */
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: var(--bg-primary);
  flex-shrink: 0; /* always visible — never pushed off screen */
}

/* TOAST NOTIFICATION CONTAINER */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-left: 4px solid var(--accent-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 320px;
  max-width: 450px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success { border-left-color: var(--accent-success); }
.toast.toast-warning { border-left-color: var(--accent-warning); }
.toast.toast-danger { border-left-color: var(--accent-danger); }

.toast-icon {
  font-size: 1.25rem;
  color: var(--accent-blue);
}
.toast.toast-success .toast-icon { color: var(--accent-success); }
.toast.toast-warning .toast-icon { color: var(--accent-warning); }
.toast.toast-danger .toast-icon { color: var(--accent-danger); }

.toast-content h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.toast-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

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

/* INVOICE DESIGN */
.invoice-container {
  background-color: #ffffff;
  color: #1e293b;
  padding: 2.5rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
}

.invoice-brand {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.invoice-brand h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0284c7;
}

.invoice-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.invoice-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
}

.invoice-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.invoice-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.invoice-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.invoice-total-row td {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  border-bottom: 2px solid #94a3b8;
  background-color: #f8fafc;
}

.invoice-signature {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.signature-line {
  border-top: 1.5px solid #94a3b8;
  width: 200px;
  text-align: center;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* CUSTOM PRINT SYSTEM */
@media print {
  @page {
    margin: 10mm;
  }
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  #app-container, header, .sidebar, .main-content, .modal, .btn, #toast-container, button, .no-print {
    display: none !important;
  }
  
  #print-area, #print-area.active {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .invoice-container {
    border: none !important;
    padding: 0.5rem 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .invoice-date-highlight, .invoice-warranty-highlight, .csk-stamp {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

#print-area {
  display: none;
}
#print-area.active {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  z-index: 200000 !important;
  overflow-y: auto !important;
  padding: 3rem !important;
}

/* ========================================================
   RESPONSIVE DESIGN — MOBILE FIRST
   ======================================================== */

/* Tablet & Mobile */
@media (max-width: 768px) {
  /* Layout */
  .dashboard-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  /* HEADER */
  header {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  header h1 {
    font-size: 1rem;
  }
  .header-right {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .header-right .user-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  /* SIDEBAR → horizontal scroll tab bar */
  .sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    overflow: hidden;
  }
  .sidebar-brand {
    display: none;
  }
  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 0.5rem 0.5rem;
    gap: 0.25rem;
    scrollbar-width: none;
  }
  .sidebar-menu::-webkit-scrollbar { display: none; }
  .menu-item {
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .menu-item i { margin-right: 0.3rem; }
  .sidebar-footer { display: none; }

  /* MAIN CONTENT */
  .main-content {
    padding: 0.75rem;
    overflow-y: visible;
    min-height: auto;
  }

  /* STATS GRID — 2 columns on mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .stat-card {
    padding: 0.75rem;
  }
  .stat-card .stat-value {
    font-size: 1.4rem;
  }
  .stat-card .stat-label {
    font-size: 0.72rem;
  }

  /* TABLES — horizontal scroll */
  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 520px;
    font-size: 0.8rem;
  }
  th, td {
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
  }

  /* MODALS — full-screen on mobile */
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-card {
    border-radius: 18px 18px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
  }
  .modal-body {
    padding: 1rem;
  }
  .modal-header {
    padding: 0.9rem 1rem;
  }
  .modal-footer {
    padding: 0.9rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  .modal-footer button {
    width: 100%;
    justify-content: center;
  }

  /* FORM GROUPS */
  .form-group {
    margin-bottom: 0.75rem;
  }
  .form-group label {
    font-size: 0.8rem;
  }
  input, select, textarea {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  /* TIMELINE */
  .timeline {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.5rem 0;
  }
  .timeline::before {
    left: 27px;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
  }
  .timeline-step {
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
  }
  .timeline-label {
    margin-top: 0;
    text-align: left;
    max-width: none;
    font-size: 0.78rem;
  }

  /* INVOICE */
  .invoice-meta, .invoice-details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .invoice-brand {
    flex-direction: column;
    gap: 0.5rem;
  }
  .invoice-brand > div:last-child {
    text-align: left;
  }
  .invoice-signature {
    flex-direction: column;
    gap: 1rem;
  }
  .invoice-action-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  #invoice-action-bar button {
    width: 100%;
  }

  /* PAGE HEADING */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .page-header button, .page-header .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* SIGNATURE PAD */
  .sig-canvas-wrap canvas {
    width: 100% !important;
    height: 150px !important;
  }
}

/* ========================================================
   AUTH PAGE — SPLIT LAYOUT (Brand Panel + Login Card)
   ======================================================== */

.auth-page-wrapper {
  flex: 1;
  min-height: calc(100vh - 73px);
  overflow: hidden;
}

/* Left: Brand Advertisement Panel */
.auth-brand-panel {
  flex: 1;
  background: linear-gradient(145deg, #0a1628 0%, #0c2340 40%, #0f3460 70%, #0a2d55 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.brand-panel-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
}

.brand-panel-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.brand-panel-logo i {
  font-size: 2rem;
  color: #38bdf8;
}

.brand-panel-logo span {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-panel-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f0f9ff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.brand-panel-sub {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* BRAND LOGOS GRID */
.brand-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.brand-logo-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: default;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.brand-logo-item:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  filter: brightness(1.1);
}

/* In dark bg, make SVG logos brighter */
.brand-logo-item:not(:hover) .brand-logo-box {
  opacity: 0.85;
}

.brand-logo-item span {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
  text-align: center;
}

/* SCROLLING BRAND TICKER */
.brand-ticker-wrap {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
}

.brand-ticker {
  display: flex;
  gap: 2rem;
  animation: tickerScroll 22s linear infinite;
  white-space: nowrap;
}

.brand-ticker span {
  font-size: 0.85rem;
  color: #7dd3fc;
  font-weight: 600;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* BRAND PANEL BADGES */
.brand-panel-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Right: Auth Card (login/register) */
.auth-page-wrapper .auth-card {
  width: 420px;
  min-width: 380px;
  max-width: 440px;
  margin: 0;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  overflow-y: auto;
}

/* Demo Credentials Box */
.auth-demo-creds {
  margin-top: 1.25rem;
  background: var(--accent-blue-light);
  border: 1px dashed var(--accent-blue);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.auth-demo-creds p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.auth-demo-creds p strong {
  color: var(--accent-blue);
}

/* ========================================================
   ADMIN: DUAL ACTION BUTTONS IN REQUESTS TABLE
   ======================================================== */
.admin-actions-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-assign {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: auto;
}

.btn-assign:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-assign-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-hover));
  color: white;
}

.btn-assign-secondary {
  background: var(--accent-warning-light);
  color: var(--accent-warning);
  border: 1px solid var(--accent-warning) !important;
}

.btn-assign-logs {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color) !important;
}

/* Responsive: collapse brand panel on mobile */
@media (max-width: 900px) {
  .auth-page-wrapper {
    flex-direction: column;
  }

  .auth-brand-panel {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .brand-logos-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .auth-page-wrapper .auth-card {
    width: 100%;
    min-width: unset;
    max-width: unset;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .brand-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brand-panel-badges {
    gap: 0.5rem;
  }
}

/* ========================================================
   CSK RUBBER STAMP & DIGITAL SIGNATURE PAD STYLES
   ======================================================== */

.csk-stamp {
  border: 4px double #1e40af; /* Deep blue ink */
  border-radius: 50%;
  color: #1e40af;
  font-family: 'Outfit', sans-serif;
  padding: 4px;
  width: 72px;
  height: 72px;
  display: inline-block;
  transform: rotate(-12deg);
  opacity: 0.85;
  user-select: none;
  background-color: transparent;
}

.csk-stamp-ring {
  border: 1.5px solid #1e40af;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csk-stamp-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.csk-stamp-name {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
}

.csk-stamp-sub {
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 1px 0;
  text-transform: uppercase;
}

.csk-stamp-auth {
  font-size: 0.42rem;
  font-weight: 600;
  border-top: 1px dashed #1e40af;
  padding-top: 1px;
  text-transform: uppercase;
}

/* Signature Drawing Canvas */
.sig-canvas-wrap {
  border: 2px dashed var(--border-color);
  background-color: var(--bg-primary);
  border-radius: 12px;
  display: inline-block;
  padding: 8px;
  margin-top: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#signature-canvas {
  background-color: #ffffff;
  border-radius: 8px;
  cursor: crosshair;
  display: block;
  touch-action: none; /* Prevent scrolling while drawing */
}

/* Printing styles for signatures */
@media print {
  .csk-stamp {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border-color: #1e40af !important;
    color: #1e40af !important;
  }
  .csk-stamp-ring {
    border-color: #1e40af !important;
  }
  .csk-stamp-auth {
    border-top-color: #1e40af !important;
  }
  #prt-customer-signature {
    display: block !important;
    max-height: 75px !important;
    max-width: 190px !important;
  }
}

/* ========================================================
   LOGIN SUCCESS TRANSITION ANIMATION
   ======================================================== */

.login-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000; /* Dark theme to match logo */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.login-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.transition-logo-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.transition-logo {
  max-width: 320px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(2, 132, 199, 0.4);
  transform: scale(0.2) rotate(-25deg);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease-out;
}

.login-transition-overlay.active .transition-logo {
  transform: scale(1) rotate(0deg);
  opacity: 1;
  animation: logoPulse 2s infinite alternate ease-in-out 1.2s;
}

.transition-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #0284c7;
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.login-transition-overlay.active .transition-spinner {
  opacity: 1;
  animation: spin 0.8s infinite linear;
}

.transition-text {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-top: 1rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.login-transition-overlay.active .transition-text {
  opacity: 1;
  transform: translateY(0);
}

@keyframes logoPulse {
  0% {
    box-shadow: 0 0 40px rgba(2, 132, 199, 0.4);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 60px rgba(2, 132, 199, 0.7);
    transform: scale(1.03);
  }
}

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

/* Premium Custom Scrollbars with Neon Lighting and Good Ambience */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(2, 132, 199, 0.05);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 8px;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.25);
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue), 0 0 4px var(--accent-blue);
}

/* Ensure horizontal scroll on table containers is active and responsive */
.table-card {
  overflow-x: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-primary);
}

/* Neon glow for active state in sidebar and header box-shadow */
.menu-item.active {
  box-shadow: 0 0 15px var(--neon-glow-color-active);
  border-left: 3px solid var(--accent-blue);
  background-color: var(--accent-blue-light) !important;
}
header {
  border-bottom: 1.5px solid var(--neon-border);
  box-shadow: 0 1px 15px var(--neon-glow-color), 0 0 8px rgba(2, 132, 199, 0.04);
}

/* Blue lighting glow for borders of the application structure, cards, and textareas */
.sidebar {
  border-right: 1.5px solid var(--neon-border) !important;
  box-shadow: 2px 0 15px var(--neon-glow-color);
}

.auth-card, .stat-card, .table-card, .modal-card {
  border: 1.5px solid var(--neon-border) !important;
  box-shadow: var(--card-shadow), 0 0 15px var(--neon-glow-color) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover, .stat-card:hover, .table-card:hover {
  border-color: var(--accent-blue) !important;
  box-shadow: var(--card-shadow), 0 0 25px var(--neon-glow-color-active) !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 3px var(--accent-blue-light), 0 0 12px var(--neon-glow-color-active) !important;
}

/* About Us Styling on Login Page */
#about-us-container {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-top: 1rem;
}

/* Custom Scrollbar for About Us */
#about-us-container::-webkit-scrollbar {
  width: 6px;
}
#about-us-container::-webkit-scrollbar-track {
  background: transparent;
}
#about-us-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.about-section {
  margin-bottom: 1.25rem;
  text-align: left;
}

.about-section h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 0.25rem;
}

.about-section p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.disclaimer-box {
  background: #fff5f5;
  border: 1.5px solid #fecaca !important;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: none !important;
}
.disclaimer-box i {
  color: #ef4444;
  font-size: 1.15rem;
  margin-top: 0.15rem;
}
.disclaimer-box strong {
  color: #991b1b;
  font-size: 0.85rem;
  display: block;
}
.disclaimer-box p {
  margin-top: 0.2rem;
  color: #b91c1c;
  font-weight: 600;
}

.services-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: none !important;
}
.services-box i {
  color: var(--accent-blue);
  font-size: 1.15rem;
  margin-top: 0.15rem;
}
.services-box strong {
  color: #1e293b;
  font-size: 0.85rem;
  display: block;
}
.services-box p {
  margin-top: 0.2rem;
  color: var(--text-secondary);
}

.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  display: inline-block;
}

.chip-samsung { background: #1428A0; }
.chip-sony { background: #000; }
.chip-lg { background: #a50034; }
.chip-panasonic { background: #003087; }
.chip-mi { background: #ff6900; }
.chip-philips { background: #0047bb; }
.chip-toshiba { background: #e4002b; }
.chip-oneplus { background: #f5010c; }
.chip-tcl { background: #e4002b; }

.appliance-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0 !important;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: none !important;
}
.appliance-box i {
  color: #16a34a;
  font-size: 1.15rem;
}
.appliance-box span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803d;
}

.promise-box {
  background: #f0fdfa;
  border: 1.5px solid #ccfbf1 !important;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: none !important;
}
.promise-box i {
  color: #0d9488;
  font-size: 1.15rem;
  margin-top: 0.15rem;
}
.promise-box strong {
  color: #115e59;
  font-size: 0.85rem;
  display: block;
}
.promise-box p {
  margin-top: 0.2rem;
  color: #134e4a;
}

/* ========================================================
   AUTH IMPROVEMENTS - GOOGLE AUTH & MODAL STYLING
   ======================================================== */

/* Google Sign-in Button Styles */
#google-signin-btn {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

#google-signin-btn:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

/* Auth Divider Line */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Modal Auth specific sizing & container styling */
#modal-auth .auth-card {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

#modal-auth .btn-icon:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
  border-radius: 50%;
}

/* Email Verification OTP Code Input Field Styling */
#reg-otp {
  font-family: monospace;
  font-size: 1.8rem;
  letter-spacing: 0.6rem;
  text-indent: 0.3rem; /* Visual balance for letter-spacing */
  text-align: center;
  padding: 0.75rem;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--accent-blue);
  width: 100%;
}

#reg-otp:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-light);
}

/* Mobile optimizations for Auth Modal */
@media (max-width: 600px) {
  #modal-auth .auth-card {
    max-height: 100vh;
    border-radius: 0;
    padding: 2rem 1.5rem;
  }
}


