/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #224481;
  --primary-dark: #1346d1;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  color: var(--gray-800);
  height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== LOADER ===== */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease-out 1.5s forwards;
}

@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid var(--primary-light);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(43, 90, 173, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--primary) 15%, var(--primary-dark) 100%);
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 10;
}

.logo1 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #eeeef0, #73c1f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  transition: var(--transition);
}

.avatar-mini:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.3);
}

/* ===== EMERGENCY BANNER ===== */
.emergency-banner {
  background: linear-gradient(90deg, var(--danger), #dc2626);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

.emergency-number {
  font-weight: 800;
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav .nav-item {
  white-space: nowrap;
  min-width: auto;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 100px);
  overflow: hidden;
  background: #f1f5f9;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
  padding: 24px 20px;
  overflow-y: auto;
  transition: var(--transition);
}

.nav-section {
  margin-bottom: 28px;
}

.nav-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  margin-bottom: 4px;
  position: relative;
}

.nav-item:hover {
  background: var(--gray-200);
  color: var(--primary-dark);
}

.nav-item.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(43, 90, 173, 0.2);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background: white;
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* ===== CONTENT AREA ===== */
.content-area {
  padding: 28px;
  overflow-y: auto;
  background: #f1f5f9;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lexend', sans-serif;
}

.page-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-300));
  margin-left: 16px;
}

/* ===== CARD STYLES ===== */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-compact {
  padding: 18px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  flex: 1;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-active { background: #dcfce7; color: #166534; }
.status-scheduled { background: #fef3c7; color: #92400e; }
.status-completed { background: #dbeafe; color: #1e40af; }

/* ===== INFO & SERVICES GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(43, 90, 173, 0.15);
}

.service-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.service-description {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.5;
}

.service-price {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(43, 90, 173, 0.3);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.8rem;
  min-height: 32px;
}

/* ===== APPOINTMENT ITEMS ===== */
.appointment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
  transition: var(--transition);
}

.appointment-item:hover {
  background: var(--gray-50);
  border-radius: 8px;
  padding-left: 16px;
  padding-right: 16px;
}

.appointment-item:last-child {
  border-bottom: none;
}

.appointment-details h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--gray-800);
}

.appointment-time {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.appointment-item .btn,
.appointment-item .status-badge {
  flex-shrink: 0;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
  display: none;
  opacity: 0;
  animation: fadeInContent 0.4s ease-out forwards;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .content-area {
    padding: 20px;
  }

  .page-title::after {
    display: none;
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .card-header .btn {
    align-self: flex-end;
  }

  .info-grid, .services-grid {
    grid-template-columns: 1fr;
  }

  .appointment-item {
    flex-wrap: wrap;
    gap: 10px;
  }

  .appointment-details {
    flex: 1 1 100%;
  }
}
/* Appointment Booking Section Styles */
.appointment-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: 'Arial', sans-serif;
}

.appointment-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.appointment-section .header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 10px 5px;
  flex-shrink: 0;
}

.appointment-section .header h1 {
  font-size: 2.0em;
  margin: 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.appointment-section .scrollable-content {
  flex: 1;
  overflow-y: auto; 
  padding: 0;
}

.appointment-section .booking-form {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.appointment-section .step-indicator {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  color: #667eea;
  font-size: 1.1em;
}

.appointment-section .progress-bar {
  background: #e0e0e0;
  height: 10px;
  border-radius: 5px;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.appointment-section .progress-fill {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  height: 100%;
  transition: width 0.4s ease;
  border-radius: 5px;
}

.appointment-section .form-step {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.appointment-section .form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.appointment-section .form-section {
  margin-bottom: 30px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid #e1e8ed;
}

.appointment-section .section-title {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.appointment-section .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.appointment-section .service-option {
  padding: 25px;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.appointment-section .service-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s;
}

.appointment-section .service-option:hover::before {
  left: 100%;
}

.appointment-section .service-option:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.appointment-section .service-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.appointment-section .datetime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.appointment-section .form-group {
  margin-bottom: 25px;
}

.appointment-section .form-label {
  display: block;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.appointment-section .required {
  color: #e74c3c;
  font-weight: bold;
}

.appointment-section .form-input {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  background: white;
  transition: all 0.3s ease;
  font-family: inherit;
}

.appointment-section .form-input:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.appointment-section .time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.appointment-section .time-slot {
  padding: 15px 10px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.appointment-section .time-slot:hover {
  border-color: #667eea;
  background: #f0f4ff;
  transform: translateY(-2px);
}

.appointment-section .time-slot.selected {
  border-color: #667eea;
  background: #667eea;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.appointment-section .time-slot.unavailable {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: #dee2e6;
}

.appointment-section .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.appointment-section .textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.appointment-section .booking-summary {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
  border: 2px solid #4caf50;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.1);
}

.appointment-section .summary-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.appointment-section .summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.appointment-section .summary-label {
  font-weight: 600;
  color: #2e7d32;
}

.appointment-section .summary-value {
  color: #555;
  font-weight: 500;
}

.appointment-section .total-cost {
  border-top: 2px solid #4caf50;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 1.2em;
  font-weight: 700;
  color: #2e7d32;
  border-bottom: none;
}

.appointment-section .success-message {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
  color: #2e7d32;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 20px;
  border: 2px solid #4caf50;
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.2);
}

.appointment-section .error-message {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px solid #f44336;
  font-weight: 500;
}

.appointment-section .action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.appointment-section .btn1 {
  padding: 15px 35px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.appointment-section .btn-primary1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.appointment-section .btn-primary1:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.appointment-section .btn-secondary1 {
  background: white;
  color: #333;
  border: 2px solid #e1e8ed;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.appointment-section .btn-secondary1:hover {
  background: #f8f9fa;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Custom scrollbar */
.appointment-section .scrollable-content::-webkit-scrollbar {
  width: 8px;
}

.appointment-section .scrollable-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.appointment-section .scrollable-content::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.appointment-section .scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .appointment-section .header h1 {
    font-size: 2em;
  }
  
  .appointment-section .booking-form {
    padding: 20px;
  }
  
  .appointment-section .datetime-grid,
  .appointment-section .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .appointment-section .service-grid {
    grid-template-columns: 1fr;
  }
  
  .appointment-section .time-slots {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .appointment-section .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .appointment-section .btn1 {
    width: 100%;
    max-width: 300px;
  }
  
  .appointment-section .form-section {
    padding: 20px;
  }
}