* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100vw;
  height: 100vh;
  background-color: #0b1329; /* Dark Navy Premium */
  color: #ffffff;
  overflow: hidden; /* Mencegah scrollbar muncul di TV */
}

/* ================= HEADER ================= */
.header {
  height: 12vh;
  background: linear-gradient(90deg, #1e3a8a, #0284c7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid #f59e0b; /* List Kuning/Emas */
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.brand-text p {
  font-size: 0.85rem;
  color: #fef08a; /* Soft Yellow */
  font-weight: 500;
}

.datetime {
  text-align: right;
}

#clock {
  font-size: 1.8rem;
  font-weight: 700;
  color: #38bdf8;
}

#date {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ================= MAIN LAYOUT ================= */
.main-container {
  height: 80vh;
  padding: 1.2rem 1.5rem;
  display: grid;
  grid-template-columns: 2.2fr 1fr; /* Kiri besar, Kanan pas */
  gap: 1.5rem;
}

.card {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ================= SLIDER KIRI ================= */
.slider-card {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2rem 1.5rem 2rem;
  background: linear-gradient(transparent, rgba(11, 19, 41, 0.95));
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 10;
}

/* ================= SIDEBAR KANAN (DISEUSAIKAN) ================= */
.side-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  overflow: hidden; /* Anti-overflow */
}

/* Card Statistik atas */
.stat-card {
  flex: 0 0 auto;
  padding: 1rem 1.2rem;
}

/* Card Agenda bawah */
.agenda-card {
  flex: 1; /* Mengisi sisa ruang tanpa terpotong */
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

h2 {
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 0.6rem;
  border-bottom: 2px solid #334155;
  padding-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid Statistik */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.stat-item {
  background: #0f172a;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #1e293b;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* List Agenda */
.agenda-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  height: 100%;
}

.agenda-list li {
  background: #0f172a;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-left: 4px solid #f59e0b;
  flex: 1; /* Terbagi rata otomatis */
}

.badge {
  background: #0284c7;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge.diklat { background: #10b981; }
.badge.warning { background: #ef4444; }

/* ================= TICKER FOOTER ================= */
.footer {
  height: 8vh;
  background: #070a12;
  display: flex;
  align-items: center;
  border-top: 2px solid #f59e0b;
  position: relative;
  z-index: 50; /* Selalu berada di paling depan */
}

.ticker-title {
  background: #ef4444;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 60;
  letter-spacing: 1px;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 500;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}