@import url("ubah-warna.css");

html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

.my-title,
.section-title {
  color: var(--warna-utama) !important;
  /* font-weight: bold; */
}
.my-color {
  color: var(--warna-utama) !important;
}
.my-color:hover {
  color: var(--warna-utama-hover) !important;
}

/* Text, Email, Password, Number, Select, Textarea */
.form-control,
.custom-select,
.custom-file-input,
.custom-file-label,
textarea,
select,
input {
  border-color: #d9d2e8;
  transition: 0.2s ease;
}
/* Hover */
.form-control:hover,
.custom-select:hover,
.custom-file-input:hover + .custom-file-label,
textarea:hover,
select:hover,
input:hover {
  border-color: var(--warna-utama-hover);
}
/* Focus */
.form-control:focus,
.custom-select:focus,
.custom-file-input:focus + .custom-file-label,
textarea:focus,
select:focus,
input:focus {
  border-color: var(--warna-utama) !important;

  box-shadow: 0 0 0 0.2rem rgba(83, 6, 176, 0.15) !important;

  outline: none !important;
}
/* Disabled */
.form-control:disabled,
.custom-select:disabled,
textarea:disabled,
input:disabled {
  background: #f8f8fb;
}
/* Checkbox */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--warna-utama) !important;
  border-color: var(--warna-utama) !important;
}
/* Radio */
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--warna-utama) !important;
  border-color: var(--warna-utama) !important;
}
/* Switch */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--warna-utama) !important;
  border-color: var(--warna-utama) !important;
}
/* Select2 (kalau dipakai) */
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple {
  border-color: var(--warna-utama) !important;
}
/* Input Group */
.input-group-text {
  color: var(--warna-utama);
}
/* File Upload */
.custom-file-input:focus ~ .custom-file-label {
  border-color: var(--warna-utama);
  box-shadow: 0 0 0 0.2rem rgba(83, 6, 176, 0.15);
}

.btn-login {
  background-color: var(--warna-tombol-login);
  color: #fff !important;
  box-shadow: none !important;
  transition: 0.3s;
}
.btn-login:hover {
  filter: brightness(85%);
}
/* Hover item dropdown */
.dropdown-menu .dropdown-item:hover {
  background-color: #eaeaea !important;
  color: #333 !important;
}
/* Saat ditekan / aktif */
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
  background-color: #eaeaea !important;
  color: #333 !important;
}
/* Fokus keyboard */
.dropdown-menu .dropdown-item:focus {
  background-color: #eaeaea !important;
  color: #333 !important;
}
/* Icon ikut putih */
.dropdown-menu .dropdown-item:hover i,
.dropdown-menu .dropdown-item:active i,
.dropdown-menu .dropdown-item:focus i {
  color: #333 !important;
}

/* ================== HOMEPAGE ================== */
section {
  padding: 100px 0;
}

.navbar {
  background: var(--warna-utama) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  color: #eee !important;
  font-weight: bold;
  font-size: 22px;
  transition: all 0.3s ease;
}
.navbar-brand:hover {
  color: #fff !important;
}

.navbar .navbar-nav .nav-item a {
  color: #eee !important;
  transition: all 0.3s ease;
}
.navbar .navbar-nav .nav-item a:hover {
  color: #fff !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}
/* Icon jadi putih */
.navbar-toggler .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}
/* Saat diklik / focus */
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  box-shadow: none;
  border-color: #fff;
}
/* Efek ketika menu sedang terbuka */
.navbar-toggler[aria-expanded="true"] {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08); /* opsional */
  border-radius: 8px;
}

.hero-section {
  min-height: 100vh;
  background: var(--warna-utama);
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-title {
  font-size: 52px;
  font-weight: bold;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 18px;
  margin-top: 20px;
  opacity: 0.9;
}
.hero-btn {
  margin-top: 30px;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}

.section-subtitle {
  color: #6c757d;
  margin-bottom: 50px;
}

.feature-card {
  border: none;
  border-radius: 15px;
  padding: 30px;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--warna-utama);
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.stats-box {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
}

.stats-box h3 {
  font-size: 40px;
  font-weight: bold;
  color: var(--warna-utama);
}

.contact-box {
  border: 2px solid var(--warna-utama);
  color: #333;
  padding: 40px;
  border-radius: 15px;
}

/* ===== DATA PENERIMA ===== */
.table thead th {
  vertical-align: middle;
}
.badge {
  font-size: 13px;
}
.alert {
  border-radius: 12px;
}
.text-justify {
  text-align: justify;
}
.feature-card p {
  line-height: 1.9;
}
.table-hover tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}
/* tombol clear pencarian */
#clearSearch {
  border-left: 0;
  min-width: 46px;
}
#clearSearch:hover {
  background: #f3f3f3;
}
#clearSearch:focus {
  box-shadow: none !important;
}

footer {
  background: var(--warna-utama-hover);
  color: #fff;
  padding: 25px 0;
}
/* ================== END HOMEPAGE ================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
  }

  .navbar-nav {
    margin-top: 15px;
  }

  .login-btn {
    margin-top: 10px;
  }
}
