/* ========================================
   PixelFlow - Unified CSS Framework
   Based on Bootstrap 5 with custom extensions
   ======================================== */

/* Station Map Styles */
.map-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#stations-map {
    border-radius: 10px;
    min-height: 500px;
}

/* Google Maps Customization */
.gm-style-iw {
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    border-radius: 8px !important;
}

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Brand Colors */
  --pixel-primary: #2563eb;
  --pixel-primary-dark: #1d4ed8;
  --pixel-primary-light: #60a5fa;
  --pixel-secondary: #10b981;
  --pixel-secondary-dark: #059669;
  --pixel-success: #10b981;
  --pixel-warning: #f59e0b;
  --pixel-danger: #ef4444;
  --pixel-info: #3b82f6;

  /* Neutral Colors */
  --pixel-light: #f9fafb;
  --pixel-dark: #1f2937;
  --pixel-gray-100: #f3f4f6;
  --pixel-gray-200: #e5e7eb;
  --pixel-gray-300: #d1d5db;
  --pixel-gray-400: #9ca3af;
  --pixel-gray-500: #6b7280;
  --pixel-gray-600: #4b5563;
  --pixel-gray-700: #374151;
  --pixel-gray-800: #1f2937;
  --pixel-gray-900: #111827;

  /* Spacing */
  --pixel-space-xs: 0.25rem;
  --pixel-space-sm: 0.5rem;
  --pixel-space-md: 1rem;
  --pixel-space-lg: 1.5rem;
  --pixel-space-xl: 2rem;

  /* Border Radius */
  --pixel-radius-sm: 0.25rem;
  --pixel-radius-md: 0.375rem;
  --pixel-radius-lg: 0.5rem;
  --pixel-radius-xl: 0.75rem;

  /* Shadows */
  --pixel-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --pixel-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --pixel-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --pixel-transition: all 0.3s ease;
}

/* ========================================
   Bootstrap 5 Overrides & Extensions
   ======================================== */

/* Override Bootstrap primary colors */
:root {
  --bs-primary: var(--pixel-primary);
  --bs-primary-rgb: 37, 99, 235;
  --bs-secondary: var(--pixel-secondary);
  --bs-secondary-rgb: 16, 185, 129;
  --bs-success: var(--pixel-success);
  --bs-success-rgb: 16, 185, 129;
  --bs-warning: var(--pixel-warning);
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: var(--pixel-danger);
  --bs-danger-rgb: 239, 68, 68;
  --bs-info: var(--pixel-info);
  --bs-info-rgb: 59, 130, 246;
}

/* ========================================
   Navigation Components
   ======================================== */

/* Unified Navigation */
.unified-navbar {
  background-color: white;
  box-shadow: var(--pixel-shadow-sm);
  border-bottom: 1px solid var(--pixel-gray-200);
  margin-bottom: 2rem; /* Add space between nav and content */
}

.unified-navbar .navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pixel-primary);
  text-decoration: none;
}

.unified-navbar .navbar-brand:hover {
  color: var(--pixel-primary-dark);
}

/* Button Styles */
.unified-navbar .btn {
  font-weight: 500;
  border-radius: var(--pixel-radius-md);
  transition: var(--pixel-transition);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.unified-navbar .btn-outline-primary {
  border-color: var(--pixel-primary);
  color: var(--pixel-primary);
}

.unified-navbar .btn-outline-primary:hover {
  background-color: var(--pixel-primary);
  border-color: var(--pixel-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--pixel-shadow-md);
}

.unified-navbar .btn-primary {
  background-color: var(--pixel-primary);
  border-color: var(--pixel-primary);
  box-shadow: var(--pixel-shadow-sm);
}

.unified-navbar .btn-primary:hover {
  background-color: var(--pixel-primary-dark);
  border-color: var(--pixel-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--pixel-shadow-md);
}

.unified-navbar .btn-warning {
  background-color: var(--pixel-warning);
  border-color: var(--pixel-warning);
}

.unified-navbar .btn-danger {
  background-color: var(--pixel-danger);
  border-color: var(--pixel-danger);
}

.unified-navbar .btn-secondary {
  background-color: var(--pixel-gray-500);
  border-color: var(--pixel-gray-500);
}

/* Navigation Links */
.unified-navbar .nav-link {
  color: var(--pixel-gray-700);
  padding: 0.5rem 0.75rem;
  border-radius: var(--pixel-radius-sm);
  transition: var(--pixel-transition);
}

.unified-navbar .nav-link:hover {
  color: var(--pixel-primary);
  background-color: var(--pixel-gray-100);
}

/* Status Badges */
.unified-navbar .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--pixel-radius-sm);
}

/* Alerts */
.unified-navbar .alert {
  border-radius: var(--pixel-radius-md);
  font-size: 0.875rem;
  border: none;
}

/* ========================================
   Admin Navigation
   ======================================== */

.navbar-dark {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--pixel-radius-md);
  color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--pixel-radius-md);
  transition: var(--pixel-transition);
}

.navbar-dark .navbar-nav .nav-link {
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  transition: var(--pixel-transition);
}

.navbar-dark .dropdown-menu {
  border: none;
  box-shadow: var(--pixel-shadow-lg);
  border-radius: var(--pixel-radius-lg);
}

.navbar-dark .dropdown-item:hover {
  background-color: var(--pixel-gray-100);
  color: var(--pixel-primary);
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  width: 250px;
  min-height: 100vh;
}

.sidebar .nav-link {
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  border-radius: var(--pixel-radius-lg);
  transition: var(--pixel-transition);
  color: rgba(255, 255, 255, 0.8) !important;
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
  transform: translateX(4px);
}

.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white !important;
  font-weight: 600;
}

.sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

.sidebar hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

/* Sidebar Logout Section */
.sidebar .mt-auto {
  margin-top: auto !important;
}

.sidebar .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.sidebar .btn-outline-danger {
  border-color: rgba(220, 53, 69, 0.5);
  color: #dc3545;
  background-color: transparent;
}

.sidebar .btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

/* ========================================
   Button Layout Fix
   ======================================== */

.unified-navbar .btn {
  display: inline-block !important;
  margin: 0.25rem 0.5rem !important;
  white-space: nowrap;
}

.unified-navbar .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.unified-navbar .navbar-nav .btn {
  flex-shrink: 0 !important;
}

/* ========================================
   Mobile Responsiveness
   ======================================== */

@media (max-width: 991.98px) {
  .unified-navbar .navbar-nav {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
    margin-top: 1rem;
  }

  .unified-navbar .btn {
    width: auto;
    min-width: 120px;
    max-width: 150px;
    margin: 0.25rem 0.5rem !important;
    display: inline-block !important;
  }

  .unified-navbar .nav-link {
    text-align: center;
    margin: 0.25rem 0 !important;
    width: 100%;
  }

  .unified-navbar .navbar-toggler {
    border: 1px solid rgba(0,0,0,.1) !important;
    padding: 0.25rem 0.5rem;
  }

  .unified-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
  }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-pixel-primary { color: var(--pixel-primary) !important; }
.text-pixel-secondary { color: var(--pixel-secondary) !important; }
.bg-pixel-primary { background-color: var(--pixel-primary) !important; }
.bg-pixel-secondary { background-color: var(--pixel-secondary) !important; }

.shadow-pixel-sm { box-shadow: var(--pixel-shadow-sm) !important; }
.shadow-pixel-md { box-shadow: var(--pixel-shadow-md) !important; }
.shadow-pixel-lg { box-shadow: var(--pixel-shadow-lg) !important; }

.rounded-pixel-sm { border-radius: var(--pixel-radius-sm) !important; }
.rounded-pixel-md { border-radius: var(--pixel-radius-md) !important; }
.rounded-pixel-lg { border-radius: var(--pixel-radius-lg) !important; }

/* ========================================
   Landing Page Styles
   ======================================== */

.landing-header {
  background-color: white;
  box-shadow: var(--pixel-shadow-md);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pixel-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--pixel-transition);
}

.logo:hover {
  color: var(--pixel-primary-dark);
  text-decoration: none;
}

.logo span {
  color: var(--pixel-secondary);
}

/* Landing Page Buttons */
.btn-landing {
  padding: 0.75rem 1.5rem;
  background-color: var(--pixel-primary);
  color: white;
  border: none;
  border-radius: var(--pixel-radius-lg);
  font-weight: 600;
  transition: var(--pixel-transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--pixel-shadow-md);
}

.btn-landing:hover {
  background-color: var(--pixel-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--pixel-shadow-lg);
  color: white;
  text-decoration: none;
}

.btn-landing-outline {
  background-color: transparent;
  border: 2px solid var(--pixel-primary);
  color: var(--pixel-primary);
  box-shadow: var(--pixel-shadow-sm);
}

.btn-landing-outline:hover {
  background-color: var(--pixel-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--pixel-shadow-lg);
}

/* Landing Page Simple Content Links */
.nav-links-container {
  margin-top: 5px; /* Minimal spacing for landing page content links */
  text-align: center;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 40px;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--pixel-gray-600);
  font-weight: 500;
  font-size: 16px;
  transition: var(--pixel-transition);
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--pixel-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--pixel-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Welcome Page Specific Styles */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('/api/placeholder/1200/600') center/cover;
  position: relative;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--pixel-dark);
}

.subtitle {
  font-size: 20px;
  color: var(--pixel-gray-500);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}

/* Removed background-color override to use default dark background */

.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 30px;
  border-radius: var(--pixel-radius-lg);
  box-shadow: var(--pixel-shadow-sm);
  background-color: white;
  transition: var(--pixel-transition);
}

.step:hover {
  transform: translateY(-10px);
}

.step-icon {
  width: 80px;
  height: 80px;
  background-color: var(--pixel-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.step-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.step h3 {
  margin-bottom: 15px;
  color: var(--pixel-dark);
}

.features {
  background-color: var(--pixel-gray-100);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature {
  background-color: white;
  padding: 30px;
  border-radius: var(--pixel-radius-lg);
  box-shadow: var(--pixel-shadow-sm);
}

.feature-icon {
  font-size: 24px;
  color: var(--pixel-primary);
  margin-bottom: 20px;
}

.feature h3 {
  margin-bottom: 15px;
}

.cta {
  text-align: center;
  background: linear-gradient(45deg, var(--pixel-primary), var(--pixel-primary-light));
  color: white;
}

.cta h2 {
  margin-bottom: 30px;
}

.cta .btn {
  background-color: white;
  color: var(--pixel-primary);
  font-weight: bold;
}

.cta .btn:hover {
  background-color: var(--pixel-light);
}

.ad-mockup {
  background-color: white;
  padding: 40px;
  border-radius: var(--pixel-radius-lg);
  box-shadow: var(--pixel-shadow-lg);
  margin-top: 60px;
}

.ad-mockup h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

.ad-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.ad-stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.ad-stat .number {
  font-size: 36px;
  font-weight: bold;
  color: var(--pixel-primary);
  display: block;
}

.ad-stat .label {
  color: var(--pixel-gray-500);
}

.locations {
  background-color: white;
}

.map-container {
  height: 400px;
  background-color: var(--pixel-gray-200);
  border-radius: var(--pixel-radius-lg);
  overflow: hidden;
  position: relative;
}

/* Welcome Page Responsive Design */
@media (max-width: 1024px) {
  .hero {
    padding: 140px 0 60px;
  }

  .section {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 18px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .hero {
    padding: 120px 0 40px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .steps {
    flex-direction: column;
    gap: 20px;
  }

  .step {
    min-width: auto;
    padding: 25px 20px;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature {
    padding: 25px 20px;
  }

  .ad-mockup {
    padding: 25px 20px;
    margin-top: 40px;
  }

  .ad-stats {
    flex-direction: column;
    gap: 15px;
  }

  .ad-stat {
    min-width: auto;
  }

  .ad-stat .number {
    font-size: 28px;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .hero {
    padding: 100px 0 30px;
  }

  .section {
    padding: 40px 0;
  }

  .step {
    padding: 20px 15px;
  }

  .feature {
    padding: 20px 15px;
  }

  .ad-mockup {
    padding: 20px 15px;
  }

  .map-container {
    height: 250px;
  }
}

/* ========================================
   Main Content Spacing
   ======================================== */

main {
  padding-top: 1rem; /* Additional top padding for content */
}

/* Admin layout specific spacing */
.d-flex main {
  padding-top: 0; /* Remove extra padding for admin layout */
}

/* ========================================
   Authentication Method Selection Page
   ======================================== */

.auth-method-container {
  min-height: 100vh;
  background-color: var(--pixel-gray-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-method-header {
  margin: 0 auto;
  max-width: 28rem;
  width: 100%;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--pixel-gray-900);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--pixel-gray-600);
  margin-bottom: 2rem;
}

.auth-method-content {
  margin: 0 auto;
  max-width: 28rem;
  width: 100%;
}

.auth-card {
  background-color: white;
  padding: 2rem 1rem;
  box-shadow: var(--pixel-shadow-md);
  border-radius: var(--pixel-radius-lg);
}

.method-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.method-option {
  position: relative;
}

.method-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-label {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--pixel-gray-200);
  border-radius: var(--pixel-radius-lg);
  cursor: pointer;
  transition: var(--pixel-transition);
  background-color: white;
}

.method-label:hover {
  transform: translateY(-1px);
  box-shadow: var(--pixel-shadow-md);
}

.method-icon {
  flex-shrink: 0;
  margin-right: 1rem;
}

.method-icon i {
  font-size: 1.5rem;
}

.method-google .method-icon i {
  color: #ea4335;
}

.method-facebook .method-icon i {
  color: #1877f2;
}

.method-whatsapp .method-icon i {
  color: #25d366;
}

.method-content {
  flex: 1;
}

.method-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pixel-gray-900);
  margin: 0 0 0.25rem 0;
}

.method-description {
  font-size: 0.875rem;
  color: var(--pixel-gray-600);
  margin: 0;
}

.method-arrow {
  flex-shrink: 0;
}

.method-arrow i {
  color: var(--pixel-gray-400);
}

/* Selected state */
.method-radio:checked + .method-label {
  border-color: var(--pixel-primary);
  background-color: #eff6ff;
}

.method-radio:checked + .method-label .method-arrow i {
  color: var(--pixel-primary);
}

/* Hover states for each method */
.method-google:hover .method-label {
  border-color: #ea4335;
  background-color: #fef2f2;
}

.method-facebook:hover .method-label {
  border-color: #1877f2;
  background-color: #eff6ff;
}

.method-whatsapp:hover .method-label {
  border-color: #25d366;
  background-color: #f0fdf4;
}

/* Button styles */
.auth-button-container {
  margin-top: 2rem;
}

.auth-continue-btn {
  width: 100%;
  background-color: var(--pixel-gray-400);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--pixel-radius-lg);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--pixel-transition);
}

.auth-continue-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-continue-btn:not(:disabled) {
  background-color: var(--pixel-primary);
}

.auth-continue-btn:hover:not(:disabled) {
  background-color: var(--pixel-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--pixel-shadow-md);
}

.auth-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Info section */
.auth-info-section {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #eff6ff;
  border-radius: var(--pixel-radius-lg);
}

.auth-info-content {
  display: flex;
  align-items: flex-start;
}

.auth-info-icon {
  color: var(--pixel-primary);
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

.auth-info-text {
  font-size: 0.875rem;
  color: #1e40af;
}

.auth-info-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Terms section */
.auth-terms {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-terms-text {
  font-size: 0.75rem;
  color: var(--pixel-gray-500);
  margin: 0;
}

.auth-terms-link {
  color: var(--pixel-primary);
  text-decoration: none;
}

.auth-terms-link:hover {
  color: var(--pixel-primary-dark);
  text-decoration: underline;
}

/* ========================================
   WhatsApp Verification Page
   ======================================== */

.whatsapp-verify-container {
  min-height: 100vh;
  background-color: var(--pixel-gray-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem;
}

.whatsapp-verify-header {
  margin: 0 auto;
  max-width: 28rem;
  width: 100%;
}

.whatsapp-verify-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--pixel-gray-900);
  margin-bottom: 0.5rem;
}

.whatsapp-icon {
  color: #25d366;
}

.whatsapp-verify-subtitle {
  color: var(--pixel-gray-600);
  margin-bottom: 2rem;
}

.whatsapp-verify-content {
  margin: 0 auto;
  max-width: 28rem;
  width: 100%;
}

.whatsapp-verify-card {
  background-color: white;
  padding: 2rem 1rem;
  box-shadow: var(--pixel-shadow-md);
  border-radius: var(--pixel-radius-lg);
}

/* OTP Input Styles */
.otp-input-container {
  margin-bottom: 1.5rem;
}

.otp-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pixel-gray-700);
  margin-bottom: 0.5rem;
}

.otp-input-wrapper {
  position: relative;
}

.otp-input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--pixel-gray-300);
  border-radius: var(--pixel-radius-lg);
  box-shadow: var(--pixel-shadow-sm);
  text-align: center;
  font-size: 1.5rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: var(--pixel-gray-900);
  background-color: white;
  transition: var(--pixel-transition);
}

.otp-input:focus {
  outline: none;
  border-color: var(--pixel-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.otp-input::placeholder {
  color: var(--pixel-gray-400);
}

.otp-input-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: var(--pixel-gray-400);
  pointer-events: none;
}

.otp-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc2626;
}

/* WhatsApp Verify Button */
.whatsapp-verify-btn {
  width: 100%;
  background-color: #25d366;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--pixel-radius-lg);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--pixel-transition);
}

.whatsapp-verify-btn:hover {
  background-color: #128c7e;
  transform: translateY(-1px);
  box-shadow: var(--pixel-shadow-md);
}

.whatsapp-verify-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Resend OTP Section */
.resend-otp-section {
  margin-top: 1.5rem;
  text-align: center;
}

.resend-otp-btn {
  font-size: 0.875rem;
  color: var(--pixel-primary);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--pixel-transition);
}

.resend-otp-btn:hover {
  color: var(--pixel-primary-dark);
  text-decoration: underline;
}

/* WhatsApp Info Section */
.whatsapp-info-section {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f0fdf4;
  border-radius: var(--pixel-radius-lg);
}

.whatsapp-info-content {
  display: flex;
  align-items: flex-start;
}

.whatsapp-info-icon {
  color: #25d366;
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

.whatsapp-info-text {
  font-size: 0.875rem;
  color: #166534;
}

.whatsapp-info-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Back to Registration */
.back-to-registration {
  margin-top: 1.5rem;
  text-align: center;
}

.back-link {
  font-size: 0.875rem;
  color: var(--pixel-gray-600);
  text-decoration: none;
  transition: var(--pixel-transition);
}

.back-link:hover {
  color: var(--pixel-gray-700);
  text-decoration: underline;
}

/* ========================================
   Customer Login Page
   ======================================== */

/* Login Card Styles */
.customer-login .card {
  border-radius: 0.5rem;
  border: none;
}

.customer-login .card-header {
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.customer-login .btn-primary {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.customer-login .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Social Login Section */
.social-login-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.social-login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #dee2e6;
}

.social-login-divider span {
  background: white;
  padding: 0 1rem;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Social Login Button Styles */
.customer-login .btn-outline-danger {
  border-color: #dc3545;
  color: #dc3545;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.customer-login .btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.customer-login .btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.customer-login .btn-outline-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* ========================================
   Customer Registration Page
   ======================================== */

/* Custom styles for readonly email field from social login */
.customer-register .form-control[readonly] {
  background-color: #f8f9fa !important;
  border-color: #28a745 !important;
  color: #495057 !important;
  pointer-events: none;
}

.customer-register .form-control[readonly]:focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
  border-color: #28a745 !important;
}

.customer-register .input-group-text.bg-success {
  border-color: #28a745 !important;
}

/* Registration Card Styles */
.customer-register .card {
  border-radius: 0.5rem;
  border: none;
}

.customer-register .card-header {
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.customer-register .btn-primary {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.customer-register .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Form styling */
.customer-register .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Fix for phone field layout - override Bootstrap's inline-block label */
.customer-register .form-group label {
  display: block !important;
  margin-bottom: 0.5rem;
}

/* Specific fix for phone number field */
.customer-register .form-group #bill_to_phone + small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Phone field layout fix - confirmed working */
.customer-register .form-group label[for="bill_to_phone"] {
  display: block !important;
  width: 100% !important;
  margin-bottom: 0.5rem !important;
  float: none !important;
}

.customer-register .form-group input#bill_to_phone {
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

.customer-register .form-text {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.customer-register .terms-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

/* ========================================
   Customer Checkout Page
   ======================================== */

/* Checkout Card Styles */
.customer-checkout .card {
  border-radius: 0.5rem;
  border: none;
}

.customer-checkout .card-header {
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.customer-checkout .btn-primary {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.customer-checkout .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Payment Option Styles */
.customer-checkout .payment-option {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.customer-checkout .payment-option:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.customer-checkout .payment-option input[type="radio"]:checked+label {
  color: #007bff;
}

.customer-checkout .payment-option input[type="radio"]:checked~.payment-option {
  border-color: #007bff;
  background-color: #e3f2fd;
}

/* Payment Summary Styles */
.customer-checkout .payment-details .card {
  background-color: #f8f9fa;
}

.customer-checkout .payment-details .card-body {
  padding: 1.5rem;
}

/* Terms Section */
.customer-checkout .terms-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}

/* Status Messages */
.customer-checkout #paymentStatus,
.customer-checkout #paymentError {
  margin-top: 1rem;
}

/* ========================================
   Customer Dashboard
   ======================================== */

/* Dashboard Container */
.customer-dashboard {
  padding: 1.5rem 1rem;
}

/* Page Title */
.customer-dashboard .page-title-box {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pixel-gray-200);
}

.customer-dashboard .page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--pixel-gray-900);
  margin: 0;
}

/* Dashboard Cards */
.customer-dashboard .card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--pixel-transition);
  margin-bottom: 1.5rem;
}

.customer-dashboard .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.customer-dashboard .card-header {
  background: linear-gradient(135deg, var(--pixel-primary) 0%, var(--pixel-primary-dark) 100%);
  color: white;
  border-radius: 0.75rem 0.75rem 0 0 !important;
  border: none;
  padding: 1rem 1.5rem;
}

.customer-dashboard .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.customer-dashboard .card-body {
  padding: 1.5rem;
}

/* QR Scanner Card */
.customer-dashboard .card .fas.fa-qrcode {
  font-size: 3rem !important;
  color: var(--pixel-primary);
  margin-bottom: 1rem;
}

/* Quick Action Cards */
.customer-dashboard .col-md-6 .card {
  height: 100%;
}

.customer-dashboard .col-md-6 .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Station Availability Cards */
.customer-dashboard .col-md-3 .card {
  border: 1px solid var(--pixel-gray-200);
  transition: var(--pixel-transition);
}

.customer-dashboard .col-md-3 .card:hover {
  border-color: var(--pixel-primary);
  transform: translateY(-1px);
}

.customer-dashboard .col-md-3 .card-body {
  padding: 1rem;
}

.customer-dashboard .col-md-3 .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Progress Bars */
.customer-dashboard .progress {
  height: 6px;
  border-radius: 3px;
  background-color: var(--pixel-gray-200);
}

.customer-dashboard .progress-bar {
  border-radius: 3px;
}

/* Badges */
.customer-dashboard .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
}

/* Buttons */
.customer-dashboard .btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--pixel-transition);
}

.customer-dashboard .btn:hover {
  transform: translateY(-1px);
}

.customer-dashboard .btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Active Rental Alert */
.customer-dashboard .alert-warning {
  border-left: 4px solid #f59e0b;
  background-color: #fef3c7;
  border-color: #fde68a;
}

/* QR Scanner Modal */
.customer-dashboard .modal-content {
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.customer-dashboard .modal-header {
  background: linear-gradient(135deg, var(--pixel-primary) 0%, var(--pixel-primary-dark) 100%);
  color: white;
  border-radius: 0.75rem 0.75rem 0 0;
  border: none;
}

.customer-dashboard .modal-title {
  font-weight: 600;
}

/* Camera Container */
.customer-dashboard .camera-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #000;
  border-radius: 0.75rem;
  overflow: hidden;
}

.customer-dashboard .camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.customer-dashboard .scan-frame {
  width: 200px;
  height: 200px;
  border: 3px solid #4285F4;
  border-radius: 0.75rem;
  animation: pulse 1.5s infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .customer-dashboard {
    padding: 1rem 0.5rem;
  }

  .customer-dashboard .page-title {
    font-size: 1.5rem;
  }

  .customer-dashboard .card-body {
    padding: 1rem;
  }

  .customer-dashboard .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}

/* ========================================
   QR Scan Page
   ======================================== */

.qr-scan-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.qr-icon {
  font-size: 4rem;
  color: #4285F4;
  margin-bottom: 20px;
}

.device-info {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.scan-instructions {
  background: #e3f2fd;
  border-left: 4px solid #4285F4;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.scan-button {
  background: #4285F4;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px 10px;
  text-decoration: none;
  display: inline-block;
  transition: var(--pixel-transition);
}

.scan-button:hover {
  background: #3367d6;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.back-button {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  margin: 10px;
  text-decoration: none;
  display: inline-block;
  transition: var(--pixel-transition);
}

.back-button:hover {
  background: #5a6268;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ========================================
   Performance Optimizations
   ======================================== */

/* Reduce repaints and reflows */
.unified-navbar * {
  will-change: auto;
}

/* Optimize animations */
.unified-navbar .btn,
.unified-navbar .nav-link,
.sidebar .nav-link {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Critical CSS - Above the fold */
.unified-navbar {
  contain: layout style paint;
}
