/* Master CSS file for Dr. Pawar's Clinic - Light Theme Only */

:root {
  /* Light theme colors */
  --background: #ffffff;
  --foreground: #333333;
  --primary: #0d9488; /* teal-600 */
  --primary-hover: #0f766e; /* teal-700 */
  --secondary: #f0fdfa; /* teal-50 */
  --accent: #ecfdf5; /* teal-100 */
  --muted: #f1f5f9; /* slate-100 */
  --muted-foreground: #64748b; /* slate-500 */
  --border: #e2e8f0; /* slate-200 */
  --input: #ffffff;
  --card: #ffffff;
  --card-foreground: #333333;
  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #f8fafc; /* slate-50 */
  --success: #10b981; /* emerald-500 */
  --warning: #f59e0b; /* amber-500 */
  --error: #ef4444; /* red-500 */
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
  animation: slideIn 0.4s ease-out forwards;
}

/* Header */
header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative !important;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  space-x: 0.75rem;
}

.logo img {
  border-radius: 0.5rem;
  height: 3rem;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--foreground);
}

nav a:hover {
  background-color: var(--accent);
  color: var(--primary);
}

nav a.active {
  background-color: var(--accent);
  color: var(--primary);
}

/* Authentication buttons */
.auth-button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.auth-button:hover {
  background-color: var(--primary-hover);
}

/* Language selector and theme toggle */
.language-selector, .theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  background-color: var(--muted);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-left: 0.5rem;
}

.language-selector:hover, .theme-toggle:hover {
  background-color: var(--accent);
}

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

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 4rem 1rem;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.25rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-button {
  background-color: #fff;
  color: var(--primary);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--muted);
}

.secondary-button {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Features section */
.features {
  padding: 4rem 1rem;
  background-color: var(--background);
}

.features-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.features p {
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 3rem;
  color: var(--muted-foreground);
}

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

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.feature-card p {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin: 0;
}

/* Doctors section */
.doctors {
  padding: 4rem 1rem;
  background-color: var(--muted);
}

.doctors-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.doctors h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.doctor-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.doctor-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.doctor-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.doctor-card .designation {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.doctor-card .qualification {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.contact-info {
  text-align: left;
  margin-top: 1.5rem;
}

.contact-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.contact-icon {
  margin-right: 0.75rem;
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
}

/* Page content */
.page-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
  background-color: var(--background);
}

.page-container {
  max-width: 1280px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.page-header p {
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
  color: var(--muted-foreground);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: var(--input);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: var(--input);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 120px;
  resize: vertical;
  background-color: var(--input);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.submit-button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.submit-button:hover {
  background-color: var(--primary-hover);
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
}

.card-icon {
  margin-right: 0.75rem;
  color: var(--primary);
  width: 1.5rem;
  height: 1.5rem;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.event-meta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.fw-medium {
  font-weight: 500;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

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

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

.btn-outline:hover {
  background-color: var(--muted);
}

.me-2 {
  margin-right: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-md-0 {
  margin-top: 0;
}

.text-md-end {
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.bg-success {
  background-color: var(--success);
  color: #fff;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.bg-light {
  background-color: var(--muted);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col-md-8, .col-md-4 {
  padding: 0 0.75rem;
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.align-items-center {
  align-items: center;
}

.card-body {
  padding: 1.5rem;
}

footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 3rem 1rem 1rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 0.5rem;
  }
  
  nav ul {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .features {
    padding: 2rem 1rem;
  }
  
  .doctors {
    padding: 2rem 1rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .col-md-8, .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .mt-md-0 {
    margin-top: 1rem;
  }
  
  .text-md-end {
    text-align: left;
  }
  
  .event-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Mobile navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
}

.mobile-nav-container {
  display: flex;
  justify-content: space-around;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  transition: color 0.2s;
}

.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--primary);
}

.mobile-nav svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
}

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

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.grid {
  display: grid;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

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

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.leading-relaxed {
  line-height: 1.75;
}

/* Status badges */
.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-confirmed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-default {
  background-color: #e5e7eb;
  color: #374151;
}

/* Dashboard specific styles */
.dashboard-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.dashboard-icon-blue {
  background-color: #3b82f6;
  color: white;
}

.dashboard-icon-green {
  background-color: #10b981;
  color: white;
}

.dashboard-icon-orange {
  background-color: #f59e0b;
  color: white;
}

.dashboard-icon-purple {
  background-color: #8b5cf6;
  color: white;
}

.dashboard-icon-small {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

/* Alert styles */
.alert-success {
  background-color: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

/* Form utilities */
.form-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Button variations */
.btn-danger-outline {
  background-color: transparent;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.btn-danger-outline:hover {
  background-color: #fee;
}

.btn-primary-outline {
  background-color: transparent;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.btn-primary-outline:hover {
  background-color: #dbeafe;
}

.dashboard-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
}

.dashboard-btn:hover {
  background-color: var(--primary-hover);
}

.dashboard-btn-secondary {
  background-color: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
}

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

/* Event styles */
.event-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.event-badge-blue {
  background-color: #dbeafe;
  color: #2563eb;
}

.event-badge-green {
  background-color: #dcfce7;
  color: #16a34a;
}

.event-badge-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}

.event-badge-orange {
  background-color: #ffedd5;
  color: #ea580c;
}

.event-image {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.event-image-blue {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.event-image-green {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.event-image-purple {
  background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
}

/* Family member styles */
.family-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.family-avatar-blue {
  background-color: #dbeafe;
  color: #2563eb;
}

.family-avatar-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}

.family-avatar-orange {
  background-color: #ffedd5;
  color: #ea580c;
}

.family-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 0.75rem;
}

/* PWA Install Prompt */
.install-prompt {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  animation: slideIn 0.3s ease-out;
}

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

.install-prompt-content {
  padding: 20px;
}

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

.install-prompt-header h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
}

.install-prompt p {
  margin: 10px 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.install-prompt-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Google Translate styles */
#google_translate_element {
  font-size: 14px;
}

#google_translate_element select {
  width: 100%;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Authentication card styles */
.card-header.bg-primary {
  background-color: var(--primary) !important;
  color: white !important;
  text-align: center;
}

.card-header.bg-primary h3,
.card-header.bg-primary p {
  color: white !important;
  text-align: center;
}

.card-header.bg-primary a {
  color: white !important;
}