@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap");

:root {
  --bg-body: #0f0f0f;
  --accent: #d4e925;
  --accent2: #515a00;
  --bg-dim: #a0a0a0;
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
  --border: #333;
  --live-red: #ff0000;
  --btn-bg: #222;
}

* {
  box-sizing: border-box;
  outline: none;
}

body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: "Poppins", sans-serif !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Minimalist Scrollbar --- */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* --- Navigation & Ribbons --- */
.tab-group,
.date-scroller,
.channel-ribbon {
  display: flex;
  flex-shrink: 0;
  background: #000;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-group::-webkit-scrollbar,
.date-scroller::-webkit-scrollbar,
.channel-ribbon::-webkit-scrollbar {
  display: none;
}

.tab-group {
  padding: 10px;
  justify-content: center;
  gap: 8px;
}
.tab-btn {
  background: var(--btn-bg);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: "Poppins", sans-serif !important;
}
.tab-btn.active {
  background: var(--accent);
  color: #000;
}

.date-scroller,
.channel-ribbon {
  padding: 12px;
  gap: 12px;
}
.date-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  font-family: "Poppins", sans-serif !important;
}
.date-btn.active {
  background: #fff;
  color: #000;
}

.chan-card {
  min-width: 104px;
  height: 70px;
  background: #fff;
  border-radius: 6px;
  border: 2px solid transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chan-card.active {
  border-color: var(--accent);
  transform: scale(1.05);
}
.chan-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Schedule Container --- */
.schedule-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
  min-height: 300px;
}

/* --- Program Rows --- */
.prog-row {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid #1a1a1a;
  cursor: pointer;
  transition: 0.2s;
  opacity: 0.7;
}
.prog-row.is-live {
  opacity: 1;
  background: rgba(212, 233, 37, 0.05);
  border-left: 4px solid var(--accent);
}
.prog-row:hover,
.prog-row:focus {
  background: var(--accent) !important;
  opacity: 1;
}
.prog-row:hover *,
.prog-row:focus * {
  color: #000 !important;
}

.col-time {
  width: 70px;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.col-content {
  flex: 1;
  padding-left: 15px;
  border-left: 1px solid var(--border);
  min-width: 0;
}

.prog-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 4px;
  display: block;
}

/* Restored Badges */
.live-badge {
  background: var(--live-red);
  color: #fff !important;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 900;
  margin-right: 8px;
}

.info-row {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* --- Buttons Logic --- */
.col-action {
  display: flex;
  gap: 8px;
  margin-top: 10px; /* Stacks on mobile */
}

/* Base Style for Buttons */
.watch-btn,
.catchup-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  display: none;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.reminder-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.watch-btn {
  background: #ccff00;
  color: #000 !important;
}
.catchup-btn {
  background: #333;
  color: #fff !important;
  border: 1px solid #444;
}
.reminder-btn {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent2);
}

.reminder-btn:hover {
  background: var(--bg-dim);
  border: 1px solid var(--btn-bg);
}

/* --- Desktop/Tablet Overrides --- */
@media (min-width: 768px) {
  .prog-row {
    align-items: center;
    padding: 20px;
  }
  .col-time {
    width: 110px;
    font-size: 1rem;
  }
  .col-content {
    padding-left: 30px;
    border-left-width: 2px;
  }
  .prog-title {
    font-size: 1.2rem;
  }

  /* On desktop, put buttons on the right side */
  .col-action {
    margin-top: 0;
    width: 200px;
    justify-content: flex-end;
  }
}

/* Mobile specific wrapping fix */
@media (max-width: 767px) {
  .prog-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .col-content {
    flex-basis: calc(100% - 70px);
  }
  .col-action {
    flex-basis: 100%;
    padding-left: 85px; /* Aligns with content start */
    justify-content: flex-start;
  }
}

#loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  color: var(--accent);
}

.enable-notif-btn {
  background-color: var(--btn-bg);
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.enable-notif-btn:hover {
  background-color: var(--accent);
}

.tab-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #000000;
}

/* Notification Enable design */

/* --- Notification Pop-up Design --- */

/* Main Container Overlay */
.wzrk-alert.wiz-show-animate {
  background-color: #121212 !important; /* Dark background from design */
  border-radius: 16px !important;
  padding: 24px !important;
  max-width: 400px !important;
  border: 1px solid #333 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  font-family: "Poppins", sans-serif !important;
}

/* Heading - "Benarkan Notifikasi" */
.wzrk-alert-heading {
  color: #d4e925 !important; /* Accent yellow-green from design */
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
  text-align: left !important;
}

/* Body Text */
.wzrk-alert-body {
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin-bottom: 24px !important;
  text-align: left !important;
  opacity: 0.9 !important;
}

/* Button Container */
.wzrk-button-container {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

/* Base Button Styles */
.wzrk-button-container button {
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition:
    transform 0.2s,
    opacity 0.2s !important;
  border: none !important;
}

/* Cancel Button - "Tidak" */
#wzrk-cancel {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}

#wzrk-cancel:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Confirm Button - "Benarkan" */
#wzrk-confirm {
  background-color: #d4e925 !important; /* Matches "Yes, remind me" button */
  color: #000000 !important;
  font-weight: 700 !important;
}

#wzrk-confirm:hover {
  opacity: 0.9 !important;
  transform: scale(1.02) !important;
}
