/* ========================================================
   DigitalDent Modern Styling System
   Theme: Medical Blue, Vibrant Sky, Slate Charcoal & Mint
   ======================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #0ea5e9;
  --dark: #0f172a;
  --slate: #334155;
  --slate-light: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #d97706;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--slate);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Announcement */
.top-announcement {
  background: var(--dark);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 6px 0;
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-link {
  color: #38bdf8;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 4px;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.main-nav a {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin: 1rem 0;
  letter-spacing: -1px;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--slate-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.highlight-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--slate-light);
}

/* Scanner Graphic Mockup */
.scanner-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  color: white;
}

.scanner-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.scanner-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Badges & Buttons */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tech {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-sm {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: #f1f5f9;
  color: var(--slate);
}

.badge-tag {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

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

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

.btn-secondary {
  background: #e2e8f0;
  color: var(--dark);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

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

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
}

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

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Sections & Grids */
.section {
  padding: 4.5rem 0;
}

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

.section-title {
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--slate-light);
}

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

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Cards */
.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--slate-light);
  flex-grow: 1;
}

.learn-link {
  font-weight: 700;
  margin-top: 1rem;
}

.highlighted-portal {
  background: #0f172a;
  border-color: #1e293b;
  color: white;
}

.highlighted-portal h3 {
  color: white;
}

.highlighted-portal p {
  color: #94a3b8;
}

/* Table Comparison */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.comparison-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--dark);
}

.comparison-table tr:hover {
  background: #f8fafc;
}

/* Tech Detail Cards */
.tech-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.tech-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
}

.tech-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #bae6fd;
  display: block;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.tech-meta-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.tech-spec-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.tech-spec-box ul {
  list-style: none;
  margin-top: 1rem;
}

.tech-spec-box li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

/* Timeline (How it works) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-marker {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px #e0f2fe;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  flex-grow: 1;
}

.step-card h3 {
  margin: 0.5rem 0 0.8rem;
}

.step-tech-tag {
  display: inline-block;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 0.75rem;
}

.governance-disclaimer {
  max-width: 800px;
  margin: 3rem auto 0;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  color: #92400e;
}

/* Page Header */
.page-header {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.4rem;
  margin: 0.75rem 0;
}

/* Forms */
.booking-container {
  max-width: 780px;
  margin: 0 auto;
}

.booking-card, .contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.styled-form .form-group {
  margin-bottom: 1.4rem;
}

.styled-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.styled-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.styled-form input, .styled-form select, .styled-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate);
  background-color: #fdfdfd;
}

.styled-form input:focus, .styled-form select:focus, .styled-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-disclaimer {
  margin-bottom: 1.5rem;
  color: var(--slate-light);
}

.alert {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Clinic Dashboard */
.dashboard-header {
  background: var(--dark);
  color: white;
  padding: 3rem 0;
}

.dashboard-header h1 {
  color: white;
  margin-top: 0.5rem;
}

.dashboard-header p {
  color: #94a3b8;
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: -2.5rem;
  margin-bottom: 3rem;
}

.metric-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.metric-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-light);
  text-transform: uppercase;
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  display: block;
  margin: 0.4rem 0;
}

.metric-status {
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-status.positive { color: var(--success); }
.metric-status.neutral { color: var(--primary); }
.metric-status.alert { color: var(--warning); }

.dashboard-table-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.table-search-input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 260px;
}

.clinic-table {
  width: 100%;
  border-collapse: collapse;
}

.clinic-table th, .clinic-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

.clinic-table th {
  background: #f8fafc;
  color: var(--dark);
}

.pill-format {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill-clinic {
  background: #e0f2fe;
  color: #0369a1;
}

.pill-virtual {
  background: #f3e8ff;
  color: #7e22ce;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-confirmed {
  background: #dcfce7;
  color: #15803d;
}

.status-pending {
  background: #fef3c7;
  color: #b45309;
}

.dashboard-sub-grid {
  margin-top: 2rem;
}

.sub-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.queue-list {
  margin-top: 1rem;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.queue-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate-light);
}

/* CTA & Footer */
.cta-banner {
  background: var(--dark);
  color: white;
  padding: 4.5rem 0;
  text-align: center;
}

.cta-content h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #94a3b8;
}

.footer-col a:hover {
  color: var(--white);
}

.academic-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  font-size: 0.8rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .grid-2, .about-grid, .tech-detail-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }
  .nav-toggle {
    display: block;
  }
  .styled-form .form-row {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}