/* Import Montserrat font dari Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* ====== Variabel Warna (Root CSS) ====== */
:root {
  --color-background: #222;
  --color-foreground: #fff;

  --color-primary: #ffc107;
  --color-secondary: #f39c12;
  --color-blackpearl: #2b333d;
  --color-primary-dark: #e0a800;
  --color-primary-light: #ffe082;

  --color-danger: #dc3545;
  --color-success: #28a745;
  --color-info: #17a2b8;

  --color-dark: #111;
  --color-light: #f8f9fa;
  --color-muted: #6c757d;

  --color-border: #333;
  --shadow-soft: 0 2px 4px rgba(0,0,0,0.3);
}

/* ====== Base Styles ====== */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-background);
  color: var(--color-foreground);
}

main {
  flex: 1; /* Mengisi ruang kosong antara header dan footer */
}
/* ====== Navbar Login ====== */
.navbar-login {
  background-color: var(--color-dark);
  color: var(--color-foreground);

  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ====== Navbar Menu Utama ====== */
.navbar-mainmenu {
  background-color: var(--color-blackpearl);
  color: var(--color-foreground);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;

  position: sticky;
  top: 48px; /* posisinya tepat di bawah login bar */
  z-index: 1039;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.navbar-mainmenu a {
  color: var(--color-foreground);
  text-decoration: none;
  font-size: 16px;
}

.navbar-mainmenu a .fas {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
  color: var(--color-foreground);
}

.menu-icon-svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 5px;
  display: block;
  transition: transform 0.3s ease;
}

.navbar-mainmenu a:hover .menu-icon-svg {
  transform: scale(1.1); /* efek zoom saat hover */
}

/* Hover Menu Utama */
.navbar-mainmenu a:hover,
.navbar-mainmenu a:focus {
  color: var(--color-primary);
}

/* ====== Menu Scroll Mobile ====== */
.menu-scroll-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 10px;
  margin: 0 -10px;
  scrollbar-width: none; /* Firefox */
}
.menu-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
.menu-scroll-row {
  display: inline-flex;
  gap: 1rem;
  padding-bottom: 5px;
}
.menu-item {
  display: inline-block;
  text-align: center;
}
.menu-item img.menu-icon-svg {
  width: 50px;
  height: 50px;
  margin-bottom: 4px;
}

/* ====== Tombol Mobile Toggle ====== */
#mobileMenuToggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1051;
  width: 44px;
  height: 44px;
  background-color: var(--color-secondary);
  color: var(--color-foreground);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 20px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#mobileMenuToggle i {
  line-height: 1;
}

#mobileMenuToggle .fa-xmark {
  font-size: 20px;
}


/* ====== SideDrawer Menu ====== */
#sideDrawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-dark);
  color: var(--color-foreground);
  z-index: 1050;
  overflow-y: auto;
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 0 8px rgba(0,0,0,0.6);
}

#sideDrawer.active {
  right: 0;
}

#sideDrawer .header {
  background-color: var(--color-primary-dark);
  text-align: center;
  padding: 20px 15px;
}

#sideDrawer .header img {
  max-width: 120px;
  margin: 10px 0;
}

#sideDrawer .menu-item {
  padding: 15px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  font-size: 16px;
}

#sideDrawer .menu-item i {
  margin-right: 10px;
}

#sideDrawer .header button {
  margin: 5px;
}

#sideDrawer a {
  color: var(--color-muted);
  text-decoration: underline;
}
#sideDrawer .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0; /* Hapus padding kiri/kanan agar border full */
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  color: var(--color-foreground);
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

#sideDrawer .menu-item i {
  font-size: 18px;
  width: 30px; /* agar sejajar */
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  margin-left: 18px; /* geser ke dalam */
}

#sideDrawer .menu-item span {
  display: inline-block;
  flex-grow: 1;
  line-height: 1.3;
}


#sideDrawer .menu-item:hover {
  background-color: #333;
  color: var(--color-primary);
}


/* ====== Responsive ====== */
@media (max-width: 768px) {
  #mobileMenuToggle {
    display: block;
  }

  #sideDrawer {
    display: block;
  }
}

/* ====== Scroll Menu Horizontal Mobile ====== */
.menu-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  cursor: grab;
  white-space: nowrap;
}

.menu-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
.menu-scroll-wrapper {
  scrollbar-width: none;
}

.menu-scroll-wrapper.dragging {
  cursor: grabbing;
  user-select: none;
}

.menu-scroll-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0 1rem;
}

.menu-item {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
}
.carousel-inner img {
  object-fit: cover;
  max-height: 400px;
}

@media (max-width: 768px) {
  .carousel-inner img {
    max-height: 200px;
  }
}
.announcement-bar {
  background-color: #1d232b; /* latar belakang luar */
  padding: 8px;
}

.announcement-container {
  background: linear-gradient(to right, #2c343f, #1f272f);
  border-radius: 8px;
  color: #ffffff;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 12px; /* Tambahkan jarak ke bawah */
}

.announcement-container i {
  color: #fff;
}
/* === Mobile Bottom Nav === */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #1d2227, #111418); /* Sesuai top menu */
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  z-index: 9999;
  padding-bottom: 5px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.mobile-bottom-nav .nav-item i {
  font-size: 18px;
  margin-bottom: 3px;
  color: #ffc107;
  display: block;
}

.mobile-bottom-nav .nav-item span {
  display: block;
}

/* === Center Floating Icon === */
.mobile-bottom-nav .center-icon {
  position: relative;
  margin-top: -30px;
  text-align: center;
}

.mobile-bottom-nav .center-icon .circle-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(to bottom, #2a2f35, #111418);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.mobile-bottom-nav .center-icon .circle-icon i {
  font-size: 24px;
  color: #ffc107;
  margin: 0;
}

.mobile-bottom-nav .center-icon .center-label {
  margin-top: 6px;
  font-size: 12px;
  color: #fff;
  display: block;
}

/* === Responsive Menu Icon (Mobile) === */
@media (max-width: 576px) {
  .menu-scroll-row {
    gap: 6px;
    padding: 0 0.5rem;
  }

  .menu-item {
    width: 58px;
  }

  .menu-icon-svg {
    width: 38px;
    height: auto;
    margin-bottom: 2px;
  }

  .menu-item div {
    font-size: 11px;
    font-weight: 600; /* ✔ Tebalkan font */
    letter-spacing: 0.3px; /* ✔ Tambahkan jarak antar huruf */
    line-height: 1.2; /* ✔ Supaya tidak terlalu rapat vertikal */
  }
}


@media (max-width: 576px) {
  .announcement-bar {
    padding: 4px;
    margin-bottom: 10px;
  }

  .announcement-bar .d-flex {
    padding: 4px 8px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }

  .announcement-bar .fa-volume-up {
    font-size: 14px !important;
    margin-right: 6px !important;
  }

  .announcement-bar marquee {
    font-size: 12px !important;
  }
}

@font-face {
  font-family: 'AdvancedDotDigital';
  src: url('/assets/fonts/advanced_dot_digital-7-webfont.woff2') format('woff2'),
       url('/assets/fonts/advanced_dot_digital-7-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.jackpot-section {
  background: none !important;
  padding: 10px;
  border-radius: 10px;
}

.jackpot-wrapper {
  position: relative;
  display: inline-block;
}

.jackpot-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.jackpot-amount {
  position: absolute;
  top: 63%; /* sedikit lebih ke bawah */
  left: 50%;
  transform: translate(-50%, -50%);
}

#jackpotValue {
  font-family: 'AdvancedDotDigital', monospace !important;
  font-size: 2.6rem !important;
  color: #ffd700;
  text-shadow: 2px 2px 4px #000;
  line-height: 1;
  font-weight: bold;
}
@media (max-width: 768px) {
  #jackpotValue {
    font-size: 3.0vw !important; /* responsif fleksibel */
  }

  .jackpot-amount {
    top: 60%; /* sesuaikan tengah vertikal */
  }
}

@media (max-width: 480px) {
  #jackpotValue {
    font-size: 3.0vw !important;
  }

  .jackpot-amount {
    top: 68%;
  }
}
.w-45 {
  width: 45%;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === ANIMASI SLIDE UP === */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}
.table-fade-row {
  animation: slideUpFade 0.5s ease;
}

/* === TABEL MODERN === */
.table-modern {
  background-color: #2d323c !important;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

/* HEADER TABEL */
.table-modern thead {
  background-color: #1d232b !important;
  color: #ffffff !important;
  font-weight: 600;
  border-bottom: 1px solid #2d323c;
}

/* ISI TABEL */
.table-modern tbody tr {
  background-color: #2d323c !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-modern td {
  background-color: #2d323c !important;
}

.table-modern td,
.table-modern th {
  padding: 10px 12px;
  vertical-align: middle;
  border: none !important;
}

/* === BADGE STATUS === */
.table-modern .badge {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 8px;
  font-weight: bold; /* Diubah dari 500 ke bold */
}

/* === CARD WRAPPER === */
.modern-card {
  background-color: #1d232b !important;
  border: 3px solid #1d232b !important;
  border-radius: 10px !important;
  overflow: hidden;
}

/* HEADER CARD */
.modern-card .card-header {
  background-color: #1d232b !important;
  border-bottom: 1px solid #2d323c !important;
  color: #ffffff;
  padding: 10px 15px;
  font-weight: bold;
}

/* BODY CARD */
.modern-card .card-body {
  padding: 0 !important;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 767.98px) {
  .table-modern td,
  .table-modern th {
    padding: 8px 10px;
  }
}
.togel-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.result-box {
  background-color: #2d333c;
  border: 2px solid #1d232b;
  border-radius: 15px;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  color: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

.result-box .region {
  font-size: 13px;
  margin-bottom: 5px;
}

.result-box .number {
  background-color: #f5a623;
  color: white;
  font-size: 24px;
  border-radius: 10px;
  padding: 6px 12px;
}
.togel-date {
  font-size: 13px;
  color: #ccc;
  margin-top:7px;
}
/* CARD FORM REGISTER DARK MODE */
.form-register-card {
  background-color: #2d323c !important;
  color: #fff;
  border-radius: 10px;
  border: 5px solid #1d232b;
  padding: 20px;
}

.form-register-card .card-header {
  background-color: #2d323c !important;
  border-bottom: 1px solid #1d232b;
  color: #ffc107;
  font-weight: bold;
  font-size: 18px;
}

.form-register-card label {
  color: #fff;
}

.form-register-card .form-control,
.form-register-card .form-select {
  background-color: #1d232b;
  color: #fff;
  border: 1px solid #444;
}

.form-register-card .form-control::placeholder {
  color: #aaa;
}

.form-register-card .input-group-text {
  background-color: #1d232b;
  color: #ffc107;
  border: 1px solid #444;
}

.form-register-card .form-control:focus,
.form-register-card .form-select:focus {
  background-color: #1d232b;
  color: #fff;
  border-color: #ffc107;
  box-shadow: none;
}

.form-register-card .btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
  font-weight: bold;
}

.form-register-card .btn-outline-warning {
  color: #ffc107;
  border-color: #ffc107;
}

.form-register-card .btn-outline-warning:hover {
  background-color: #ffc107;
  color: #000;
}
.footer-wrapper {
  margin-top: 40px;
}

/* Bagian atas */
.footer-top {
  background-color: #2d323c;
}


/* Bagian copyright */
.footer-bottom {
  background-color: var(--color-dark);
  font-size: 0.875rem;
}

/* Link footer */
.footer-link {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  transition: all 0.2s ease-in-out;
}

.footer-link:hover {
  color: #ffc107;
  text-decoration: underline;
}
/* Tambahan khusus mobile agar footer tidak tertutup bottom nav */
@media (max-width: 768px) {
  .footer-wrapper {
    padding-bottom: 60px; /* Sesuaikan dengan tinggi bottom nav kamu */
  }
}
@media (max-width: 768px) {
  .footer-bottom .copyright-text {
    display: flex;
    justify-content: flex-start;
    padding-left: 15px;
  }
}

/* ===== Kartu Provider ===== */
.provider-card {
  background-color: #1e232b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.provider-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* ===== Gambar kotak penuh ===== */
.provider-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.provider-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.provider-card:hover .provider-logo {
  transform: scale(1.05);
}

/* ===== Nama provider seperti tombol ===== */
.provider-name {
  background-color: #ffc107;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  padding: 12px 0;
  margin: 0;
  width: 100%;
  border-radius: 0 0 16px 16px;
  letter-spacing: 0.3px;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
  line-height: 1.3;
}

/* ✨ Animasi shimmer aktif semua layar */
.provider-name::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* ===== Overlay Maintenance ===== */
.maintenance-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 16px;
}

/* ===== Responsive Mobile Fix ===== */
@media (max-width: 576px) {
  .provider-name {
    font-size: 0.78rem;
    padding: 8px 6px;
    line-height: 1.2;
  }

  .provider-card {
    border-radius: 12px;
  }
}
