@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #16a34a;
  --success-hover: #15803d;
  --info-color: #0284c7;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --box-shadow-hover: 0 4px 12px 0 rgba(15, 23, 42, 0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.clinic-navbar {
  background: #ffffff;
  box-shadow: var(--box-shadow);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.clinic-logo-icon {
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.clinic-navbar .text-dark {
  color: #0f172a !important;
  letter-spacing: -0.01em;
}

.clinic-navbar .text-muted {
  color: #64748b !important;
  text-transform: uppercase;
  font-size: 0.7rem !important;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #334155;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-badge {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-btn {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  border: none;
}

.hero-btn:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Card Styling (Clean Minimalist) */
.clinic-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.clinic-card-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clinic-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.clinic-card-title i {
  color: var(--primary-color);
}

.clinic-card-body {
  padding: 1.5rem;
}

/* Form Section Headers */
h5.fw-semibold.text-primary, h5.text-primary {
  color: #2563eb !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-color: #f1f5f9 !important;
}

/* Form Inputs - Clean Slate Style */
.form-label {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.85rem;
  color: #0f172a;
  transition: all 0.15s ease-in-out;
}

textarea.form-control {
  min-height: 90px;
}

.form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-control:focus, .form-select:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.required-asterisk {
  color: var(--danger-color);
  font-weight: 700;
}

/* Patient Photo Box & Camera */
.photo-preview-container {
  width: 100%;
  max-width: 220px;
  height: 220px;
  margin: 0 auto;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder-icon {
  font-size: 4rem;
  color: #cbd5e1;
}

.camera-stream-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror selfie camera */
}

/* Custom Checkbox */
.form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  cursor: pointer;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 500;
}

.bg-light.p-3.rounded-3 {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
}

/* Review Card Styling */
.review-card {
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
}

.review-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.review-item:last-child {
  border-bottom: none;
}

.review-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.review-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.live-sync-badge {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #16a34a;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Buttons */
.btn-clinic-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  min-height: 46px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  transition: all 0.15s ease;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}

.btn-clinic-primary:hover, .btn-clinic-primary:focus {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-clinic-success {
  background-color: var(--success-color);
  color: #ffffff;
  border: none;
  min-height: 46px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  transition: all 0.15s ease;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.1);
}

.btn-clinic-success:hover, .btn-clinic-success:focus {
  background-color: var(--success-hover);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

.btn-clinic-outline {
  background-color: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  min-height: 46px;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  transition: all 0.15s ease;
  font-size: 0.9rem;
}

.btn-clinic-outline:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Success Modal Details */
.modal-content {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
}

.modal-header.bg-success {
  background-color: #16a34a !important;
}

.reg-card-receipt {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.reg-number-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  background: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

/* Footer */
.clinic-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 1.75rem 0;
  color: #64748b;
  font-size: 0.85rem;
}

/* Navbar Links & Badges */
.nav-link {
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link:focus {
  color: #2563eb;
}

.landing-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.landing-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: #eff6ff;
  color: #2563eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.stats-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 1rem;
  color: #ffffff;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.doctor-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
}
@media (max-width: 767.98px) {
  .hero-section {
    padding: 2.25rem 0 2.5rem;
    text-align: center;
  }
  
  .hero-btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .photo-preview-container {
    max-width: 180px;
    height: 180px;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .clinic-card-header {
    padding: 1rem;
  }

  .clinic-card-body {
    padding: 1rem;
  }
}
