/* =========================================
   1. FONT OFFLINE (WAJIB DI PALING ATAS)
   ========================================= */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
}

/* =========================================
   2. VARIABLES & RESET
   ========================================= */
:root {
  /* MODE TERANG (ASLI) */
  --topbar-bg: #94a3b8;
  --header-bg: #475569;
  --accent: #fcd34d; /* Emas (Warna Khas NU) */
  --text-white: #ffffff;
  --body-bg: #f1f5f9;
  --text-main: #334155;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

  /* Footer Colors */
  --footer-bg: #1e293b;
  --footer-text: #cbd5e1;

  /* Navigasi Bawah HP */
  --bottom-nav-bg: #ffffff;
}

/* --- MODE GELAP (NU ELEGANT THEME) --- */
[data-theme="dark"] {
  --body-bg: #051a0f;
  --text-main: #e2e8f0;
  --header-bg: #0b291a;
  --topbar-bg: #021208;
  --glass-bg: rgba(11, 41, 26, 0.9);
  --glass-border: rgba(252, 211, 77, 0.1);
  --footer-bg: #020f06;
  --bottom-nav-bg: #0b291a;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

  /* Bootstrap 5 Native Variable Sync */
  --bs-body-bg: #051a0f;
  --bs-body-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  transition: all 0.4s ease;
  padding-top: 100px;
  padding-bottom: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Penyesuaian agar tidak merusak container bawaan Bootstrap 5 */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px; /* Standar Bootstrap padding */
}

/* =========================================
   3. TOP BAR
   ========================================= */
#top-bar {
  background-color: var(--topbar-bg);
  height: 30px;
  display: flex;
  align-items: center;
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  transition: background-color 0.4s ease;
}

.top-bar-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tb-socials {
  display: flex;
  gap: 15px;
}

.tb-socials a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.tb-socials a:hover {
  color: var(--accent);
}

/* =========================================
   4. HEADER UTAMA (ALIGNMENT FIXED)
   ========================================= */
header {
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  color: var(--text-white);
  padding: 0.6rem 0;
  z-index: 1000;
  border-radius: 0 0 100px 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled {
  top: 0;
  padding: 0.5rem 0;
  border-radius: 0 0 60px 60px;
  background: var(--header-bg);
  opacity: 0.98;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.2rem;
  color: var(--text-white);
  line-height: 0;
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.logo-text p {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-top: 3px;
  line-height: 1;
  margin-bottom: 0;
}

.desktop-nav .nav-links {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 5px 15px;
  height: 35px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 120px;
}

.search-box button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.partner-logos img {
  height: 35px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s;
  margin: 0;
  display: block;
}

.partner-logos img:hover {
  opacity: 1;
  transform: scale(1.1);
}

#hamburger-btn,
.hamburger {
  display: none;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  margin-left: 15px;
  z-index: 1001;
}

#scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s linear;
  box-shadow: 0 2px 8px rgba(252, 211, 77, 0.6);
  border-radius: 0;
}

header.scrolled #scroll-progress {
  border-radius: 0;
}

/* =========================================
   5. MOBILE MENU & DROPDOWN
   ========================================= */
.mobile-menu-dropdown {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--header-bg);
  display: flex;
  flex-direction: column;
  padding: 80px 20px 20px;
  transition: right 0.4s ease;
  z-index: 1100;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu-dropdown.active {
  right: 0;
}

.mobile-menu-dropdown a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
}

.btn-login-mobile {
  background: var(--accent);
  color: var(--header-bg) !important;
  text-align: center;
  border-radius: 8px;
  margin-top: 20px;
  border: none !important;
  padding: 12px !important;
}

.mobile-parent {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-sub-links {
  display: none;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  margin-bottom: 5px;
  border-radius: 5px;
}

.mobile-sub-links.open {
  display: flex !important;
}

.mobile-sub-links a {
  padding-left: 40px !important;
  font-size: 0.9rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
}

/* =========================================
   6. DROPDOWN DESKTOP
   ========================================= */
.dropdown-parent {
  position: relative;
}

.dropdown-parent i {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s;
}

.dropdown-parent:hover i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background-color: var(--header-bg);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: block;
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-white);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  padding-left: 25px;
}

.dropdown-menu li a::after {
  display: none;
}

/* =========================================
   7. CONTENT CARDS & LAYOUT
   ========================================= */
.section-gap {
  margin-bottom: 20px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.glass-card:hover {
  transform: translateY(-5px);
}

/* Hero Section */
.hero,
.main-slider,
.hero-slide {
  height: 300px !important;
  min-height: 300px !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: 300px;
}

.hero-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 30px;
}

.main-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.slider-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding-left: 50px;
  color: white;
  max-width: 600px;
  animation: slideUp 1s ease forwards;
}

.slide-content h4 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content span {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffd700;
  display: block;
  margin-bottom: 10px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* Greeting */
.greeting-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* Quick Menu */
.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.qm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 15px;
  border-radius: 15px 0 15px 0;
  color: white;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

.qm-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.qm-item i {
  font-size: 1.8rem !important;
  margin-bottom: 8px;
}

.qm-item,
.qm-item span,
.qm-item div {
  font-size: 0.65rem !important;
  line-height: 1.2;
  font-weight: 600;
}

.qm-item.red {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.qm-item.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.qm-item.purple {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
}
.qm-item.green {
  background: linear-gradient(135deg, #22c55e, #15803d);
}
.qm-item.dark {
  background: linear-gradient(135deg, #334155, #0f172a);
}
.qm-item.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Layout Utama Kaca & Berita */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 15px;
  align-items: start;
}

.main-content-area {
  min-width: 0;
  width: 100%;
}

.sidebar-area {
  width: 100%;
  max-width: 300px;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-left: 4px solid #dc2626;
  padding-left: 15px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.news-card.big img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.nc-content {
  padding: 20px;
}

.small-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  align-items: center;
  margin-bottom: 10px;
}

.small-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.sc-info .cat {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.text-red {
  color: #dc2626;
}

/* Sub Grid & Sidebar Content */
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vertical-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.vc-content {
  padding: 15px;
}

.tag-text {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.vc-content h4 {
  margin: 8px 0;
  font-size: 1rem;
}

.widget {
  padding: 25px;
  margin-bottom: 10px;
}

.widget-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.newsletter-form button {
  padding: 10px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fff;
}

.fb {
  background: #1877f2;
}
.tw {
  background: #1da1f2;
}
.ig {
  background: #e1306c;
}
.yt {
  background: #ff0000;
}

.trending-item {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.trending-item img {
  border-radius: 6px;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 60px;
  margin-top: 80px;
  padding-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.brand-col h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.brand-col span {
  color: #8e7171;
}

.brand-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  transition: 0.3s;
}

.footer-socials a:hover {
  background: #a77d7d;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #ceb3b3;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: #a98585;
  padding-left: 5px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-cloud a:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =========================================
   9. BUTTONS, REPOSITORY & TABLES
   ========================================= */
.btn-custom {
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.btn-red {
  background-color: #dc2626;
  color: white;
}
.btn-blue {
  background-color: #2563eb;
  color: white;
}
.btn-outline-small {
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-align: center;
  width: fit-content;
}
.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
}

.repo-container {
  padding: 10px 0;
}

.glass-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.glass-header h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  font-size: 1.5rem;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.custom-table th {
  text-align: left;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 2px solid var(--glass-border);
}

.custom-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  vertical-align: top;
}

.custom-table tr:hover td {
  background-color: rgba(252, 211, 77, 0.1);
}

[data-theme="dark"] .custom-table th {
  background-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .custom-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-box {
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid #2563eb;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: var(--text-main);
}
[data-theme="dark"] .meta-box {
  background: rgba(37, 99, 235, 0.2);
  color: #e2e8f0;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .sidebar-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-list li a {
  display: flex;
  justify-content: space-between;
  padding: 12px 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}
.sidebar-list li a:hover {
  color: #dc2626;
  padding-left: 8px;
}

.badge-count {
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* =========================================
   10. MOBILE FLOATING & BOTTOM NAV DEFAULT
   ========================================= */
.mobile-bottom-nav,
.mobile-sidebar,
.menu-overlay {
  display: none !important; /* PC/Tablet: Hidden */
}

.center-btn .center-icon {
  width: 50px;
  height: 50px;
  background: var(--header-bg);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -30px;
  border: 4px solid var(--body-bg);
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.floating-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.float-btn.primary {
  background: var(--header-bg);
  color: var(--accent);
}
.float-btn.secondary {
  background: var(--accent);
  color: var(--header-bg);
}
.float-btn.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* =======================================================
   11. RESPONSIVE MOBILE FIXES (HP SAJA - MAX 767px)
   ======================================================= */
@media (max-width: 767px) {
  /* Dihapus !important padding di container agar tidak kaku */
  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header Adjustments - DIBUAT LEBIH TIPIS */
  header {
    padding: 0;
    border-radius: 0 0 25px 25px;
  }

  header.scrolled {
    padding: 0;
  }

  /* Perbaikan class obsolete BS3/4 (.navbar-toggle dll) menjadi BS5 */
  .desktop-nav,
  .search-box,
  .partner-logos,
  .navbar-toggler {
    display: none !important;
  }

  #hamburger-btn,
  .hamburger {
    display: flex !important;
    font-size: 1.8rem;
    color: var(--text-white);
    z-index: 1200;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-container {
    justify-content: center;
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: auto;
  }

  .logo-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .logo-icon {
    font-size: 1.8rem !important;
  }

  .logo-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .logo-text h1 {
    font-size: 1.2rem !important;
  }

  /* Layout Konten Tumpuk 1 Kolom */
  .content-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar-area {
    max-width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 20px;
  }

  .hero,
  .main-slider,
  .hero-slide {
    height: 180px !important;
    min-height: 180px !important;
    width: 100%;
  }

  .greeting-card {
    margin-top: 0;
  }
  .quick-menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .sub-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  footer {
    padding-bottom: 90px;
  }
  .section-gap {
    margin-bottom: 30px;
  }
  .floating-container {
    bottom: 90px;
    right: 15px;
  }

  /* Tampilkan Navigasi Bawah & Sidebar Pop-up Mobile */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    transition:
      background-color 0.3s ease,
      border-color 0.3s ease;
  }

  .mb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 0.7rem;
    gap: 5px;
    opacity: 0.6;
    width: 20%;
    transition: color 0.3s ease;
  }

  .mb-item i {
    font-size: 1.3rem;
  }
  .mb-item.active,
  .mb-item:hover {
    color: var(--accent);
    opacity: 1;
  }

  /* Dark Mode Mobile Bottom Nav */
  [data-theme="dark"] .mobile-bottom-nav {
    background-color: #1b262c !important;
    border-top: 1px solid #2c3e50 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  }
  [data-theme="dark"] .mb-item {
    color: #d1d5db !important;
  }
  [data-theme="dark"] .mb-item:hover,
  [data-theme="dark"] .mb-item.active {
    color: #ffffff !important;
  }

  /* Mobile Sidebar Pop-Up */
  .mobile-sidebar {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
  }

  .mobile-sidebar.active {
    bottom: 90px;
    opacity: 1;
    visibility: visible;
  }

  [data-theme="dark"] .mobile-sidebar {
    background: #1b262c !important;
    border: 1px solid #2c3e50;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9990;
    display: none;
    backdrop-filter: blur(2px);
  }

  .menu-overlay.active {
    display: block !important;
  }

  .sidebar-header {
    padding: 15px 20px;
    background: #1b262c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-menu {
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    max-height: 50vh;
  }

  .sidebar-menu li {
    border-bottom: 1px solid #eee;
  }

  .sidebar-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
  }

  .sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #666;
  }

  [data-theme="dark"] .sidebar-link {
    color: #d1d5db !important;
    border-bottom: 1px solid #2c3e50 !important;
  }

  [data-theme="dark"] .sidebar-link i {
    color: #9ca3af !important;
  }
  [data-theme="dark"] ul[id^="sub-"] {
    background: #151e23 !important;
  }
}

/* Tambahan CSS untuk Sub-menu Sidebar */
.submenu-list {
  display: none;
  list-style: none;
  padding-left: 20px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 2px solid var(--accent);
  margin-top: 5px;
}
[data-theme="dark"] .submenu-list {
  background: rgba(255, 255, 255, 0.02);
}
.submenu-list li a {
  padding: 8px 10px !important;
  font-size: 0.85rem !important;
  color: var(--text-main);
  border-bottom: none !important;
}
.submenu-list li a:hover {
  color: #dc2626;
}
.has-submenu {
  cursor: pointer;
}
.has-submenu .toggle-icon {
  transition: transform 0.3s;
}
.has-submenu.open .toggle-icon {
  transform: rotate(180deg);
}

/* =========================================
   12. RESPONSIVE TABLE FIX
   ========================================= */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* =======================================================
   13. BOOTSTRAP 5 DARK MODE OVERRIDES (UPDATE TERBARU)
   Menggunakan CSS Variables native Bootstrap 5 agar tidak bentrok
   ======================================================= */
/* =========================================
   FIX: TEMA TERANG UNTUK CARD & TABEL
========================================= */

/* Memaksa Card menjadi putih saat bukan mode gelap */
html:not([data-theme="dark"]) .card,
body:not([data-theme="dark"]) .card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

html:not([data-theme="dark"]) .card-header,
body:not([data-theme="dark"]) .card-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html:not([data-theme="dark"]) .card-title,
body:not([data-theme="dark"]) .card-title {
  color: #1e293b !important;
  font-weight: 700;
}

/* Memaksa Tabel menjadi putih saat bukan mode gelap */
html:not([data-theme="dark"]) .table,
body:not([data-theme="dark"]) .table {
  border-color: #e2e8f0 !important;
}

html:not([data-theme="dark"]) .table th,
html:not([data-theme="dark"]) .table td,
body:not([data-theme="dark"]) .table th,
body:not([data-theme="dark"]) .table td {
  background-color: #ffffff !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

/* Memperbaiki warna efek zebra (striped) di tema terang */
html:not([data-theme="dark"]) .table-striped tbody tr:nth-of-type(odd) td,
body:not([data-theme="dark"]) .table-striped tbody tr:nth-of-type(odd) td {
  background-color: #f8fafc !important; /* Abu-abu sangat muda */
}

/* Memperbaiki warna efek hover di tema terang */
html:not([data-theme="dark"]) .table-hover tbody tr:hover td,
body:not([data-theme="dark"]) .table-hover tbody tr:hover td {
  background-color: #f1f5f9 !important; /* Abu-abu agak gelap sedikit saat kursor diletakkan */
}

/* 1. Mendaftarkan Variabel Bootstrap ke Tema Anda */
[data-theme="dark"] {
  --bs-card-bg: rgba(11, 41, 26, 0.4);
  --bs-card-border-color: rgba(255, 255, 255, 0.1);
  --bs-card-color: var(--text-main);

  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(252, 211, 77, 0.1);

  --bs-pagination-bg: var(--header-bg);
  --bs-pagination-border-color: rgba(255, 255, 255, 0.1);
  --bs-pagination-color: var(--text-main);
  --bs-pagination-hover-bg: rgba(220, 38, 38, 0.1);
  --bs-pagination-hover-color: #dc2626;
  --bs-pagination-active-bg: var(--accent);
  --bs-pagination-active-border-color: var(--accent);
  --bs-pagination-active-color: var(--header-bg);
  --bs-pagination-disabled-bg: rgba(0, 0, 0, 0.2);
  --bs-pagination-disabled-color: #6c757d;
}

/* 2. Fix Card Bootstrap 5 di Dark Mode */
[data-theme="dark"] .card {
  background-color: var(--bs-card-bg) !important;
  border: 1px solid var(--bs-card-border-color) !important;
  color: var(--bs-card-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer {
  background-color: transparent !important;
  border-bottom: 1px solid var(--bs-card-border-color) !important;
  border-top: 1px solid var(--bs-card-border-color) !important;
}

/* 3. DataTables Fixes di Bootstrap 5 Dark Mode */
[data-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-theme="dark"] .dataTables_wrapper .dataTables_filter input {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--text-main) !important;
  border-radius: 5px;
  padding: 4px 8px;
}

/* Mengatur body agar menggunakan flexbox secara vertikal */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Minimal tinggi layar penuh */
  margin: 0;
}

/* Memaksa area konten utama untuk meregang dan mengisi ruang kosong */
.main-wrapper {
  flex: 1 0 auto;
}

/* Memastikan footer tidak mengecil */
footer {
  flex-shrink: 0;
}
/* =========================================
   1. DEFINISI WARNA (LIGHT & DARK MODE)
   ========================================= */

/* TEMA TERANG (LIGHT MODE - Default) */
:root {
  --bg-body: #f4f6f9; /* Warna abu-abu terang bawaan dashboard admin */
  --bg-card: #ffffff; /* Warna box/card putih */
  --text-main: #212529; /* Warna teks utama (hitam/abu gelap) */
  --text-muted: #6c757d; /* Warna teks pudar */
  --border-color: #dee2e6; /* Warna garis tepi */

  /* Tabel spesifik */
  --table-header-bg: #e9ecef;
  --table-header-text: #212529;
  --table-row-hover: #f1f3f5;
  --input-bg: #ffffff;
}

/* TEMA GELAP (DARK MODE) */
[data-theme="dark"] {
  --bg-body: #0a1711; /* Warna hijau SANGAT gelap (seperti area luar dashboard) */
  --bg-card: #122b1e; /* Warna kotak/card (hijau gelap sedikit lebih terang) */
  --text-main: #e0e0e0; /* Warna teks (putih abu-abu agar tidak sakit di mata) */
  --text-muted: #a0a0a0;
  --border-color: #1f422e; /* Garis pembatas hijau gelap */

  /* Tabel spesifik */
  --table-header-bg: #0b1a13; /* Header tabel di mode gelap */
  --table-header-text: #ffffff;
  --table-row-hover: #183827; /* Saat baris tabel disorot mouse */
  --input-bg: #122b1e;
}

/* =========================================
   2. PENERAPAN KE LAYOUT UTAMA & KOTAK (CARD)
   ========================================= */

body {
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Target semua kotak putih/hijau gelap (Card, Wrapper, Box) */
.card,
.card-body,
.content-wrapper,
.box-header,
.box-body {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

/* =========================================
   3. PERBAIKAN TOTAL UNTUK TABEL & DATATABLES
   ========================================= */

/* Hapus background paksaan dari Bootstrap */
.table {
  color: var(--text-main) !important;
  background-color: transparent !important;
}

/* Background baris tabel mengikuti warna Card */
.table tbody tr,
.table tbody td {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

/* Header Tabel */
.table thead th {
  background-color: var(--table-header-bg) !important;
  color: var(--table-header-text) !important;
  border-bottom: 2px solid var(--border-color) !important;
  border-top: 1px solid var(--border-color) !important;
}

/* Hover Baris Tabel */
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
  background-color: var(--table-row-hover) !important;
}

/* =========================================
   4. PERBAIKAN DATATABLES (Pencarian & Pagination)
   ========================================= */

/* Teks tulisan "Search", "Showing 1 to 10", dll */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  color: var(--text-main) !important;
}

/* Kotak input pencarian dan dropdown DataTables */
.dataTables_wrapper select,
.dataTables_wrapper input {
  background-color: var(--input-bg) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
}
.dataTables_wrapper select:focus,
.dataTables_wrapper input:focus {
  outline: none !important;
  border-color: #28a745 !important; /* Warna hijau aksen saat diklik */
}
