/* =================================================================== */
/* 1. DEFINISI VARIABEL WARNA (LIGHT & DARK MODE)
/* =================================================================== */
:root {
  /* Mode Terang (Default) */
  --bg-gradient-start: #e0f7fa;
  --bg-gradient-end: #ffffff;
  --bg-primary: #ffffff;
  --text-primary: #212529;
  --text-brand: #020230;
  --color-accent: #03a7d3;
  --color-danger: #ff4646;
  --footer-bg: #f8f9fa;
  --footer-text: #343a40;
  --navbar-toggler: #212529;
  --glass-bg: rgba(255, 255, 255, 0.3);
  --glass-border: rgba(0, 0, 0, 0.1);
  --image-filter: none;
}

body.dark-mode {
  /* Mode Gelap */
  --bg-gradient-start: #020230;
  --bg-gradient-end: #000000;
  --bg-primary: #0e163d;
  --text-primary: #e0e0e0;
  --text-brand: #ffffff;
  --color-accent: #03a7d3;
  --footer-bg: #020230;
  --footer-text: #e0e0e0;
  --navbar-toggler: #ffffff;
  --glass-bg: rgba(2, 2, 48, 0.25);
  --glass-border: rgba(255, 255, 255, 0.1);
  --image-filter: drop-shadow(0 0 1rem rgba(3, 167, 211, 0.5));
}

/* =================================================================== */
/* 2. GAYA DASAR & UTAMA
/* =================================================================== */
body {
  font-family: "Roboto", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

.hero_area {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  background: linear-gradient(-45deg, var(--bg-gradient-start), var(--bg-gradient-end), #1a237e, var(--bg-gradient-start));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =================================================================== */
/* 3. HEADER & NAVIGASI
/* =================================================================== */
.header_section {
  padding: 15px 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s, border-bottom 0.3s;
}

.custom_nav-container {
  padding: 0 15px; /* Padding untuk container-fluid */
}

.navbar-brand span {
  font-weight: bold;
  color: var(--text-brand);
  font-size: 24px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.navbar-toggler {
  border: none;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 30px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--navbar-toggler);
  transition: all 0.3s;
}
.navbar-toggler-icon::before { top: 4px; }
.navbar-toggler-icon::after { bottom: 4px; }

/* =================================================================== */
/* 4. KONTEN HERO SECTION (WELCOME PAGE)
/* =================================================================== */
.hero_section {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero_text-box h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero_text-box .brand-highlight {
  color: var(--color-accent);
}

.hero_text-box p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 30px;
  max-width: 500px;
}

.cta_button {
  display: inline-block;
  padding: 12px 35px;
  background-color: var(--color-accent);
  color: #ffffff;
  border-radius: 8px;
  border: none;
  transition: all .3s ease;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(3, 167, 211, 0.3);
  text-decoration: none;
}
.cta_button:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(3, 167, 211, 0.4);
}

.hero_img-box img {
  max-width: 100%;
  height: auto;
  filter: var(--image-filter);
  transition: filter 0.5s ease-out;
}

/* =================================================================== */
/* 5. FOOTER
/* =================================================================== */
.footer_section {
    background-color: transparent;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.footer_section p {
    color: var(--text-primary);
    margin: 0;
    opacity: 0.7;
}

/* =================================================================== */
/* 6. TOMBOL SWITCH TEMA
/* =================================================================== */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin: 0 15px;
}
.theme-switch {
  display: inline-block;
  height: 26px;
  position: relative;
  width: 50px;
  margin-bottom: 0;
}
.theme-switch input { display: none; }
.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}
.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 18px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 18px;
}
input:checked + .slider { background-color: var(--color-accent); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* =================================================================== */
/* 7. HALAMAN LOGIN
/* =================================================================== */
.login_section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.login-card {
    padding: 40px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: background 0.3s, border 0.3s;
}

.login-card h1 {
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-primary);
}

.login-card p {
    margin-bottom: 30px;
    text-align: center;
    opacity: 0.8;
    color: var(--text-primary);
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    height: 50px;
    border-radius: 8px;
    padding: 10px 15px;
}

.login-card .form-control:focus {
    background-color: transparent;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(3, 167, 211, 0.3);
    color: var(--text-primary);
}

.login-card .form-control::placeholder {
    color: var(--text-primary);
    opacity: 0.5;
}