/* =========================================================
   MASTER style.css (scoped per-page using body[data-page="..."])
   Place this file at:
   public/css/style.css
   Link in each HTML head: <link rel="stylesheet" href="css/style.css">
   ========================================================= */

html, body {
  margin: 0;
  padding: 0;
  border: none;
}

/* -------------------------
   GLOBAL VARIABLE ALIASES
   keep all names used across pages so no variable becomes undefined
   ------------------------- */
:root{
  --primary: #0e95ac;
  --primary-light: #3bb9d1;
  --bg: #f4fcfd;
  --white: #fff;
  --text: #2e2e2e;
  --muted: #6a8a91;
  --border: #cfeeee;
  --error: #d9534f;
  --color-primary: #0e95ac;
  --color-primary-light: #3bb9d1;
  --color-secondary: #a3dfe9;
  --color-bg: #f4fcfd;
  --color-text: #2e2e2e;
  --color-muted: #6a8a91;
  --color-section-alt: #e6f7fa;
  --color-neutral-light: #d3eff4;
  --color-status-green: #38b48f;
  --color-status-red: #e74c3c;
  --card-bg: #ffffff;
  --accent-color: #3bb9d1;
  --background-color: #f4fcfd;
}

/* small reset used globally */
*,
*::before,
*::after { box-sizing: border-box; }

/* =========================================================
   GLOBAL HEADER (base defaults)
   - Provides a consistent baseline for all page headers
   - Per-page header rules (body[data-page="..."] header) will still override specifics
   ========================================================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5vw;                 /* sensible default padding */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  color: #fff;                       /* default text color for headers */
  background: transparent;           /* per-page rules can override background */
  gap: 12px;
  min-height: 56px;
}

/* make sure header logos/images have a consistent default size */
header img {
  height: 45px;
  max-height: 60px;
  display: inline-block;
  object-fit: contain;
  user-select: none;
}

/* common header action controls (links/buttons) baseline */
header .nav-link,
header .home-button,
header .login-button,
header .header-button,
header .nav-button {
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

/* subtle hover affordance that won't override per-page color choices */
header .nav-link:hover,
header .home-button:hover,
header .login-button:hover,
header .header-button:hover,
header .nav-button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* small responsive tweak */
@media (max-width:700px){
  header { padding: 12px 4vw; gap:8px; }
  header img { height: 42px; }
  header .nav-link, header .home-button, header .login-button, header .header-button { padding:6px 10px; }
}

/* =========================================================
   PAGE: account.html
   ========================================================= */
body[data-page="account"] {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* header */
body[data-page="account"] header {
  background: var(--primary);
  padding: 10px 20px; /* change from 15px 5vw to match index.html */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

body[data-page="account"] header img {
  height: 50px;
  user-select: none;
}

/* header/nav buttons — matches index.html style */
body[data-page="account"] .nav-link,
body[data-page="account"] .logout-button {
  background: transparent;
  border: 2px solid #fff;
  padding: 6px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* uniform button height */
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

/* logout button — keep it red */
body[data-page="account"] .logout-button {
  background: #d9534f;   /* red */
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

body[data-page="account"] .logout-button:hover {
  background: #c9302c;   /* darker red on hover */
}

/* hover/focus style */
body[data-page="account"] .nav-link:hover,
body[data-page="account"] .logout-button:hover,
body[data-page="account"] .nav-link:focus,
body[data-page="account"] .logout-button:focus {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
}

/* container and form fields */
body[data-page="account"] .container {
  max-width: 1000px;
  margin: 40px auto;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

body[data-page="account"] h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 40px;
}

body[data-page="account"] .field-group {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

body[data-page="account"] .field-label {
  font-weight: bold;
  color: var(--text);
  margin-bottom: 5px;
}

body[data-page="account"] .field-value {
  color: var(--muted);
  font-size: 1rem;
}

/* edit button — subtle contrast, still consistent with theme */
body[data-page="account"] .edit-button {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
}

body[data-page="account"] .edit-button:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
}

/* responsive layout */
@media (max-width: 700px) {
  body[data-page="account"] .field-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body[data-page="account"] .edit-button,
  body[data-page="account"] .logout-button,
  body[data-page="account"] .nav-link {
    width: fit-content;
    margin-top: 8px;
  }
}

/* =========================================================
   PAGE: change_password.html
   ========================================================= */
body[data-page="change-password"] {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
}

body[data-page="change-password"] header {
  background: var(--primary);
  padding: 15px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
body[data-page="change-password"] header img { height:45px; }

body[data-page="change-password"] .nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 6px;
}

body[data-page="change-password"] .container {
  max-width: 500px;
  margin: 60px auto;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

body[data-page="change-password"] h2 {
  text-align:center; color: var(--primary); margin-bottom:30px;
}

body[data-page="change-password"] form { display:flex; flex-direction:column; }

body[data-page="change-password"] label {
  font-weight:600; margin-top:20px; margin-bottom:8px;
}

body[data-page="change-password"] input[type="password"],
body[data-page="change-password"] input[readonly] {
  padding:12px; border:1px solid var(--border); border-radius:6px; font-size:1rem;
  background-color:#f9f9f9; color:var(--text);
}

body[data-page="change-password"] input:focus { border-color:var(--primary); outline:none; }

body[data-page="change-password"] .readonly-field { background-color:#f3f3f3; cursor:not-allowed; }

body[data-page="change-password"] button {
  margin-top:30px; padding:12px; background:var(--primary); color:#fff; border:none; border-radius:6px; font-size:1rem; cursor:pointer;
}
body[data-page="change-password"] button:hover { background:var(--primary-light); }

body[data-page="change-password"] .back-link { display:block; text-align:center; margin-top:25px; color:var(--primary); text-decoration:none; }
body[data-page="change-password"] .back-link:hover { text-decoration:underline; }

/* =========================================================
   PAGE: index.html (landing) — original index styles preserved
   ========================================================= */
body[data-page="index"] {
  margin:0; font-family:'Roboto',sans-serif; background:var(--color-bg); color:var(--color-text); line-height:1.6;
}

/* header */
body[data-page="index"] header {
  background-color: var(--color-primary);
  padding: 10px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
body[data-page="index"] header img { height:50px; user-select:none; }

/* header buttons */
body[data-page="index"] .header-buttons { display:flex; gap:12px; }
body[data-page="index"] .login-button {
  background: transparent;
  border: 2px solid #fff;
  padding: 6px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .3s, border-color .3s;
}
body[data-page="index"] .login-button:hover,
body[data-page="index"] .login-button:focus {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

/* hero */
body[data-page="index"] .hero {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  align-items:center;
  gap:40px;
  padding:0 5vw 60px;
  background:#fff;
  min-height:100vh;
}
body[data-page="index"] .hero-text h1 { margin:0 0 20px; font-size:clamp(2.5rem,5vw,3.5rem); color:var(--color-primary); }
body[data-page="index"] .hero-text p { max-width:600px; color:var(--color-muted); }

/* CRITICAL: ensure images don't overflow — keep original constraints */
body[data-page="index"] .hero img {
  width:100%;
  max-height:80vh;
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}

/* sections */
body[data-page="index"] .section {
  padding: clamp(60px,8vw,100px) 5vw;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:100vh;
}
body[data-page="index"] .section.testimonials,
body[data-page="index"] .section.final-cta { min-height:auto; padding: clamp(60px,8vw,100px) 5vw; }

body[data-page="index"] .section:nth-of-type(even) { background: var(--color-section-alt); }
body[data-page="index"] .section:nth-of-type(odd) { background: #fff; }
body[data-page="index"] .section h2 {
  text-align:center; font-size:clamp(2rem,4vw,2.6rem); color:var(--color-primary); margin-bottom:60px;
}

/* features/testimonials grid */
body[data-page="index"] .features-wrapper,
body[data-page="index"] .testimonial-card {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap:50px;
  align-items:center;
  max-width:1200px;
  margin:0 auto;
}
body[data-page="index"] .features-wrapper img,
body[data-page="index"] .testimonial-card img {
  width:100%;
  border-radius:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  max-height:70vh;
  object-fit:cover;
}

/* list ticks */
body[data-page="index"] .features-text ul { list-style:none; padding:0; }
body[data-page="index"] .features-text li {
  margin-bottom:14px; position:relative; padding-left:28px;
}
body[data-page="index"] .features-text li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight:900;
  position:absolute; left:0; top:0; color:var(--color-primary);
}

/* testimonial card specifics */
body[data-page="index"] .testimonial-card { grid-template-columns: 120px 1fr; gap:30px; }
body[data-page="index"] .testimonial-card img { height:120px; object-fit:cover; border-radius:50%; }
body[data-page="index"] .testimonial-quote { font-style:italic; color:var(--color-muted); font-size:1.1rem; margin-bottom:12px; }

/* footer for index */
body[data-page="index"] footer {
  background: var(--color-secondary); text-align:center; padding:24px 5vw; color:var(--color-primary); font-size:.9rem;
}
body[data-page="index"] footer a { color:var(--color-primary); font-weight:600; text-decoration:none; }
body[data-page="index"] footer a:hover { text-decoration:underline; }

/* Join Now button in FINAL CTA section (compact version) */
body[data-page="index"] .final-cta .login-button {
  background-color: var(--color-primary);
  color: #fff;
  padding: 10px 20px;   /* reduced from 12px 28px */
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  display: inline-block;
  width: auto;          /* ensures natural button width */
  max-width: fit-content; 
  transition: all 0.3s ease;
}

/* Hover effect matching pricing subscribe-button */
body[data-page="index"] .final-cta .login-button:hover,
body[data-page="index"] .final-cta .login-button:focus {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
}

body[data-page="index"] .final-cta .login-button {
  margin: 0 auto;       /* forces horizontal centering */
  display: inline-block;
}

@media (max-width:700px){
  body[data-page="index"] .testimonial-card { grid-template-columns:1fr; text-align:center; }
  body[data-page="index"] .testimonial-card img { margin:0 auto; }
}



/* =========================================================
   PAGE: login.html (original login styles)
   ========================================================= */
body[data-page="login"] {
  font-family:'Roboto',sans-serif;
  background-color: #f4fcfd;
  color: #2e2e2e;
  margin: 0;
  padding: 0;
}

body[data-page="login"] header {
  background-color: var(--color-primary);
  padding: 10px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
body[data-page="login"] header img { height:50px; user-select:none; }

body[data-page="login"] .home-button {
  background: transparent;
  border: 2px solid #fff;
  padding: 6px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px; /* consistent height with index buttons */
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

body[data-page="login"] .home-button:hover,
body[data-page="login"] .home-button:focus {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  transform: translateY(-2px);
}

body[data-page="login"] main { padding:40px; }
body[data-page="login"] h2 { text-align:center; color:var(--color-primary); }

body[data-page="login"] form {
  background:#ffffff; padding:30px; max-width:380px; margin:40px auto; box-shadow:0 0 10px rgba(14,149,172,0.1); border-radius:10px;
}
body[data-page="login"] .form-group { margin-bottom:20px; }
body[data-page="login"] label { display:block; font-weight:bold; margin-bottom:5px; }
body[data-page="login"] input, body[data-page="login"] select {
  width:100%; padding:10px; font-size:1rem; border:1px solid #d3eff4; border-radius:6px; box-sizing:border-box;
}
body[data-page="login"] input:focus, body[data-page="login"] select:focus {
  border-color:var(--color-primary); outline:none; box-shadow:0 0 5px var(--color-primary-light);
}
body[data-page="login"] button { background-color:var(--color-primary); color:white; padding:12px 30px; font-size:1rem; border:none; border-radius:6px; cursor:pointer; width:100%; }
body[data-page="login"] button:hover { background-color:var(--color-primary-light); }
body[data-page="login"] .back-link { text-align:center; margin-top:20px; }
body[data-page="login"] .back-link a { color:var(--color-primary); text-decoration:none; font-weight:500; }
body[data-page="login"] .back-link a:hover { text-decoration:underline; }

/* =========================================================
   PAGE: physician_interface.html
   ========================================================= */
body[data-page="physician-interface"] {
  font-family:'Roboto',sans-serif;
  margin:0;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* header */
body[data-page="physician-interface"] header { background-color:var(--color-primary); padding:10px 20px; display:flex; align-items:center; justify-content:space-between; }
body[data-page="physician-interface"] header img { height:50px; }

/* account link (top-right) — ensure it's white like original */
body[data-page="physician-interface"] .login-icon {
  color:white; font-size:1.5rem; text-decoration:none;
}
body[data-page="physician-interface"] nav[aria-label="Primary navigation"] {
  background: var(--color-secondary); padding:10px 20px; display:flex; gap:20px; border-bottom:1px solid var(--color-neutral-light);
}
body[data-page="physician-interface"] nav[aria-label="Primary navigation"] a { color:var(--color-primary); text-decoration:none; font-weight:600; }

/* main container */
body[data-page="physician-interface"] main.container { padding:30px 20px; max-width:1100px; margin:0 auto; }
body[data-page="physician-interface"] main h2 { margin-bottom:1rem; color:var(--color-primary); font-weight:700; font-size:1.8rem; }

/* search filter row - keep in one row */
body[data-page="physician-interface"] .search-filter-container {
  display:flex; flex-wrap:wrap; gap:15px; justify-content:center; margin-bottom:30px;
}
body[data-page="physician-interface"] .search-filter-container > div { flex: 1 1 250px; max-width:300px; min-width:220px; }

body[data-page="physician-interface"] input[type="text"], body[data-page="physician-interface"] select {
  width:100%; padding:10px; border:1px solid var(--color-neutral-light); border-radius:6px; font-size:1rem; background-color:#fff;
}

/* clear button */
body[data-page="physician-interface"] button.clear-btn {
  background-color:var(--color-primary); color:white; border:none; padding:10px 20px; border-radius:6px; font-weight:600; cursor:pointer; width:100%; max-width:150px;
}

/* table */
/* Scrollable specialist list section */
body[data-page="physician-interface"] .table-scroll-container {
  max-height: 60vh;         /* stable height */
  overflow-y: auto;         /* vertical scroll */
  margin-top: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Table styling */
body[data-page="physician-interface"] .table-scroll-container table {
  width: 100%;
  border-collapse: separate; /* must be separate */
  border-spacing: 0;
  font-size: 1rem;
}

/* Table header sticky */
body[data-page="physician-interface"] thead {
  display: table-header-group; /* important */
}

body[data-page="physician-interface"] thead th {
  position: sticky;
  top: 0;
  background-color: var(--color-neutral-light);
  color: var(--color-primary);
  z-index: 5;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-neutral-light);
}

/* Add subtle shadow under sticky header */
body[data-page="physician-interface"] thead th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px; /* thickness of shadow */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none; /* don’t block clicks */
}

/* Table body */
body[data-page="physician-interface"] tbody {
  display: table-row-group;
}

/* Table cells */
body[data-page="physician-interface"] th, 
body[data-page="physician-interface"] td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-neutral-light);
  text-align: left;
}


/* status badge and view */
body[data-page="physician-interface"] .status-badge { padding:6px 14px; border-radius:20px; font-size:0.9em; font-weight:600; display:inline-flex; align-items:center; gap:6px; }
body[data-page="physician-interface"] .status-green { background: linear-gradient(135deg,var(--color-status-green),#38a879); color:white; }
body[data-page="physician-interface"] .status-red { background: linear-gradient(135deg,var(--color-status-red),#d7392e); color:white; }
body[data-page="physician-interface"] button.btn-view { background-color:var(--color-primary); color:white; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; font-weight:600; display:inline-flex; align-items:center; gap:6px; }

/* modal (popup) — keep exact original so pop up works */
body[data-page="physician-interface"] .modal-overlay {
  position: fixed; top:0; left:0; width:100%; height:100%; background-color: rgba(0,0,0,0.4); display:flex; justify-content:center; align-items:center; z-index:1000;
}
body[data-page="physician-interface"] .modal-content {
  background-color:white; padding:25px 30px; border-radius:12px; max-width:500px; width:90%; position:relative; box-shadow:0 0 15px rgba(0,0,0,0.2); color:var(--color-text);
  margin: auto;
}

/* FIX: force perfect centering */
body[data-page="physician-interface"] .modal-content {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

body[data-page="physician-interface"] .modal-content h3 { margin-top:0; color:var(--color-primary); }
body[data-page="physician-interface"] .close-btn { position:absolute; top:10px; right:14px; font-size:1.4rem; color:#666; cursor:pointer; }

/* footer */
body[data-page="physician-interface"] footer { background-color:var(--color-secondary); text-align:center; padding:15px 20px; font-size:14px; color:var(--color-primary); border-top:1px solid var(--color-neutral-light); margin-top:40px; }

/* =========================================================
   PAGE: pricing.html
   ========================================================= */
body[data-page="pricing"] {
  font-family:'Roboto',sans-serif; background-color:var(--background-color); color:var(--text-color);
}

body[data-page="pricing"] header {
  background-color: var(--color-primary, var(--primary-color));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

body[data-page="pricing"] header img {
  height: 50px;
  user-select: none;
}

/* Back to Main Page button */
body[data-page="pricing"] .nav-button {
  background: transparent;
  border: 2px solid #fff;
  padding: 6px 18px;        /* exact match with index.html */
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;          /* ensures consistent text size */
  text-decoration: none;
  display: inline-flex;     /* aligns text perfectly vertically */
  align-items: center;      /* centers text within the button */
  justify-content: center;
  height: 40px;             /* fixes the button height for consistency */
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

body[data-page="pricing"] .nav-button:hover,
body[data-page="pricing"] .nav-button:focus {
  background: #fff;
  color: var(--color-primary, var(--primary-color));
  border-color: #fff;
  transform: translateY(-2px);
}

body[data-page="pricing"] .hero { text-align:center; padding:60px 20px 30px; }
body[data-page="pricing"] .hero h1 { font-size:2.5rem; color:var(--primary-color); margin-bottom:20px; }
body[data-page="pricing"] .hero p { font-size:1.1rem; max-width:800px; margin:0 auto; color:var(--muted-text); }

/* features card */
body[data-page="pricing"] .features { padding:40px 20px; background-color:var(--card-bg); box-shadow:0 4px 10px rgba(0,0,0,0.05); border-radius:10px; max-width:1000px; margin:40px auto; }
body[data-page="pricing"] .features h2 { color:var(--primary-color); text-align:center; margin-bottom:30px; }
body[data-page="pricing"] .features ul { list-style-type:none; padding:0; margin:0 auto; max-width:800px; }
body[data-page="pricing"] .features li { padding:10px 0; font-size:1rem; border-bottom:1px solid var(--border-color); color:var(--text-color); }

/* pricing plans */
body[data-page="pricing"] .pricing-section { display:flex; flex-wrap:wrap; justify-content:center; gap:30px; padding:60px 20px; }
body[data-page="pricing"] .plan {
  background-color:var(--card-bg); border:2px solid var(--border-color); border-radius:12px; padding:30px 25px; max-width:360px; text-align:center; transition:0.3s ease; box-shadow:0 4px 14px rgba(0,0,0,0.05);
}
body[data-page="pricing"] .plan:hover { transform:scale(1.02); border-color:var(--accent-color); }
body[data-page="pricing"] .plan h3 { font-size:1.5rem; color:var(--primary-color); margin-bottom:10px; }
body[data-page="pricing"] .price { font-size:2rem; font-weight:bold; margin:10px 0 20px; color:var(--primary-color); }
body[data-page="pricing"] .plan ul { list-style:none; padding:0; margin-bottom:30px; color:var(--text-color); }
body[data-page="pricing"] .plan li { margin:10px 0; }
body[data-page="pricing"] .subscribe-button {
  background-color: var(--color-primary);   /* ✅ consistent variable name */
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

body[data-page="pricing"] .subscribe-button:hover,
body[data-page="pricing"] .subscribe-button:focus {
  background-color: var(--color-primary-light);  /* ✅ lighter hover version */
  transform: translateY(-2px);
}
body[data-page="pricing"] .subscribe-button:hover { background-color:var(--accent-color); }

/* footer for pricing */
body[data-page="pricing"] footer {
  background: var(--color-secondary);
  text-align: center;
  padding: 24px 5vw;
  color: var(--color-primary);
  font-size: 0.9rem;
}

body[data-page="pricing"] footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

body[data-page="pricing"] footer a:hover {
  text-decoration: underline;
}

/* Responsive alignment same as index footer */
@media (max-width:700px){
  body[data-page="pricing"] footer {
    padding: 20px 5vw;
    font-size: 0.85rem;
  }
}

/* =========================================================
   PAGE: register.html
   ========================================================= */
body[data-page="register"] {
  font-family:'Roboto',sans-serif; background-color:#f4fcfd; color:#2e2e2e; margin:0; padding:0;
}
body[data-page="register"] header {
  background-color:#0e95ac; color:white; padding:15px 30px; display:flex; justify-content:space-between; align-items:center;
}
body[data-page="register"] header img { height:45px; object-fit:contain; }
body[data-page="register"] .home-button { background-color:white; color:#0e95ac; padding:8px 16px; border-radius:5px; font-weight:bold; }
body[data-page="register"] main { padding:40px; }
body[data-page="register"] h2 { text-align:center; color:#0e95ac; }

/* form layout: keep items in rows (form-row + form-group) */
body[data-page="register"] form {
  background:#ffffff; padding:30px; max-width:800px; margin:40px auto; box-shadow:0 0 10px rgba(14,149,172,0.1); border-radius:10px;
}
body[data-page="register"] .form-row { display:flex; flex-wrap:wrap; gap:20px; }
body[data-page="register"] .form-group { flex:1; min-width:200px; margin-top:20px; }

body[data-page="register"] label { display:block; font-weight:bold; margin-bottom:5px; position:relative; }

/* Red star for required fields */
body[data-page="register"] input[required] + label::after,
body[data-page="register"] label.required::after { content:" *"; color:red; font-weight:bold; margin-left:2px; }

body[data-page="register"] input {
  width:100%; padding:10px; font-size:1rem; border:1px solid #d3eff4; border-radius:6px;
}
body[data-page="register"] input:focus { border-color:#0e95ac; outline:none; box-shadow:0 0 5px #3bb9d1; }

body[data-page="register"] .form-actions { margin-top:30px; text-align:center; }
body[data-page="register"] button { background-color:#0e95ac; color:white; padding:12px 30px; font-size:1rem; border:none; border-radius:6px; cursor:pointer; }
body[data-page="register"] button:hover { background-color:#3bb9d1; }
body[data-page="register"] .back-link { text-align:center; margin-top:20px; }
body[data-page="register"] .back-link a { color:#0e95ac; text-decoration:none; font-weight:500; }
body[data-page="register"] .back-link a:hover { text-decoration:underline; }

@media (max-width:700px){
  body[data-page="register"] .form-row { flex-direction:column; }
  body[data-page="register"] header { flex-direction:column; align-items:flex-start; }
  body[data-page="register"] .home-button { margin-top:10px; }
}

/* =========================================================
   PAGE: register_specialist.html
   (same layout/styling as register.html)
   ========================================================= */
body[data-page="register-specialist"] {
  font-family:'Roboto',sans-serif; background-color:#f4fcfd; color:#2e2e2e; margin:0; padding:0;
}
body[data-page="register-specialist"] header { background-color:#0e95ac; color:white; padding:15px 30px; display:flex; justify-content:space-between; align-items:center; }
body[data-page="register-specialist"] header img { height:45px; object-fit:contain; }
body[data-page="register-specialist"] .home-button { background-color:white; color:#0e95ac; padding:8px 16px; border-radius:5px; font-weight:bold; }
body[data-page="register-specialist"] main { padding:40px; }
body[data-page="register-specialist"] h2 { text-align:center; color:#0e95ac; }

body[data-page="register-specialist"] form { background:#fff; padding:30px; max-width:800px; margin:40px auto; box-shadow:0 0 10px rgba(14,149,172,0.1); border-radius:10px; }
body[data-page="register-specialist"] .form-row { display:flex; flex-wrap:wrap; gap:20px; }
body[data-page="register-specialist"] .form-group { flex:1; min-width:200px; margin-top:20px; }
body[data-page="register-specialist"] label { display:block; font-weight:bold; margin-bottom:5px; position:relative; }
/* Red star for required fields */
body[data-page="register-specialist"] input[required] + label::after,
body[data-page="register-specialist"] label.required::after {
  content: " *";
  color: red;
  font-weight: bold;
  margin-left: 2px;
}
body[data-page="register-specialist"] input, body[data-page="register-specialist"] select { width:100%; padding:10px; font-size:1rem; border:1px solid #d3eff4; border-radius:6px; }
body[data-page="register-specialist"] input:focus, body[data-page="register-specialist"] select:focus { border-color:#0e95ac; outline:none; box-shadow:0 0 5px #3bb9d1; }
body[data-page="register-specialist"] .form-actions { margin-top:30px; text-align:center; }
body[data-page="register-specialist"] button { background-color:#0e95ac; color:white; padding:12px 30px; font-size:1rem; border:none; border-radius:6px; cursor:pointer; }
body[data-page="register-specialist"] button:hover { background-color:#3bb9d1; }
body[data-page="register-specialist"] .back-link { text-align:center; margin-top:20px; }
body[data-page="register-specialist"] .back-link a { color:#0e95ac; text-decoration:none; font-weight:500; }
body[data-page="register-specialist"] .back-link a:hover { text-decoration:underline; }

@media (max-width:700px){
  body[data-page="register-specialist"] .form-row { flex-direction:column; }
  body[data-page="register-specialist"] header { flex-direction:column; align-items:flex-start; }
  body[data-page="register-specialist"] .home-button { margin-top:10px; }
}

/* =========================================================
   PAGE: specialist_interface.html
   ========================================================= */
body[data-page="specialist-interface"] {
  font-family:'Roboto',sans-serif; background-color:var(--color-bg); color:var(--color-text); display:flex; flex-direction:column; margin:0; min-height:100vh;
}

/* header */
body[data-page="specialist-interface"] header { background-color:var(--color-primary); padding:10px 20px; display:flex; align-items:center; justify-content:space-between; }
body[data-page="specialist-interface"] header img { height:50px; user-select:none; }
body[data-page="specialist-interface"] .login-icon { color:white; font-size:1.5rem; text-decoration:none; }

/* nav */
body[data-page="specialist-interface"] nav[aria-label="Primary navigation"] { background:var(--color-secondary); padding:10px 20px; display:flex; gap:20px; border-bottom:1px solid var(--color-neutral-light); }
body[data-page="specialist-interface"] nav[aria-label="Primary navigation"] a { color:var(--color-primary); text-decoration:none; font-weight:600; }

/* main layout: left half toggle, right half physician list */
body[data-page="specialist-interface"] main.container {
  display:flex; flex:1; gap:20px; padding:20px; padding-bottom:5px; box-sizing:border-box;
}
/* left / right halves */
body[data-page="specialist-interface"] .half-section {
  flex:1; background:#fff; border-radius:12px; padding:30px; box-shadow:0 0 8px rgba(0,0,0,0.08); overflow-y:auto; display:flex; flex-direction:column; align-items:center; margin-bottom:20px;
}
body[data-page="specialist-interface"] .half-section h2 { color:var(--color-primary); font-size:1.8rem; margin-bottom:2rem; font-weight:700; text-align:center; }

/* toggle switch — keep size/alignment so it stays centered on left */
body[data-page="specialist-interface"] .toggle-switch {
  position:relative; height:100px; width:400px; background-color:var(--color-neutral-light); border-radius:50px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; padding:0 60px; box-sizing:border-box; flex-shrink:0;
}
body[data-page="specialist-interface"] .switch-button { position:absolute; top:10px; left:20px; height:80px; width:80px; background-color:white; border-radius:50%; transition:all 0.3s ease; box-shadow:0 0 6px rgba(0,0,0,0.15); }
body[data-page="specialist-interface"] .toggle-switch.active .switch-button { left: calc(100% - 100px); }
body[data-page="specialist-interface"] .switch-label { font-weight:bold; color:var(--color-muted); width:50%; text-align:center; z-index:1; font-size:1.1rem; }

body[data-page="specialist-interface"] .status-display { display:flex; align-items:center; gap:16px; margin-top:10px; margin-bottom:20px; justify-content:center; }
body[data-page="specialist-interface"] .light-indicator { width:20px; height:20px; border-radius:50%; background-color:var(--color-status-red); box-shadow:0 0 10px var(--color-status-red); transition:background-color 0.3s ease, box-shadow 0.3s ease; }
body[data-page="specialist-interface"] .light-indicator.green { background-color:var(--color-status-green); box-shadow:0 0 10px var(--color-status-green); }

body[data-page="specialist-interface"] .wait-time-section,
body[data-page="specialist-interface"] .radius-section { min-height:80px; visibility:hidden; opacity:0; transition:opacity 0.3s; margin-top:20px; width:100%; }
body[data-page="specialist-interface"] .toggle-switch.active ~ .wait-time-section,
body[data-page="specialist-interface"] .toggle-switch.active ~ .radius-section { visibility:visible; opacity:1; }

/* existing visibility and spacing */
body[data-page="specialist-interface"] .wait-time-section,
body[data-page="specialist-interface"] .radius-section { 
  min-height:80px; 
  visibility:hidden; 
  opacity:0; 
  transition:opacity 0.3s; 
  margin-top:20px; 
  width:100%; 
}

/* --- NEW STYLING TO MATCH SITE DESIGN --- */
body[data-page="specialist-interface"] .wait-time-section,
body[data-page="specialist-interface"] .radius-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

body[data-page="specialist-interface"] .wait-time-section label,
body[data-page="specialist-interface"] .radius-section label {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

body[data-page="specialist-interface"] .wait-time-section select,
body[data-page="specialist-interface"] .radius-section input[type="number"] {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  width: 200px;
  outline: none;
  box-sizing: border-box;
}

/* wait time and radius sections — updated to stand out */
body[data-page="specialist-interface"] .wait-time-section select,
body[data-page="specialist-interface"] .radius-section input[type="number"] {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  width: 200px;
  outline: none;
  box-sizing: border-box;
  background-color: #fff; /* keeps it white */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle shadow for depth */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* hover effect to make it interactive */
body[data-page="specialist-interface"] .wait-time-section select:hover,
body[data-page="specialist-interface"] .radius-section input[type="number"]:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

body[data-page="specialist-interface"] #confirmBtn { margin-top:30px; padding:14px 28px; font-size:1rem; background-color:var(--color-primary); color:white; border:none; border-radius:6px; cursor:pointer; }

/* physician list table */
body[data-page="specialist-interface"] .physician-list table { width:100%; border-collapse:collapse; margin-top:20px; }
body[data-page="specialist-interface"] .physician-list th, body[data-page="specialist-interface"] .physician-list td { padding:12px; border-bottom:1px solid var(--color-neutral-light); text-align:left; }
body[data-page="specialist-interface"] .physician-list th { background-color:var(--color-secondary); color:var(--color-primary); }
body[data-page="specialist-interface"] .view-btn { background:var(--color-primary); color:white; border:none; padding:8px 14px; border-radius:6px; cursor:pointer; font-weight:600; display:inline-flex; align-items:center; gap:6px; }

/* Scrollable physician table */
body[data-page="specialist-interface"] .physician-list .table-scroll-container {
  max-height: 60vh;       /* scrollable height */
  overflow-y: auto;        /* vertical scroll only */
  overflow-x: hidden;      /* prevent horizontal scroll */
  border-radius: 8px;      
  background-color: #fff;  
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0;              
}

/* Table styling inside scroll container */
body[data-page="specialist-interface"] .physician-list .table-scroll-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

/* Sticky table header */
body[data-page="specialist-interface"] .physician-list .table-scroll-container thead {
  display: table-header-group;
}

body[data-page="specialist-interface"] .physician-list .table-scroll-container thead th {
  position: sticky;
  top: 0;                        /* sticks inside scroll container */
  background-color: var(--color-secondary);
  color: var(--color-primary);
  z-index: 5;
  padding: 12px;
  border-bottom: 1px solid var(--color-neutral-light);
}

/* Table cells */
body[data-page="specialist-interface"] .physician-list .table-scroll-container th, 
body[data-page="specialist-interface"] .physician-list .table-scroll-container td {
  padding: 12px; 
  border-bottom: 1px solid var(--color-neutral-light);
  text-align: left;
}

/* Make scroll container fill the parent .physician-list */
body[data-page="specialist-interface"] .physician-list .table-scroll-container {
  width: 100%;         /* fill the right half */
  box-sizing: border-box; /* include padding in width */
}

/* Optional shadow under sticky header */
body[data-page="specialist-interface"] .physician-list .table-scroll-container thead th::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  pointer-events: none;
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Centered modal content */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 25px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  min-height: 300px; /* ensures same vertical space as physician modal */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  color: var(--color-text);
  text-align: left;
}

/* Modal title to match physician_interface */
.modal-content h3 {
  color:var(--color-primary); /* same as physician_interface title color */
  margin-top: 0;
}

/* Close button */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* footer for specialist_interface — same as index.html */
body[data-page="specialist-interface"] footer {
  background: var(--color-secondary);
  text-align: center;
  padding: 24px 5vw;
  color: var(--color-primary);
  font-size: 0.9rem;
}

body[data-page="specialist-interface"] footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

body[data-page="specialist-interface"] footer a:hover {
  text-decoration: underline;
}

/* notification */
body[data-page="specialist-interface"] #notification { position:fixed; top:20px; left:50%; transform:translateX(-50%); padding:12px 24px; border-radius:6px; font-weight:600; display:none; z-index:2000; }
body[data-page="specialist-interface"] #notification.show { display:block; animation: fadeOut 3s forwards; }
body[data-page="specialist-interface"] #notification.success { background:#38b48f; color:#fff; }
body[data-page="specialist-interface"] #notification.error { background:#e74c3c; color:#fff; }
@keyframes fadeOut { 0%{opacity:1;} 80%{opacity:1;} 100%{opacity:0;} }

/* =========================================================
   PAGES: terms_of_service.html, disclaimer.html, privacy_policy.html
   ========================================================= */
body[data-page="terms-of-service"],
body[data-page="disclaimer"],
body[data-page="privacy-policy"] {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

/* -------------------------
   Header (same as other pages)
   ------------------------- */
body[data-page="terms-of-service"] header,
body[data-page="disclaimer"] header,
body[data-page="privacy-policy"] header {
  background-color: var(--primary);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

body[data-page="terms-of-service"] header img,
body[data-page="disclaimer"] header img,
body[data-page="privacy-policy"] header img {
  height: 50px;
  user-select: none;
}

/* -------------------------
   Main content container
   ------------------------- */
body[data-page="terms-of-service"] main,
body[data-page="disclaimer"] main,
body[data-page="privacy-policy"] main {
  max-width: 900px;
  margin: 50px auto;
  background-color: var(--white);
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

body[data-page="terms-of-service"] h1,
body[data-page="disclaimer"] h1,
body[data-page="privacy-policy"] h1 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

body[data-page="terms-of-service"] h2,
body[data-page="disclaimer"] h2,
body[data-page="privacy-policy"] h2 {
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

body[data-page="terms-of-service"] p,
body[data-page="disclaimer"] p,
body[data-page="privacy-policy"] p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Lists styling */
body[data-page="terms-of-service"] ul,
body[data-page="disclaimer"] ul,
body[data-page="privacy-policy"] ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

body[data-page="terms-of-service"] li,
body[data-page="disclaimer"] li,
body[data-page="privacy-policy"] li {
  margin-bottom: 10px;
}

/* Links in text */
body[data-page="terms-of-service"] a,
body[data-page="disclaimer"] a,
body[data-page="privacy-policy"] a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

body[data-page="terms-of-service"] a:hover,
body[data-page="disclaimer"] a:hover,
body[data-page="privacy-policy"] a:hover {
  text-decoration: underline;
}

/* Footer */
body[data-page="terms-of-service"] footer,
body[data-page="disclaimer"] footer,
body[data-page="privacy-policy"] footer {
  background-color: var(--color-secondary);
  text-align: center;
  padding: 20px 5vw;
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: 50px;
}

body[data-page="terms-of-service"] footer a,
body[data-page="disclaimer"] footer a,
body[data-page="privacy-policy"] footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

body[data-page="terms-of-service"] footer a:hover,
body[data-page="disclaimer"] footer a:hover,
body[data-page="privacy-policy"] footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width:700px){
  body[data-page="terms-of-service"] main,
  body[data-page="disclaimer"] main,
  body[data-page="privacy-policy"] main {
    padding: 25px 20px;
    margin: 30px 15px;
  }

  body[data-page="terms-of-service"] h1,
  body[data-page="disclaimer"] h1,
  body[data-page="privacy-policy"] h1 {
    font-size: 1.7rem;
  }

  body[data-page="terms-of-service"] h2,
  body[data-page="disclaimer"] h2,
  body[data-page="privacy-policy"] h2 {
    font-size: 1.2rem;
  }
}

/* =========================================================
   small global helpers used by multiple pages (non-conflicting)
   ========================================================= */
a { color: inherit; }

/* End of file */
