@media only screen and (max-width: 768px) {
    /* Atur tampilan pada perangkat dengan ukuran layar kecil */
}
body {
    background-image: linear-gradient(to bottom, #0055A4, #ffffff);
    background-size: 100% 100%;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    position: relative;
    font-size: 16px;
}   
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, 
        rgba(70, 130, 180, 0.1) 0px, 
        rgba(70, 130, 180, 0.1) 20px, 
        transparent 20px, 
        transparent 40px);
    background-size: 100% 100%;
    z-index: -1;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
}
body::before {
    content: "@copyright Deni SpeakAynamah";
    position: fixed;
    top: 93%;
    left: 49%;
    transform: translate(-50%, -50%) rotate(0deg);
    font-size: 13px;
    color: rgba(70, 130, 180, 0.9); /* Kurangi opacity untuk membuat lebih samar */
    white-space: nowrap;
    z-index: -1;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px; /* Tambahkan jarak antar huruf */
}
@keyframes watermark {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(50%);
    }
}
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  height: 95vh; /* Atur tinggi container */
}

.logo-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  top: calc(100% - 170px); /* tinggi logo */
}

.logo {
    width: 170px;
    height: auto;
}
.logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}
.gallery {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
}
.gallery img {
    width: 98%;
    height: 160px;
    object-fit: cover;
}
.card {
    background-color: #ffffff; /* Warna putih */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: slide-up 1s ease-out;
}
@keyframes slide-up {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.input-group button {
    border: none;
    background-color: transparent;
}

.btn-primary {
    background-color: #3498db; /* Warna biru */
    border-color: #3498db;
}
.btn-primary:hover {
    background-color: #2980b9; /* Warna biru tua */
    border-color: #2980b9;
}

.btn-orange {
    background-color: #ffa07a; /* Warna orange */
    border-color: #ffa07a;
    color: #ffffff;
}

.btn-orange:hover {
    background-color: #ff8c69; /* Warna orange tua */
    border-color: #ff8c69;
}

.form-control {
    border-radius: 5px;
}
.navbar-custom {
    background-color: #0055A4 !important; 
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2); /* Opacity lebih rendah untuk membuat tipis */
    animation: kilau 2s infinite;
}

@keyframes kilau {
    0% {
        box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
    }
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link,
.navbar-custom .dropdown-toggle {
    color: #fff !important; /* Teks putih untuk navigasi */
}
.navbar-custom .nav-link:hover,
.navbar-custom .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;

}

/* --- PERBAIKAN WARNA DROPDOWN MENU --- */
.navbar-custom .dropdown-menu {
    background-color: #ffffff; /* Mengembalikan ke background putih */
    border: 1px solid rgba(0, 0, 0, 0.15); /* Border standar Bootstrap */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175); /* Shadow standar Bootstrap */
    
}
.navbar-custom .dropdown-item {
    color: #212529 !important; /* Mengembalikan teks ke warna gelap standar Bootstrap */
}
.navbar-custom .dropdown-item:hover {
    background-color: #e9ecef; /* Warna hover standar Bootstrap */
    color: #1a1d20 !important; /* Warna teks hover yang sedikit lebih gelap */
}
/* --- AKHIR PERBAIKAN WARNA DROPDOWN MENU --- */

.table-header-custom th {
  background-color: #0055A4 !important;
  color: #fff;
}

/* Custom styles for nested dropdowns to appear on hover, not just click */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu{ display: none; }
    .navbar .nav-item:hover .nav-link + .dropdown-menu{ display: block; }
    .navbar .nav-item .dropdown-menu{ margin-top:0; }
    .navbar .dropdown-submenu:hover > .dropdown-menu { display: block; }
    .navbar .dropdown-submenu > .dropdown-menu {
        margin-top: -6px; /* Adjust to align with parent */
        margin-left: .5rem; /* Space from parent */
        left: 100%; /* Position to the right of parent */
    }
}
/* Untuk baris tabel selang-seling warna (zebra stripping) */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2; /* Warna abu-abu terang untuk baris ganjil */
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff; /* Warna putih untuk baris genap */
}

/* Untuk membuat border tabel lebih tebal dan terlihat jelas */
.table.table-bordered th,
.table.table-bordered td {
    border: 1.5px solid #dee2e6; /* Ketebalan dan warna border */
}

/* Untuk baris tabel selang-seling warna (zebra stripping) */
.card-body .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f2f2f2 !important; /* Tambahkan !important untuk sementara */
}

.card-body .table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff !important; /* Tambahkan !important untuk sementara */
}

/* Untuk membuat border tabel lebih tebal dan terlihat jelas */
.card-body .table.table-bordered th,
.card-body .table.table-bordered td {
    border: 1.5px solid #dee2e6 !important; /* Tambahkan !important untuk sementara */
}

/* Styles for new buttons in regional.php */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529; /* Dark text for warning */
}
.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}
