*{box-sizing:border-box}body{font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;margin:0;background:#f3f6fb;color:#1f2937}
.container{max-width:1200px;margin:12px auto;padding:12px}
header{display:flex;flex-direction:column;align-items:center;margin-bottom:12px}
header h1{margin:0;font-size:28px;color:#064e3b}
.meta{font-size:13px;color:#475569}
.split{display:flex;gap:16px}
.left,.right{background:#fff;padding:12px;border-radius:8px;box-shadow:0 2px 8px rgba(2,6,23,0.06)}
.left{flex:1;min-height:360px}
.right{width:480px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
table{width:100%;border-collapse:collapse}
th,td{padding:8px;border-bottom:1px solid #e6edf3;text-align:left}
th{background:#064e3b;color:#fff}
.video-wrap{width:100%;text-align:center}
video{width:100%;max-height:360px;background:#000;border-radius:6px}
#video-title{margin-top:8px;font-weight:600}
footer{text-align:center;margin-top:12px;color:#667085;font-size:13px}
@media(max-width:900px){.split{flex-direction:column}.right{width:100%}}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: url('../img/logo.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  position: relative;
  min-height: 100vh;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  backdrop-filter: blur(6px);
}

header {
  text-align: center;
  padding: 10px 0;
  background: rgba(0, 50, 100, 0.7);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #e0f2ff;
}

.split {
  display: flex;
  flex: 1;
  gap: 20px;
  margin-top: 20px;
}

.left, .right {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 15px;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.left h2, .right h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #aee6ff;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 5px;
}

/* Tabel pasien */
#pasien-list table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

#pasien-list th, #pasien-list td {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
  text-align: left;
}

#pasien-list th {
  background: rgba(255,255,255,0.15);
  color: #e0f7ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#pasien-list tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

/* Warna status pasien */
.status-hijau { color: #00ff88; font-weight: 600; }
.status-kuning { color: #ffd500; font-weight: 600; }
.status-merah { color: #ff4d4d; font-weight: 600; }

/* Video */
.video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#edu-video {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

#video-title {
  margin-top: 10px;
  font-size: 1.2rem;
  text-align: center;
  color: #e0f2ff;
}

footer {
  text-align: center;
  padding: 10px;
  margin-top: 20px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  font-size: 0.9rem;
}

/* === MODE ADMIN === */
body.admin {
  background: #f4f6fa !important;
  color: #222 !important;
}

body.admin header {
  background: #004080;
  color: #fff;
}

body.admin a {
  color: #0066cc;
  text-decoration: none;
}
body.admin a:hover {
  text-decoration: underline;
}

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

body.admin th, body.admin td {
  border: 1px solid #ddd;
  padding: 8px;
  color: #222;
}

body.admin th {
  background: #0077b6;
  color: #fff;
}
.admin-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-nav .btn {
  background: linear-gradient(135deg, #007bff, #00b4d8);
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-nav .btn:hover {
  background: linear-gradient(135deg, #0056b3, #0077b6);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-nav .btn.logout {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.admin-nav .btn.logout:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
}
    /* Running Text Smooth di Bawah */
    .running-container {
      width: 100%;
      overflow: hidden;
      background: linear-gradient(90deg, #1e3a8a, #3b82f6);
      padding: 14px 0;
      color: white;
      position: fixed;
      bottom: 0;
      left: 0;
      z-index: 9999;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
    }

    .running-text {
      display: inline-block;
      white-space: nowrap;
      font-size: 22px;
      font-weight: 600;
      animation: scroll 32s linear infinite;
    }

    @keyframes scroll {
      from { transform: translateX(100%); }
      to { transform: translateX(-100%); }
    }
    .sosmed-icons {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

/* Item: Icon + Caption */
.sosmed-item {
  text-align: center;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}

/* Icon SVG */
.icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 14px;
  fill: white;
  display: block;
  margin: 0 auto 5px;
  transition: 0.25s;
}

/* Warna platform */
.icon.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc3a7b, #cc2366, #bc1888);
}
.icon.tiktok {
  background: #111;
}
.icon.web {
  background: #2563eb;
}
.icon.fb {
  background: #1877f2;
}

/* Hover */
.sosmed-item:hover .icon {
  transform: scale(1.12);
  opacity: 0.9;
}
.title-igd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;           /* jarak antara logo dan teks */
}

.logo-mini {
  width: 35px;         /* ukuran kecil seperti caption */
  height: 35px;
  object-fit: contain;
}
