/* =========================================================
   NEXVOK — SHARED DESIGN SYSTEM
   Used by: index.html, appointment.html,
   appointment-history.html, patient-details.html
========================================================= */

:root {
  --brand: #0e7490;
  --brand-dark: #155e75;
  --brand-darker: #0c4a5e;
  --brand-light: #e0f7fa;
  --brand-soft: #ecfeff;
  --accent: #f59e0b;
  --accent-dark: #d97706;

  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-soft: #94a3b8;

  --bg: #f6f9fb;
  --surface: #ffffff;
  --border: #e2e8f0;

  --success: #15803d;
  --success-bg: #ecfdf3;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #b45309;
  --warning-bg: #fffbeb;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --font-head: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
}

a {
  color: inherit;
}

/* =================== BUTTONS =================== */

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.nx-btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.nx-btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.nx-btn-ghost {
  background: #ffffff;
  color: var(--brand);
  border: 1.5px solid var(--border);
}

.nx-btn-ghost:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-2px);
}

.nx-btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.nx-btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* =================== NAV =================== */

.nx-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-darker);
  text-decoration: none;
}

.nx-logo .nx-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.nx-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nx-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}

.nx-nav a:hover {
  color: var(--brand);
}

.nx-nav .nx-nav-cta {
  background: var(--brand);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 999px;
}

.nx-nav .nx-nav-cta:hover {
  background: var(--brand-dark);
}

/* =================== FOOTER =================== */

.nx-footer {
  background: #0b1120;
  color: #cbd5e1;
  padding: 48px 6% 28px;
}

.nx-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.nx-footer a:hover {
  color: #ffffff;
}

.nx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 28px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

/* =================== CARDS =================== */

.nx-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* =================== UTIL =================== */

.nx-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6%;
}

@media (max-width: 768px) {
  .nx-header {
    padding: 14px 5%;
  }
  .nx-nav {
    gap: 14px;
  }
}
