/* ============================================
   GLI Rentals - Main Stylesheet
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Brand Colors */
  --navy: #012340;
  --navy-light: #023566;
  --navy-dark: #011829;
  --carolina: #56a0d3;
  --carolina-light: #87ceeb;
  --cyan: #38bdf8;
  
  /* UI Colors */
  --bg: #f5f7f8;
  --text: #012340;
  --text-muted: #64748b;
  --line: #e5e7eb;
  --white: #ffffff;
  
  /* Status Colors */
  --success: #22c55e;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warning: #eab308;
  --warning-bg: #fef9c3;
  --warning-text: #854d0e;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --info-text: #1e40af;
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-2xl: 32px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(1, 35, 64, 0.06);
  --shadow-md: 0 4px 16px rgba(1, 35, 64, 0.08);
  --shadow-lg: 0 8px 32px rgba(1, 35, 64, 0.1);
  --shadow-xl: 0 16px 48px rgba(1, 35, 64, 0.12);
  
  /* Glass Effects */
  --glass-bg: linear-gradient(165deg, 
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 25%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.6) 75%,
    rgba(255, 255, 255, 0.8) 100%);
  --glass-bg-light: linear-gradient(165deg, 
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.7) 100%);
  --glass-bg-subtle: linear-gradient(165deg, 
    rgba(255, 255, 255, 0.7) 0%, 
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.5) 100%);
  --glass-border: 1.5px solid rgba(255, 255, 255, 0.95);
  --glass-shadow: 
    0 4px 24px rgba(1, 35, 64, 0.1),
    0 12px 48px rgba(1, 35, 64, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

/* Force black headings everywhere */
h1, h2, h3 {
  color: #000 !important;
}
* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  overflow-x: hidden; 
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ============================================
   Ambient Background (Blue Blobs)
   ============================================ */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 35, 64, 0.4) 0%, rgba(1, 35, 64, 0.2) 40%, transparent 70%);
  top: -100px;
  right: -50px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(86, 160, 211, 0.35) 0%, rgba(86, 160, 211, 0.15) 40%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 53, 102, 0.3) 0%, rgba(2, 53, 102, 0.1) 50%, transparent 70%);
  top: 30%;
  right: 20%;
}

.blob-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(135, 206, 250, 0.3) 0%, rgba(135, 206, 250, 0.1) 50%, transparent 70%);
  top: 10%;
  left: 20%;
}

.blob-5 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 60%);
  bottom: 30%;
  right: 5%;
}

/* ============================================
   App Layout
   ============================================ */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
  background: var(--navy);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px 18px;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  display: block;
  color: #e5f2f1;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  letter-spacing: 0.28em;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.02s ease;
}

/* Hide icons on desktop */
.nav-icon {
  display: none;
}

.nav a:hover {
  background: var(--navy-light);
}

.nav a.active {
  background: var(--navy-light);
  color: #fff;
}

/* User Section */
.user-section {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  color: #e5f2f1;
  font-size: 13px;
  padding: 8px 4px;
  margin-bottom: 8px;
}

.user-email {
  color: #fff;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-status {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.logout-btn {
  width: 100%;
  display: block;
  color: #e5f2f1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Main Content Area
   ============================================ */
.main {
  padding: 28px 32px;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* ============================================
   Glass Card (Main Container)
   ============================================ */
.card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-2xl);
  border: var(--glass-border);
  padding: 40px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  max-width: 1180px;
}

/* Shine streak at top */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.4) 10%,
    rgba(255, 255, 255, 1) 30%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 1) 70%,
    rgba(255, 255, 255, 0.4) 90%,
    transparent 100%);
  border-radius: 2px;
}

/* Glossy reflection overlay */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(175deg, 
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%);
  border-radius: var(--radius-2xl) var(--radius-2xl) 100% 100%;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card h1 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 800;
  color: #000 !important;
  position: relative;
  z-index: 2;
}

.card h2 {
  color: #000 !important;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.card h3 {
  color: #000 !important;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

/* ============================================
   Glass Panel (Inner Sections)
   ============================================ */
.panel {
  position: relative;
  background: var(--glass-bg-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Shine on panels */
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.9) 70%,
    transparent 100%);
}

.panel h2,
.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

/* ============================================
   KPI Cards
   ============================================ */
.kpis,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.kpi {
  position: relative;
  background: var(--glass-bg-light);
  border-radius: 12px;
  padding: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
  box-shadow: var(--shadow-sm), inset 0 2px 0 rgba(255, 255, 255, 1);
}

/* Shine on KPI */
.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 1) 50%, 
    transparent 100%);
}

/* Glossy reflection on KPI */
.kpi::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.6) 0%,
    transparent 100%);
  border-radius: 22px 22px 50% 50%;
  pointer-events: none;
}

.kpi:hover {
  /* No hover effect - KPIs are not clickable */
}

.kpi .label,
.kpi-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kpi .value,
.kpi-value {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 800;
  color: #000;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  z-index: 2;
}

.btn-primary {
  background: linear-gradient(165deg, 
    var(--navy) 0%, 
    var(--navy-light) 100%);
  color: #fff;
  border: 1.5px solid var(--navy);
  box-shadow: 
    0 4px 16px rgba(1, 35, 64, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 32px rgba(1, 35, 64, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background: linear-gradient(165deg, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.9) 100%);
  color: var(--navy);
  border: 1.5px solid rgba(255, 255, 255, 1);
  box-shadow: 
    var(--shadow-md),
    inset 0 2px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(1, 35, 64, 0.05);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 
    var(--shadow-lg),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}

.btn-danger {
  background: linear-gradient(165deg, 
    rgba(254, 226, 226, 0.95) 0%, 
    rgba(254, 202, 202, 0.7) 50%,
    rgba(254, 226, 226, 0.9) 100%);
  color: var(--danger);
  border: 1.5px solid rgba(254, 202, 202, 0.9);
  box-shadow: 
    0 4px 16px rgba(220, 38, 38, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 32px rgba(220, 38, 38, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 14px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: linear-gradient(165deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.7) 100%);
  color: var(--navy);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--carolina);
  box-shadow: 
    0 0 0 4px rgba(86, 160, 211, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

/* Form row layouts */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ============================================
   Tables
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  border-bottom: 1px solid rgba(1, 35, 64, 0.08);
}

td {
  padding: 10px 8px;
  font-size: 14px;
  color: #000;
  border-bottom: 1px solid rgba(1, 35, 64, 0.04);
}

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

tr {
  transition: background 0.2s;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.5);
}

td:first-child {
  font-weight: 600;
}

/* ============================================
   Pills / Badges
   ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill.green,
.pill-success {
  background: linear-gradient(135deg, var(--success-bg) 0%, #bbf7d0 100%);
  color: var(--success-text);
}

.pill.yellow,
.pill-warning {
  background: linear-gradient(135deg, var(--warning-bg) 0%, #fef08a 100%);
  color: var(--warning-text);
}

.pill.red,
.pill-danger {
  background: linear-gradient(135deg, var(--danger-bg) 0%, #fecaca 100%);
  color: var(--danger-text);
}

.pill.blue,
.pill-info {
  background: linear-gradient(135deg, var(--info-bg) 0%, #bfdbfe 100%);
  color: var(--info-text);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 35, 64, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-2xl);
  border: var(--glass-border);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(1, 35, 64, 0.2) transparent;
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glass-shadow), 0 25px 80px rgba(1, 35, 64, 0.3);
}

.modal::-webkit-scrollbar {
  width: 6px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
  margin: 24px 0;
  border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(1, 35, 64, 0.15);
  border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: rgba(1, 35, 64, 0.25);
}

/* Shine on modal */
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent 100%);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal h2 {
  margin: 0 0 24px;
  font-size: 24px;
  color: var(--navy);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(1, 35, 64, 0.08);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.section-divider {
  border-top: 1px solid rgba(1, 35, 64, 0.08);
  padding-top: 20px;
  margin-top: 20px;
}

/* ============================================
   Back Link
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.page-header p,
.page-subtitle {
  margin: 0;
  color: var(--carolina);
  font-size: 16px;
  font-weight: 500;
}

/* ============================================
   Contact Grid
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--carolina);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.contact-value {
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
}

/* ============================================
   Danger Zone
   ============================================ */
.danger-zone {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(1, 35, 64, 0.08);
}

.danger-zone h3 {
  color: var(--danger);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
}

.danger-zone p {
  color: var(--navy);
  opacity: 0.5;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ============================================
   Order Summary (Booking Modal)
   ============================================ */
.order-summary {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(1, 35, 64, 0.06);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  color: var(--text-muted);
}

.summary-row .value {
  font-weight: 600;
  color: var(--navy);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  border-top: 1px solid rgba(1, 35, 64, 0.1);
  margin-top: 8px;
}

/* ============================================
   Availability Checker (Bookings Page)
   ============================================ */
.availability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.availability-dates {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.availability-dates label {
  font-size: 13px;
  font-weight: 600;
  color: var(--carolina);
}

.availability-dates input[type="date"] {
  padding: 10px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
}

.date-arrow {
  color: var(--carolina);
  font-size: 18px;
}

.availability-summary {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.availability-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.avail-column {
  background: var(--glass-bg-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 120px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.avail-column.available {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.avail-column.booked {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.avail-column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.avail-column.available .avail-column-header { color: var(--success-text); }
.avail-column.booked .avail-column-header { color: var(--danger-text); }

.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.avail-column.available .avail-dot { background: var(--success); }
.avail-column.booked .avail-dot { background: var(--danger); }

.avail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.avail-column.available .avail-item:hover {
  border-color: var(--success);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}

.avail-item-name { font-weight: 600; color: var(--navy); }
.avail-item-action { font-size: 12px; color: var(--success-text); font-weight: 700; }
.avail-item-customer { font-size: 12px; color: var(--danger-text); font-weight: 600; }

.avail-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px 0;
  text-align: center;
}

/* ============================================
   Activity Items (Dashboard)
   ============================================ */
.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
}

.activity-item.activity-pickup {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-left-color: var(--success);
}

.activity-item.activity-return {
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-left-color: var(--danger);
}

/* ============================================
   Calendar
   ============================================ */
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.cal-header {
  background: rgba(255, 255, 255, 0.6);
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--carolina);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(1, 35, 64, 0.08);
  border-right: 1px solid rgba(1, 35, 64, 0.04);
}

.cal-header:nth-child(7n) { border-right: none; }

.cal-day {
  background: rgba(255, 255, 255, 0.4);
  padding: 6px;
  border-right: 1px solid rgba(1, 35, 64, 0.04);
  border-bottom: 1px solid rgba(1, 35, 64, 0.04);
  cursor: pointer;
  min-height: 100px;
  transition: background 0.2s;
}

.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: rgba(255, 255, 255, 0.7); }
.cal-day.empty { background: rgba(249, 250, 251, 0.5); cursor: default; }
.cal-day.today { 
  outline: 2px solid var(--carolina); 
  outline-offset: -2px;
  background: rgba(86, 160, 211, 0.1);
}

.cal-day-num { 
  font-weight: 600; 
  font-size: 13px; 
  margin-bottom: 4px; 
  padding: 4px 6px;
  color: var(--navy);
}

.cal-day.today .cal-day-num { 
  color: var(--carolina); 
  font-weight: 700; 
}

.cal-row { 
  height: 22px; 
  margin-bottom: 2px; 
  display: flex; 
}

.cal-bar {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  border-radius: 3px;
  transition: filter 0.2s;
}

.cal-bar:hover { filter: brightness(1.15); }
.cal-bar.start { margin-left: 60%; border-radius: 3px 0 0 3px; }
.cal-bar.end { margin-right: 60%; border-radius: 0 3px 3px 0; }
.cal-bar.single { margin-left: 25%; margin-right: 25%; border-radius: 3px; }
.cal-bar.mid { border-radius: 0; margin-left: -1px; margin-right: -1px; }

/* ============================================
   Equipment List
   ============================================ */
.equipment-row {
  cursor: pointer;
  transition: background 0.2s;
}

.equipment-row:hover td {
  background: rgba(255, 255, 255, 0.5);
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 18px;
  text-align: center;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* ============================================
   Login Screen
   ============================================ */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image: url('../assets/login.jpg');
  background-size: cover;
  background-position: center bottom;
  padding: 20px;
  position: relative;
}

.login-back {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.login-back:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.login-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-2xl);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent 100%);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo img {
  height: 100px;
  width: auto;
}

.login-card h1 {
  text-align: center;
  margin: 0 0 28px;
  font-size: 24px;
  color: var(--navy);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
}

.password-toggle:hover {
  color: var(--navy);
}

/* ============================================
   Utilities
   ============================================ */
.text-muted { color: #475569; }
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }
.text-danger { color: var(--danger-text); }
.text-info { color: var(--info-text); }
.text-carolina { color: var(--carolina); }
.text-navy { color: var(--navy); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ============================================
   Customer Filters (Desktop)
   ============================================ */
.customer-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.customer-filters .search-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.customer-filters .filter-row {
  display: flex;
  gap: 12px;
}

.customer-filters .filter-select {
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.8);
  min-width: 150px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .app { grid-template-columns: 84px 1fr; }
  .logo img { height: 40px; }
  .nav a { 
    letter-spacing: 0.06em; 
    text-align: center; 
    font-size: 11px; 
    padding: 10px 8px; 
  }
  .kpis,
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .kpis,
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .app { grid-template-columns: 1fr; }
  
  /* ===== BOTTOM NAV ===== */
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: row;
    padding: 10px 4px calc(20px + env(safe-area-inset-bottom));
    z-index: 100;
    border-radius: 0;
    background: var(--navy);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  }
  
  .logo { display: none; }
  
  .nav { 
    flex-direction: row; 
    gap: 0; 
    margin: 0; 
    flex: 1; 
    justify-content: space-around;
    width: 100%;
  }
  
  .nav a { 
    padding: 6px 4px; 
    font-size: 9px; 
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
    border-radius: 8px;
    transition: opacity 0.2s;
    background: transparent;
  }
  
  .nav a.active {
    background: transparent;
  }
  
  .nav-icon {
    display: block;
    width: 24px;
    height: 24px;
    opacity: 0.4;
    filter: brightness(0) invert(1);
  }
  
  .nav a.active .nav-icon {
    opacity: 1;
  }
  
  .nav a span {
    display: block;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
  }
  
  .nav a.active span {
    color: #fff;
  }
  
  .user-section { display: none; }
  
  /* ===== MAIN CONTENT ===== */
  .main { 
    padding: 16px; 
    padding-top: 20px;
    padding-bottom: 160px; 
    min-height: 100dvh;
  }
  
  /* ===== CARDS - SLEEK & MINIMAL ===== */
  .card {
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(1, 35, 64, 0.08);
  }
  
  .card:last-child {
    margin-bottom: 0;
  }
  
  .card::before,
  .card::after {
    display: none;
  }
  
  .card h1 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
  }
  
  .page-header h1 { 
    font-size: 24px; 
  }
  
  /* ===== KPI GRID - COMPACT CARDS ===== */
  .kpis,
  .kpi-grid { 
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .kpi { 
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    border: 1px solid rgba(255,255,255,0.8);
  }
  
  .kpi::before,
  .kpi::after {
    display: none;
  }
  
  .kpi .label,
  .kpi-label {
    font-size: 11px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
  }
  
  .kpi .value,
  .kpi-value { 
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
  }
  
  /* Fifth KPI spans full width */
  .kpi-grid .kpi:nth-child(5) {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .kpi-grid .kpi:nth-child(5) .label {
    margin-bottom: 0;
  }
  
  .kpi-grid .kpi:nth-child(5) .value {
    font-size: 24px;
  }
  
  /* ===== PANELS - CLEAN SECTIONS ===== */
  .panel {
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.7);
  }
  
  .panel::before {
    display: none;
  }
  
  .panel h2 {
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
  }
  
  /* ===== ACTIVITY ITEMS - TOUCH FRIENDLY ===== */
  .activity-item {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border-left-width: 4px;
  }
  
  .activity-item strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
  }
  
  .activity-item .text-muted {
    font-size: 12px;
  }
  
  .avail-list {
    gap: 8px;
  }
  
  /* ===== PILLS - COMPACT ===== */
  .pill {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
  }
  
  /* ===== TABLES - MOBILE OPTIMIZED ===== */
  table {
    font-size: 13px;
    width: 100%;
  }
  
  th {
    font-size: 10px;
    padding: 8px 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    font-weight: 600;
  }
  
  td {
    padding: 10px 6px;
    vertical-align: middle;
  }
  
  .panel:has(table),
  .card:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* ===== FORMS - TOUCH OPTIMIZED ===== */
  .form-row,
  .form-row-3 { 
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 14px;
  }
  
  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    background: rgba(255,255,255,1);
  }
  
  /* ===== BUTTONS - BOLD & TAPPABLE ===== */
  .btn {
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 12px;
    font-weight: 600;
    min-height: 48px;
  }
  
  .btn-sm {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
    border-radius: 10px;
  }
  
  .btn-primary {
    box-shadow: 0 4px 12px rgba(1, 35, 64, 0.25);
  }
  
  /* ===== MODALS - BOTTOM SHEET STYLE ===== */
  .modal-overlay {
    align-items: flex-end;
  }
  
  .modal {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    margin: 0;
  }
  
  .modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
  }
  
  .modal h2 {
    font-size: 20px;
    margin: 8px 0 20px;
    text-align: center;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
  }
  
  .modal-actions .btn {
    width: 100%;
  }
  
  /* ===== AVAILABILITY CHECKER ===== */
  .availability-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .availability-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  
  .availability-dates label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  .availability-dates input[type="date"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
  }
  
  .date-arrow {
    display: none;
  }
  
  .availability-dates .btn {
    grid-column: span 2;
  }
  
  .availability-summary {
    text-align: center;
    font-size: 13px;
    padding: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
  }
  
  .availability-columns { 
    grid-template-columns: 1fr; 
    gap: 10px;
  }
  
  .avail-column {
    padding: 14px;
    border-radius: 14px;
    min-height: auto;
  }
  
  .avail-column-header {
    font-size: 11px;
    margin-bottom: 10px;
  }
  
  .avail-item {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
  }
  
  .avail-item-name {
    font-size: 14px;
  }
  
  .avail-item-action,
  .avail-item-customer {
    font-size: 12px;
  }
  
  /* ===== CALENDAR - CLEAN MOBILE VIEW ===== */
  .calendar-nav {
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
  }
  
  .calendar-nav h2 {
    font-size: 18px !important;
    margin: 0 !important;
  }
  
  .cal-grid {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
  }
  
  .cal-header {
    padding: 10px 2px;
    font-size: 9px;
    background: var(--navy);
    color: #fff;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  
  .cal-header:nth-child(7n) {
    border-right: none;
  }
  
  .cal-day {
    min-height: 44px !important;
    max-height: 44px !important;
    height: 44px !important;
    padding: 4px;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  .cal-day.empty {
    background: #f8f9fa;
  }
  
  .cal-day.today {
    background: rgba(86, 160, 211, 0.15);
    outline: none;
  }
  
  .cal-day-num {
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    text-align: center;
    line-height: 1;
  }
  
  .cal-day.today .cal-day-num {
    color: var(--navy);
    font-weight: 700;
  }
  
  /* Hide booking bars on mobile - show dot indicator instead */
  .cal-row {
    display: none !important;
  }
  
  /* Show a dot if there's a booking */
  .cal-day:has(.cal-bar)::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--navy);
    border-radius: 50%;
    margin: 4px auto 0;
  }
  
  .cal-day:has(.cal-bar.start)::after,
  .cal-day:has(.cal-bar.single)::after {
    background: var(--success);
  }
  
  .cal-day:has(.cal-bar.end)::after {
    background: var(--danger);
  }
  
  /* ===== CONTACT GRID ===== */
  .contact-grid { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  
  .contact-label {
    font-size: 10px;
    margin-bottom: 4px;
  }
  
  .contact-value {
    font-size: 16px;
  }
  
  /* ===== EMPTY STATES ===== */
  .empty-state {
    padding: 40px 20px;
    font-size: 14px;
  }
  
  .empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  /* ===== DANGER ZONE ===== */
  .danger-zone {
    margin-top: 24px;
    padding: 16px;
    background: rgba(254, 226, 226, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-top: none;
  }
  
  .danger-zone h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .danger-zone p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .danger-zone .btn {
    width: 100%;
  }
  
  /* ===== BACK LINK ===== */
  .back-link {
    font-size: 14px;
    margin-bottom: 16px;
    padding: 8px 0;
  }
  
  /* ===== ORDER SUMMARY ===== */
  .order-summary {
    padding: 16px;
    border-radius: 14px;
    margin-top: 16px;
  }
  
  .summary-row {
    padding: 10px 0;
    font-size: 14px;
  }
  
  .summary-total {
    font-size: 18px;
    padding-top: 14px;
    margin-top: 10px;
  }
  
  /* ===== FLEX HELPERS ===== */
  .flex-between {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  /* ===== LOGIN SCREEN ===== */
  .login-screen {
    padding: 16px;
  }
  
  .login-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
  
  .login-logo img {
    height: 80px;
  }
  
  .login-card h1 {
    font-size: 22px;
    margin-bottom: 24px;
  }
  
  .login-back {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 10px;
  }
  
  /* ===== UTILITIES ===== */
  .mb-3 { margin-bottom: 16px; }
  .mt-3 { margin-top: 16px; }
  
  /* ===== AMBIENT BACKGROUND - SUBTLE ===== */
  .blob {
    opacity: 0.3;
    filter: blur(80px);
  }
  
  .blob-1 {
    width: 300px;
    height: 300px;
  }
  
  .blob-2 {
    width: 350px;
    height: 350px;
  }
  
  .blob-3, .blob-4, .blob-5 {
    display: none;
  }
  
  /* ===== HIDE DRAG HANDLES ON MOBILE ===== */
  .drag-handle {
    display: none;
  }
  
  /* ===== DAY DETAIL MODAL ===== */
  .day-detail-modal h2 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--navy);
  }
  
  .day-detail-section {
    margin-bottom: 16px;
  }
  
  .day-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  
  .day-detail-header.pickup {
    color: var(--success-text);
  }
  
  .day-detail-header.return {
    color: var(--danger-text);
  }
  
  .day-detail-header.active {
    color: var(--info-text);
  }
  
  .day-detail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }
  
  .day-detail-header.pickup .day-detail-dot {
    background: var(--success);
  }
  
  .day-detail-header.return .day-detail-dot {
    background: var(--danger);
  }
  
  .day-detail-header.active .day-detail-dot {
    background: var(--info);
  }
  
  .day-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
  }
  
  .day-detail-item:active {
    transform: scale(0.98);
  }
  
  .day-detail-item.pickup {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.8), rgba(255,255,255,0.7));
  }
  
  .day-detail-item.return {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.8), rgba(255,255,255,0.7));
  }
  
  .day-detail-item.active {
    border-left-color: var(--info);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(255,255,255,0.7));
  }
  
  .day-detail-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
  }
  
  .day-detail-item.pickup .day-detail-icon {
    background: var(--success-bg);
    color: var(--success-text);
  }
  
  .day-detail-item.return .day-detail-icon {
    background: var(--danger-bg);
    color: var(--danger-text);
  }
  
  .day-detail-item.active .day-detail-icon {
    background: var(--info-bg);
    color: var(--info-text);
  }
  
  .day-detail-info {
    flex: 1;
    min-width: 0;
  }
  
  .day-detail-info strong {
    display: block;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 2px;
  }
  
  .day-detail-info span {
    font-size: 13px;
    color: var(--text-muted);
  }
  
  .day-detail-arrow {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 300;
  }
  
  .day-detail-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
  }
  
  .day-detail-empty p {
    margin: 0;
    font-size: 15px;
  }
  
  /* ===== CUSTOMER FILTERS ===== */
  .customer-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .customer-filters .search-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255,255,255,0.8);
  }
  
  .customer-filters .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .customer-filters .filter-select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255,255,255,0.8);
  }
  
  /* ===== CUSTOMER TABLE - MOBILE CARDS ===== */
  #customersList table {
    display: block;
  }
  
  #customersList thead {
    display: none;
  }
  
  #customersList tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  #customersList tr {
    display: flex;
    flex-wrap: wrap;
    padding: 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.8);
    gap: 4px 12px;
  }
  
  #customersList td {
    padding: 0;
    border: none;
    font-size: 13px;
  }
  
  #customersList td:first-child {
    width: 100%;
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  #customersList td:last-child {
    display: none;
  }
  
  /* ===== REPORTS PAGE - STACK PANELS ===== */
  .reports-grid,
  [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  /* ===== MODAL SCROLL FIX ===== */
  .modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .modal .form-row-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Ensure delivery toggle groups respect display none */
  #autoCalcGroup[style*="display: none"] {
    display: none !important;
  }
  
  #flatFeeGroup[style*="display: none"] {
    display: none !important;
  }
  
  /* Time picker fix */
  .time-picker-row,
  [style*="display: flex"][style*="gap: 8px"] {
    flex-wrap: wrap !important;
  }
  
  .time-picker-row input,
  .time-picker-row select {
    min-width: 60px;
  }
}

/* ===== EXTRA SMALL SCREENS ===== */
@media (max-width: 380px) {
  .main {
    padding: 10px;
  }
  
  .card {
    padding: 14px;
    border-radius: 16px;
  }
  
  .card h1 {
    font-size: 20px;
  }
  
  .kpis,
  .kpi-grid {
    gap: 8px;
  }
  
  .kpi {
    padding: 12px;
  }
  
  .kpi .value,
  .kpi-value {
    font-size: 18px;
  }
  
  .nav a {
    font-size: 8px;
  }
  
  .nav-icon {
    width: 20px;
    height: 20px;
  }
}
/* Drag and Drop */
#sortableBody tr.dragging {
  opacity: 0.4;
  background: #f1f5f9;
}

#sortableBody tr.drag-over {
  border-top: 2px solid var(--carolina);
}