:root {
  --primary: #00c8ff;
  --bg-dark: #0f172a;
  --card-bg: rgba(255,255,255,0.05);
  --text: #e2e8f0;
  --muted: #94a3b8;
}

/* GLOBAL TRANSITION */
* {
  transition: all 0.2s ease;
}

/* =========================
   GLOBAL
========================= */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: var(--text);
}

/* =========================
   NAVBAR
========================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 10000;
}

.brand {
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-right {
  position: relative;
}

/* =========================
   BUTTON
========================= */

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: black;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--primary);
}

/* =========================
   DROPDOWN
========================= */

.dropdown {
  position: absolute;
  right: 0;
  top: 45px;
  background: #102027;
  border-radius: 6px;
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 9999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.dropdown button {
  background: none;
  color: white;
  border: none;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.dropdown button:hover {
  background: rgba(255,255,255,0.1);
}

/* =========================
   DASHBOARD
========================= */
.dashboard {
  display: flex;
  min-height: 20vh;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #020617;
  padding: 20px;
}

.sidebar h2 {
  color: var(--primary);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 10px;
  cursor: pointer;
  color: var(--muted);
}

.sidebar li:hover {
  color: white;
}

/* MAIN */
.main {
  flex: 1;
  padding: 20px;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
}

/* =========================
   CARD
========================= */

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =========================
   LIST ROW
========================= */

.list-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}

/* =========================
   ALLERGY
========================= */

.allergy {
  color: #ff5252;
  font-weight: 600;
}

/* =========================
   VISIT
========================= */

.visit {
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
}

.visit-header {
  cursor: pointer;
  font-weight: bold;
}

/* =========================
   MODAL
========================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.modal-content {
  background: #1b2b34;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
}

.modal input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

/* =========================
   PRESCRIPTION
========================= */

.visit ul li {
  margin-bottom: 6px;
}

.visit small {
  opacity: 0.8;
  font-size: 0.85rem;

}
.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  margin-left: 6px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.7); }
  70% { box-shadow: 0 0 0 6px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* HERO BASE */
.hero {
  position: relative;
  height: 100vh;
  background: url('/images/klinik.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-message {
  position: fixed;   /* 🔥 ini kunci utama */
  top: 70px;         /* sesuaikan dengan tinggi navbar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;

  color: #00c8ff;
  font-size: 22px;
  font-weight: bold;
}

/* PARALLAX EFFECT */
.hero {
  background-attachment: fixed;
}

/* OVERLAY GLASS GRADIENT */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.7)
  );
  backdrop-filter: blur(0.01px);
  z-index: 1;  /* 🔥 penting */
}

/* CONTENT */
.hero-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 2;
}

/* TEXT GLOW */
.hero-content h1 {
  font-size: 3rem;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.hero-content p {
  margin: 10px 0 20px;
  opacity: 0.9;
}

/* BUTTON */
.btn-login {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* HOVER ANIMATION */
.btn-login:hover {
  background: #00c8ff;
  color: black;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,200,255,0.8);
}

/* SERVICES */

.services{
  text-align:center;
  margin-bottom:40px;
}

.service-grid{
  display:flex;
  justify-content:center;
  gap:25px;
  margin-top:20px;
}

.service-card{
  background:#1e1e1e;
  padding:25px;
  border-radius:12px;
  width:220px;
  transition:0.3s;
}

.service-card:hover{
  transform:translateY(-5px);
}

.icon{
  font-size:30px;
  margin-bottom:10px;
}


/* STATS */

.stats{
  display:flex;
  justify-content:center;
  gap:70px;
  margin:50px 0;
}

.stat h2{
  font-size:36px;
  color:#4cafef;
}


/* FOOTER */

.footer{
  text-align:center;
  margin-top:50px;
  opacity:0.8;

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

th, td {
  padding: 10px;
  text-align: left;
}

tr {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

tr:hover {
  background: rgba(255,255,255,0.05);
}
