/* Dashboard Styles */

/* ===== reCAPTCHA OVERRIDE STYLES ===== */

/* Only hide reCAPTCHA AFTER completion */
body.recaptcha-completed iframe[src*="recaptcha"],
body.recaptcha-completed .grecaptcha-badge,
body.recaptcha-completed div[id*="recaptcha"],
body.recaptcha-completed div[class*="recaptcha"],
body.recaptcha-completed div[role="dialog"],
body.recaptcha-completed [id^="rc-"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* ===== GLOBAL STYLES ===== */
:root {
  --primary: #4a4e69;       /* Deep navy (from your CSS) */
  --secondary: #9a8c98;     /* Muted purple */
  --accent: #f2e9e4;        /* Light cream */
  --text: #22223b;          /* Dark text */
  --light: #f8f9fa;         /* Background */
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
  color: var(--text);
  background: white;
  border-radius: 12px;
  margin: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--accent);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation Auth Section */
nav .auth-section {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
}

nav .auth-section #gw-auth-menu {
  display: flex;
  align-items: center;
}

/* Dashboard Container */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--light);
  min-height: calc(100vh - 200px); /* Account for header and hero section height */
}

/* Welcome Section - Simplified since we now have hero */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  color: var(--text);
  padding: 24px 28px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border, #e1e5e9);
  flex-wrap: wrap;
  gap: 20px;
}

.welcome-content h1 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.welcome-content p {
  margin: 0;
  color: var(--text-light, #6c757d);
  font-size: 1rem;
}

/* Sign Out Button Styling */
#sign-out {
  padding: 12px 24px;
  border: 2px solid var(--danger, #dc3545);
  background: transparent;
  color: var(--danger, #dc3545);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

#sign-out:hover {
  background: var(--danger, #dc3545);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

#sign-out:active {
  transform: translateY(0);
}

#sign-out::before {
  content: '\f2f5';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* Compact welcome stats and actions */
.user-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }
.quick-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.action-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5e9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e5e9;
}

.card-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 i {
  color: var(--primary);
}

/* Profile Section */
.profile-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.profile-avatar {
  font-size: 4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.profile-details {
  flex: 1;
}

.profile-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
}

/* Ensure the value column can shrink and wrap properly next to labels */
.profile-details .profile-field label { flex: 0 0 140px; }
.profile-details .profile-field span { flex: 1 1 auto; }

.profile-field:last-child {
  border-bottom: none;
}

.profile-field label {
  font-weight: 500;
  color: #6c757d;
  min-width: 120px;
}

.profile-field span {
  color: #2c3e50;
  font-weight: 500;
  /* Allow long content like emails/phones to wrap without overflowing */
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Booking Items */
.booking-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #3498db;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.booking-header h4 {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
}

.booking-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.booking-status.pending {
  background: #fff3cd;
  color: #856404;
}

.booking-status.confirmed {
  background: #d4edda;
  color: #155724;
}

.booking-status.completed {
  background: #d1ecf1;
  color: #0c5460;
}

.booking-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.booking-details p {
  margin: 5px 0;
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-details i {
  color: #3498db;
  width: 16px;
}

.booking-actions {
  margin-top: 12px;
  text-align: right;
}

/* Shuttle Booking Items */
.shuttle-booking-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #e74c3c;
  transition: all 0.2s ease;
}

.shuttle-booking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shuttle-booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.shuttle-booking-header h4 {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shuttle-booking-header h4 i {
  color: #e74c3c;
}

.shuttle-booking-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.shuttle-booking-status.pending {
  background: #fff3cd;
  color: #856404;
}

.shuttle-booking-status.approved {
  background: #d4edda;
  color: #155724;
}

.shuttle-booking-status.confirmed {
  background: #d1ecf1;
  color: #0c5460;
}

.shuttle-booking-status.completed {
  background: #d4edda;
  color: #155724;
}

.shuttle-booking-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.shuttle-booking-status.rejected {
  background: #f8d7da;
  color: #721c24;
}

.shuttle-booking-details p {
  margin: 5px 0;
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shuttle-booking-details i {
  color: #e74c3c;
  width: 16px;
}

.shuttle-booking-actions {
  margin-top: 12px;
  text-align: right;
}

/* Shuttle Booking Modal Styles */
.shuttle-booking-details-modal {
  padding: 20px 0;
}

.shuttle-booking-details-modal .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.shuttle-booking-details-modal .detail-row:last-child {
  border-bottom: none;
}

.shuttle-booking-details-modal .detail-row strong {
  color: #2c3e50;
  font-weight: 600;
}

.shuttle-booking-details-modal .status-pending {
  color: #856404;
  font-weight: 600;
}

.shuttle-booking-details-modal .status-approved {
  color: #155724;
  font-weight: 600;
}

.shuttle-booking-details-modal .status-confirmed {
  color: #0c5460;
  font-weight: 600;
}

.shuttle-booking-details-modal .status-completed {
  color: #155724;
  font-weight: 600;
}

.shuttle-booking-details-modal .status-cancelled {
  color: #721c24;
  font-weight: 600;
}

.shuttle-booking-details-modal .status-rejected {
  color: #721c24;
  font-weight: 600;
}



/* Subscription Items */
.subscription-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #28a745;
  transition: all 0.2s ease;
}

.subscription-item.expiring-soon {
  border-left-color: #ffc107;
  background: #fffbf0;
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.subscription-header h4 {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
}

.subscription-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.subscription-status.active {
  background: #d4edda;
  color: #155724;
}

.subscription-status.expiring-soon {
  background: #fff3cd;
  color: #856404;
}

.subscription-details p {
  margin: 5px 0;
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscription-details i {
  color: #28a745;
  width: 16px;
}

.subscription-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Alert Items */
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border-left: 4px solid #17a2b8;
  transition: all 0.2s ease;
}

.alert-item.warning {
  border-left-color: #ffc107;
  background: #fffbf0;
}

.alert-item.error {
  border-left-color: #dc3545;
  background: #f8f0f0;
}

.alert-item.success {
  border-left-color: #28a745;
  background: #f0f8f0;
}

.alert-icon {
  font-size: 1.5rem;
  color: #17a2b8;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-item.warning .alert-icon {
  color: #ffc107;
}

.alert-item.error .alert-icon {
  color: #dc3545;
}

.alert-item.success .alert-icon {
  color: #28a745;
}

.alert-content {
  flex: 1;
}

.alert-content h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
}

.alert-content p {
  margin: 0 0 8px 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.alert-content small {
  color: #adb5bd;
  font-size: 0.8rem;
}

.alert-actions {
  flex-shrink: 0;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--secondary);
  font-style: italic;
  background: var(--accent);
  border-radius: 8px;
  margin: 20px 0;
}

.error-state {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
  font-weight: 500;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin: 20px 0;
}

.loading-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--secondary);
  background: var(--accent);
  border-radius: 8px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

/* Visitor available services list */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filters-row {
  display: flex;
  gap: 10px;
  margin: 0 0 12px 0;
  flex-wrap: wrap;
}
.filters-row select,
.filters-row input {
  padding: 8px 10px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
}
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 10px;
}
.service-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c3e50;
}
.service-row-title strong { font-size: 1rem; }
.service-cat {
  font-size: 0.8rem;
  background: #eef3f7;
  color: #4a4e69;
  border: 1px solid #dbe3ea;
  padding: 2px 8px;
  border-radius: 12px;
}
.service-provider { color: #6c757d; font-size: 0.9rem; margin-top: 4px; }
.service-availability { color: #6c757d; font-size: 0.9rem; margin-top: 2px; }
.service-row-desc { color: #6c757d; margin-top: 6px; }
.service-row-main { flex: 1; }
.service-row-side { display: flex; align-items: center; gap: 12px; }
.service-row-side .price { font-weight: 700; color: #2c3e50; }

.loading-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Buttons */
.btn-small {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.btn-small.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-small.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Auth Buttons Container */
.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.auth-buttons .btn-small {
  min-width: 120px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Loading container auth buttons */
.loading-container .auth-buttons {
  margin-top: 1rem;
}

.loading-container .auth-buttons .btn-small {
  min-width: 100px;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

/* Authentication Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(0, 0, 0, 0.1);
  scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
  opacity: 0.7;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark, #3a3e59);
  opacity: 1;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: sticky;
  top: 0;
  right: 0;
  margin-left: auto;
  margin-bottom: -15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  border: none;
  z-index: 1001;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close:hover {
  color: #fff;
  background: var(--danger);
  transform: scale(1.1);
}

.auth-step h2 {
  margin: 0 0 15px 0;
  color: var(--primary);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
}

.auth-step p {
  margin: 0 0 30px 0;
  color: var(--text-light);
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 25px;
}

/* OTP verification specific input group */
#otp-verification .input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 10px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  text-align: center;
  letter-spacing: 2px;
  font-weight: 500;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(74, 78, 105, 0.1);
  transform: translateY(-2px);
}

.input-group input::placeholder {
  text-align: center;
  color: var(--text-light);
  letter-spacing: 1px;
}

.input-group button {
  width: 100%;
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.input-group button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 78, 105, 0.3);
}

.input-group button:active {
  transform: translateY(0);
}

/* Enhanced resend button */
#resend-otp {
  width: 100%;
  margin-top: 25px;
  padding: 14px 20px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
}

#resend-otp:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 78, 105, 0.2);
}

#resend-otp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#resend-otp:disabled:hover {
  background: transparent;
  color: var(--primary);
  transform: none;
  box-shadow: none;
}

/* reCAPTCHA Styles */
.recaptcha-container {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.recaptcha-container .g-recaptcha {
  transform: scale(0.9);
  transform-origin: 0 0;
}

/* Auth Messages */
.auth-error,
.auth-success {
  padding: 12px 15px;
  border-radius: 8px;
  margin: 15px 0;
  font-weight: 500;
  text-align: center;
  display: none;
}

/* Mobile Responsive Design for Modal */
@media (max-width: 768px) {
  .modal {
    padding: 15px;
  }
  
  .modal-content {
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 100%;
    width: 100%;
  }
  
  .auth-step h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .auth-step p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  
  .input-group input {
    font-size: 1rem;
    padding: 14px 16px;
  }
  
  .input-group button {
    font-size: 1rem;
    padding: 14px 16px;
  }
  
  #resend-otp {
    font-size: 0.95rem;
    padding: 12px 16px;
  }
  
  .close {
    right: 20px;
    top: 20px;
    width: 28px;
    height: 28px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  .auth-step h2 {
    font-size: 1.3rem;
  }
  
  .input-group input {
    font-size: 0.95rem;
    padding: 12px 14px;
    letter-spacing: 1px;
  }
  
  /* Mobile OTP styling */
  #otp-code {
    font-size: 1.3rem !important;
    letter-spacing: 6px !important;
    padding: 16px !important;
  }
  
  #otp-code:focus {
    letter-spacing: 6px !important;
  }
  
  #verify-otp {
    padding: 14px 24px;
    font-size: 1rem;
    min-height: 50px;
  }
  
  #resend-otp {
    padding: 12px 16px;
    font-size: 0.95rem;
    min-height: 46px;
  }
}

/* Enhanced OTP verification section */
#otp-verification {
  text-align: center;
  padding: 20px 0;
}

#otp-verification h2 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.8rem;
}

#otp-verification p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Special styling for OTP input */
#otp-code {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem !important;
  letter-spacing: 10px !important;
  text-align: center !important;
  font-weight: bold !important;
  padding: 20px !important;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #f8f9fa;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

#otp-code:focus {
  letter-spacing: 10px !important;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(74, 78, 105, 0.1);
  outline: none;
}

#otp-code::placeholder {
  color: var(--text-light);
  font-weight: normal;
  letter-spacing: 8px;
}

/* Enhanced verify button styling */
#verify-otp {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#verify-otp:hover:not(.loading) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 78, 105, 0.3);
}

#verify-otp:active:not(.loading) {
  transform: translateY(0);
}

/* Loading states for buttons */
.input-group button.loading,
#verify-otp.loading {
  background: var(--secondary) !important;
  cursor: not-allowed;
  pointer-events: none;
  color: transparent;
}

.input-group button.loading::after,
#verify-otp.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced error and success states */
.auth-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 15px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-error::before {
  content: '⚠️';
  font-size: 1rem;
}

.auth-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1001;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background: #28a745;
}

.notification.error {
  background: #dc3545;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 15px;
  }
  
  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .welcome-content h1 {
    font-size: 2rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .profile-content {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .profile-field label {
    min-width: auto;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 20px;
  }
  
  .subscription-actions,
  .booking-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .alert-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .alert-actions {
    align-self: flex-end;
  }
  
  /* Welcome section mobile adjustments */
  .welcome-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }
  
  .welcome-content {
    width: 100%;
  }
  
  #sign-out {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .card-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    top: 10px;
  }
  
  /* Small screen sign-out button adjustments */
  .welcome-content h1 {
    font-size: 1.3rem;
  }
  
  .welcome-content p {
    font-size: 0.9rem;
  }
  
  #sign-out {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===== ROLE SELECTION STYLES ===== */
.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
  align-items: stretch;
}

.role-option {
  cursor: pointer;
  display: block;
}

.role-option input[type="radio"] {
  display: none;
}

.role-card {
  padding: 30px;
  border: 2px solid var(--border, #e1e5e9);
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.role-option input[type="radio"]:checked + .role-card {
  border-color: var(--primary);
  background: rgba(74, 78, 105, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 78, 105, 0.15);
}

.role-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.role-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.role-option input[type="radio"]:checked + .role-card .role-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.role-icon i {
  font-size: 24px;
  color: white;
}

.role-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.role-card > p {
  color: var(--text-light, #6c757d);
  font-size: 0.95rem;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.role-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  text-align: left;
  flex-grow: 1;
}

.role-features li {
  padding: 8px 0 8px 25px;
  color: var(--text);
  font-size: 0.9rem;
  position: relative;
  line-height: 1.3;
}

.role-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.8rem;
}

.role-note {
  margin-top: auto;
  padding: 10px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #856404;
}

.role-note i {
  color: #ffc107;
}

#complete-registration {
  width: 100%;
  margin-top: 25px;
  padding: 16px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#complete-registration:hover {
  background: var(--primary-dark, #3a3e59);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 78, 105, 0.3);
}

#complete-registration:active {
  transform: translateY(0);
}

/* Tablet responsive for role selection */
@media (max-width: 1024px) and (min-width: 769px) {
  .modal-content {
    max-width: 90%;
  }
  
  .role-options {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
  }
  
  .role-card {
    padding: 15px;
  }
}

/* Medium screen responsive for role selection */
@media (max-width: 900px) and (min-width: 769px) {
  .role-options {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

/* Mobile responsive for role selection */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    max-height: 95vh;
    padding: 30px 25px;
  }
  
  .role-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .role-card {
    padding: 20px;
  }
  
  .role-icon {
    width: 50px;
    height: 50px;
  }
  
  .role-icon i {
    font-size: 20px;
  }
  
  .role-card h3 {
    font-size: 1.2rem;
  }
  
  .role-features {
    margin-top: 12px;
  }
  
  .role-features li {
    font-size: 0.85rem;
    padding: 5px 0 5px 22px;
  }
}

/* ===== STATUS MESSAGE STYLES ===== */
.pending-approval-message,
.suspended-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

.message-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.message-content i {
  font-size: 3rem;
  margin-bottom: 20px;
}

.pending-approval-message .message-content i {
  color: #ffc107;
}

.suspended-message .message-content i {
  color: var(--danger, #dc3545);
}

.message-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.message-content p {
  color: var(--text-light, #6c757d);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 25px 0;
}

.message-content .btn {
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message-content .btn:hover {
  background: var(--primary-dark, #3a3e59);
  transform: translateY(-2px);
}

/* ===== ACCESS DENIED NOTIFICATION STYLES ===== */
.access-denied-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.notification-content {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.notification-content i.fa-exclamation-triangle {
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.notification-content span {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.notification-content button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.notification-content button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notification-content button i {
  font-size: 0.9rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile responsive for notifications */
@media (max-width: 768px) {
  .access-denied-notification {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .notification-content {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

/* ===== ROUTER STATUS MESSAGE STYLES ===== */
.router-status-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;
  max-width: 500px;
  width: 90%;
  animation: fadeInScale 0.3s ease-out;
}

.router-status-message.warning .message-content {
  background: linear-gradient(135deg, #ffc107, #ffca2c);
  color: #212529;
  border: 2px solid #ffc107;
}

.router-status-message.error .message-content {
  background: linear-gradient(135deg, #dc3545, #e55353);
  color: white;
  border: 2px solid #dc3545;
}

.router-status-message.info .message-content {
  background: linear-gradient(135deg, #17a2b8, #3ab0c5);
  color: white;
  border: 2px solid #17a2b8;
}

.router-status-message .message-content {
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  backdrop-filter: blur(10px);
}

.router-status-message .message-content i {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.router-status-message.warning .message-content i {
  color: #856404;
}

.router-status-message.error .message-content i {
  color: white;
}

.router-status-message.info .message-content i {
  color: white;
}

.router-status-message .message-text {
  flex: 1;
}

.router-status-message .message-text h3 {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.router-status-message.warning .message-text h3 {
  color: #212529;
}

.router-status-message .message-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.95;
}

.router-status-message .message-content button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.router-status-message .message-content button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.router-status-message.warning .message-content button:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
} 