/* General Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    color: #007bff;
}

/* User Grid Layout (Responsive) */
.user-grid {
    display: grid;
    /* Grid akan memiliki kolom dengan lebar minimal 250px */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* User Card Styling */
.user-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}

.user-card:hover {
    transform: translateY(-5px);
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}

.user-info p {
    margin: 5px 0;
    font-size: 14px;
    text-align: left;
}

.btn-kenalan, .btn-daftar {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.btn-kenalan:hover, .btn-daftar:hover {
    background-color: #0056b3;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

form button:hover {
    background-color: #218838;
}
/* CSS untuk Badge Notifikasi */
.nav-link {
    position: relative;
    text-decoration: none;
    color: #007bff;
    margin-left: 20px;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #dc3545; /* Warna merah */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid white;
}
/* === CSS BARU UNTUK HEADER === */

header {
    background-color: #ffffff;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    display: flex;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 65px;
}

.logo {
    margin: 0;
    color: #007bff;
    font-size: 1.5em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #007bff;
}

.profile-pic-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #007bff;
    object-fit: cover;
}
/* === CSS BARU UNTUK HALAMAN PROFIL === */

.profile-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
}

.profile-card {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.profile-card-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 30px 20px;
}

.profile-card-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-card-header h2 {
    margin: 10px 0 5px 0;
    font-size: 1.8em;
}

.profile-join-date {
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
}

.profile-card-body {
    padding: 25px 30px;
    text-align: left;
}

.profile-card-body h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1em;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #333;
}

.profile-card-footer {
    padding: 20px;
    background-color: #f9f9f9;
}

.btn-edit-profile {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #28a745;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    box-sizing: border-box;
}

.btn-edit-profile:hover {
    background-color: #218838;
}
/* === CSS BARU UNTUK HALAMAN EDIT PROFIL === */

.edit-profile-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.edit-profile-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
}

.form-preview {
    text-align: center;
    margin-bottom: 20px;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    display: block;
    margin: 10px auto;
}

.feedback-message {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.btn-save-profile {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-save-profile:hover {
    background-color: #0056b3;
}
/* === CSS BARU UNTUK DROPDOWN PROFIL === */

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden; /* Agar border-radius bekerja pada item di dalamnya */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Tampilkan dropdown saat kursor di atas gambar profil */
.profile-dropdown:hover .dropdown-content {
    display: block;
}
/* === CSS BARU UNTUK HALAMAN PESAN (INBOX) === */

.inbox-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.inbox-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.inbox-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.conversation-list {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.conversation-item:last-child {
    border-bottom: none;
}

.conversation-item:hover {
    background-color: #f9f9f9;
}

.convo-pic {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.convo-details {
    flex-grow: 1;
}

.convo-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.convo-preview {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.convo-sender {
    color: #007bff;
    font-weight: bold;
}

.convo-time {
    font-size: 0.8em;
    color: #999;
    margin-left: 10px;
}

.no-conversation {
    text-align: center;
    padding: 40px;
    color: #888;
}
/* === CSS BARU UNTUK IKON JENIS KELAMIN === */

.gender-info {
    text-align: left;
    margin-top: 8px; /* Jarak dari text Negara */
}

.gender-icon {
    font-size: 0.9em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
}

.gender-icon .fas {
    margin-right: 5px; /* Jarak antara ikon dan teks */
}

/* Warna untuk Pria */
.gender-icon.male {
    color: #3498db; /* Biru */
    background-color: #eaf5ff;
}

/* Warna untuk Wanita */
.gender-icon.female {
    color: #e91e63; /* Pink */
    background-color: #fce4ec;
}
/* === CSS BARU UNTUK STATUS ONLINE & PAGINATION === */

/* Indikator Status */
.status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

.status-indicator .fas {
    font-size: 0.6em;
    margin-right: 5px;
}

.status-indicator.online {
    background-color: #28a745; /* Hijau */
}

.status-indicator.offline {
    background-color: #6c757d; /* Abu-abu */
}

/* Penyesuaian pada User Card */
.user-card {
    position: relative; /* Diperlukan agar indikator status bisa diposisikan */
}

/* Navigasi Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-top: 20px;
}

.pagination a {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}
/* === CSS BARU UNTUK SLIDER === */

.slider-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #eee;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar menutupi area tanpa distorsi */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .slider-container {
        height: 300px;
    }
}
/* css/style.css */

/* ... (CSS Anda yang sudah ada) ... */

/* [PENAMBAHAN] Gaya untuk pesan data tidak ditemukan */
.no-data-message {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    border-radius: var(--border-radius, 16px);
    box-shadow: var(--box-shadow, 0 4px 15px rgba(0,0,0,0.05));
    margin-top: 20px;
}

.no-data-message p {
    font-size: 1.1em;
    color: var(--secondary-color, #6c757d);
    margin: 5px 0;
}
/* Ganti atau tambahkan aturan CSS berikut di css/style.css */

/* ... (CSS header Anda yang sudah ada bisa ditimpa dengan ini agar lebih rapi) ... */

.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Jarak antar item di kanan */
}
.profile-dropdown {
    position: relative; /* Diperlukan untuk posisi indikator status */
}
.profile-pic-header {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #007BFF);
    cursor: pointer;
    object-fit: cover;
}
.btn-header-register {
    background-color: #f8f9fa;
    color: #343a40;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}
.btn-header-register:hover {
    background-color: #e9ecef;
}

/* [BARU] CSS untuk Indikator Status di Header */
.status-indicator-header {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}
.status-indicator-header.online {
    background-color: var(--success-color, #28a745);
}
.status-indicator-header.offline {
    background-color: var(--secondary-color, #6c757d);
}
/* Ganti semua CSS header lama Anda dengan ini */

/* Header & Navigasi Modern */
:root {
    --header-height: 70px;
}

.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: var(--header-height);
}
.logo-link {
    text-decoration: none;
}
.logo { 
    font-size: 1.8em; 
    font-weight: 800; 
    color: var(--primary-color, #007BFF); 
    margin: 0;
}
.main-nav-desktop { 
    display: flex; 
    gap: 40px; 
}
.nav-link { 
    text-decoration: none; 
    color: var(--secondary-color, #6c757d); 
    font-weight: 600; 
    padding: 5px 0; 
    position: relative; 
    transition: color 0.3s ease; 
}
.nav-link.active, .nav-link:hover { 
    color: var(--primary-color, #007BFF); 
}
.nav-link.active::after { 
    content: ''; 
    position: absolute; 
    bottom: -8px; 
    left: 0; 
    width: 100%; 
    height: 3px; 
    background-color: var(--primary-color, #007BFF); 
    border-radius: 3px; 
}
.header-user-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

/* Tombol Mobile & Panel Samping */
.mobile-menu-btn { display: none; /* Sembunyikan di desktop */ }

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px; /* Mulai dari luar layar */
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-panel.active {
    right: 1; /* Munculkan ke layar */
}
.mobile-menu-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #333;
    cursor: pointer;
}
.mobile-nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Overlay untuk latar belakang gelap */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Tampilan Mobile (di bawah 768px) */
@media (max-width: 768px) {
    .main-nav-desktop {
        display: none; /* Sembunyikan navigasi desktop */
    }
    .header-user-actions .action-icon,
    .header-user-actions .profile-dropdown,
    .header-user-actions .btn-header-register {
        display: none; /* Sembunyikan beberapa item untuk simplisitas */
    }
    .mobile-menu-btn {
        display: block;
        font-size: 1.5em;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
    }
}
/* Tambahkan ini di bagian bawah css/style.css */

/* Tata Letak Grid Berita di show_berita.php */
.news-grid {
    display: grid;
    /* Membuat 1 kolom di mobile, 2 di tablet, 3 di desktop */
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Aturan untuk layar tablet dan lebih besar */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Aturan untuk layar desktop */
@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desain Kartu Berita */
.news-card {
    background-color: #ffffff;
    border-radius: var(--border-radius, 16px);
    box-shadow: var(--box-shadow, 0 4px 15px rgba(0,0,0,0.08));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.05);
}
.news-card-content {
    padding: 20px;
    flex-grow: 1;
}
.news-card-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.news-card-excerpt {
    font-size: 0.9em;
    color: var(--secondary-color, #6c757d);
    margin-bottom: 15px;
}
.news-card-date {
    font-size: 0.8em;
    color: var(--secondary-color, #6c757d);
    margin-top: auto;
}

/* Tampilan untuk halaman berita_lengkap.php */
.berita-lengkap {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.berita-judul {
    font-size: 2.5em;
    margin-top: 0;
    line-height: 1.2;
}
.berita-tanggal {
    color: #6c757d;
    margin-bottom: 20px;
    font-style: italic;
}
.berita-gambar-utama {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}
.berita-isi {
    font-size: 1.1em;
    line-height: 1.7;
    color: #343a40;
}
/* Pastikan CSS ini ada di file css/style.css */

.latest-news {
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
    padding-top: 30px;
}

.news-grid {
    display: grid;
    gap: 30px;
    /* Mulai dengan 1 kolom untuk mobile (mobile-first) */
    grid-template-columns: 1fr;
}

/* Aturan untuk layar tablet (lebar 768px atau lebih) */
@media (min-width: 768px) {
    .news-grid {
        /* Tampilkan 2 kolom */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Aturan untuk layar desktop (lebar 992px atau lebih) */
@media (min-width: 992px) {
    .news-grid {
        /* Tampilkan 3 kolom sesuai permintaan */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desain Kartu Berita Modern */
.news-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.news-card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.05);
}
.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-card-date {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 10px;
}
.news-card-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.news-card-excerpt {
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.5;
    flex-grow: 1; /* Mendorong tanggal ke bawah jika konten bervariasi */
}
/* Tambahkan ini di css/style.css */

/* Formulir Pencarian & Filter */
.search-filter-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius, 16px);
    box-shadow: var(--box-shadow, 0 4px 15px rgba(0,0,0,0.05));
    margin-bottom: 30px;
}

.search-filter-box form {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 15px;
    align-items: flex-end;
}

/* Tampilan 3 kolom untuk desktop */
@media (min-width: 768px) {
    .search-filter-box form {
        grid-template-columns: 1fr 1fr auto; /* 2 kolom filter, 1 tombol */
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    font-size: 1em;
}

.btn-filter {
    background-color: var(--primary-color, #007BFF);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
/* css/style.css */

/* [PERBAIKAN] CSS untuk Select2 di Form Pendaftaran */

/* Menata kontainer yang dibuat oleh Select2 */
.select2-container .select2-selection--single {
    height: 45px; /* Samakan tinggi dengan input lain */
    border: 1px solid #ccc !important; /* Timpa border default */
    border-radius: 8px !important; /* Samakan lengkungan sudut */
    padding: 0 !important;
}

/* Menata teks yang dipilih di dalam kotak */
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 45px !important; /* Pusatkan teks secara vertikal */
    padding-left: 12px !important;
    color: #333;
}

/* Menata panah dropdown */
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 45px !important;
    right: 5px !important;
}

/* Menata dropdown saat dibuka */
.select2-dropdown {
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
}

/* Menata kotak pencarian di dalam dropdown */
.select2-search--dropdown .select2-search__field {
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    padding: 10px !important;
}
/* Ganti atau tambahkan ini di css/style.css */

.header-container {
    display: flex;
    justify-content: space-between; /* Ini akan mendorong logo ke kiri dan container kanan ke kanan */
    align-items: left;
    /* ... properti lainnya ... */
}

/* [BARU] Aturan untuk wrapper baru */
.header-right-container {
    display: flex;
    align-items: right;
    gap: 30px; /* Jarak antara menu navigasi dan tombol login/profil */
}

/* Penyesuaian untuk Tombol Login agar tidak bergaris bawah */
.header-user-actions .nav-link {
    text-decoration: none;
    color: var(--primary-color, #007BFF);
    font-weight: 600;
}
.header-user-actions .nav-link:hover {
    color: var(--primary-hover, #0056b3);
}

/* Penyesuaian untuk mobile (jika diperlukan) */
@media (max-width: 768px) {
    .header-right-container {
        display: none; /* Sembunyikan container ini di mobile, karena sudah ada menu terpisah */
    }
}
/* Tambahkan ini di css/style.css */

/* Tombol Menu Mobile & Panel Samping */
.mobile-menu-btn { 
    display: none; /* Sembunyikan di desktop */
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px; /* Mulai dari luar layar */
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-panel.active {
    right: 0; /* Munculkan ke layar */
}
.mobile-menu-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #333;
    cursor: pointer;
    line-height: 1;
}
.mobile-nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-nav hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 10px 0;
}

/* Overlay untuk latar belakang gelap */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Tampilan Mobile (di bawah 768px) */
@media (max-width: 768px) {
    .header-right-container {
        display: none; /* Sembunyikan menu desktop */
    }
    .mobile-menu-btn {
        display: block; /* Tampilkan tombol hamburger */
    }
}
/* Tambahkan ini di bagian bawah css/style.css */

/* === FOOTER MODERN === */
.main-footer {
    background-color: #b2befc; /* Warna Merah Pastel */
    color: #5c2c2c; /* Warna teks gelap agar kontras */
    padding: 40px 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Tampilan 3 kolom untuk desktop */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3, .footer-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1f1e1fe9;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: 800;
}

.footer-section p {
    margin: 0;
    line-height: 1.7;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section.links a {
    text-decoration: none;
    color: #5c2c2c;
    margin-bottom: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-section.links a:hover {
    color: #d6334a;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #5c2c2c;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #d6334a;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}
/* Tambahkan ini di bagian bawah css/style.css */

/* =================================
   DESAIN HALAMAN LOGIN PENGGUNA MODERN
   ================================= */

.login-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}
.login-logo .fa-users {
    font-size: 3em;
    color: #007BFF;
    margin-bottom: 10px;
}
.login-logo h2 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
}
.login-logo p {
    margin: 5px 0 0 0;
    color: #888;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
}

/* Grup Input dengan Ikon */
.input-group {
    position: relative;
    margin-bottom: 25px;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s ease;
}
.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px; /* Beri ruang untuk ikon */
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.input-group input:focus {
    outline: none;
    border-color: #007BFF;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.input-group input:focus + i, .input-group:focus-within i {
    color: #007BFF;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}
.login-footer a {
    color: #007BFF;
    font-weight: 600;
    text-decoration: none;
}
/* Tambahkan ini di bagian bawah css/style.css */

/* =================================
   DESAIN HALAMAN DAFTAR MODERN
   ================================= */

/* Menggunakan kembali style dari login */
/* (Pastikan .login-body, .login-wrapper, .login-box, dll. sudah ada) */

.login-logo .fa-user-plus {
    font-size: 3em;
    color: var(--primary-color, #007BFF);
    margin-bottom: 10px;
}

/* Penyesuaian untuk form-group umum di halaman daftar */
.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    -webkit-appearance: none; /* Hapus tampilan default select */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .65em auto;
}

/* Style untuk tombol upload file */
.login-form input[type="file"] {
    display: none; /* Sembunyikan input file asli */
}
.file-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-label:hover {
    border-color: var(--primary-color, #007BFF);
    background-color: #e9f3ff;
}

/* Mengatur ulang style Select2 agar sesuai */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background-color: #f9f9f9 !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 15px !important;
    color: #555;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 10px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color, #007BFF) !important;
}
/* Tambahkan ini di css/style.css */

/* Penataan Judul Section */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
}
.section-title p {
    font-size: 1.1em;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* [BARU] Kontainer Tombol Aksi */
.header-actions {
    margin-top: 25px;
    display: flex; /* Kunci untuk membuat item sejajar */
    justify-content: center; /* Memposisikan item di tengah */
    align-items: center;
    gap: 15px; /* Memberi jarak antar tombol */
    flex-wrap: wrap; /* Agar tombol turun ke bawah di layar kecil */
}

/* Desain Tombol Modern */
.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px; /* Membuat tombol berbentuk pil */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Tombol Utama (Daftar) */
.btn.btn-primary {
    background-color: var(--primary-color, #007BFF);
    color: white;
}
.btn.btn-primary:hover {
    background-color: var(--primary-hover, #0056b3);
    transform: translateY(-2px);
}

/* Tombol Sekunder (Login) */
.btn.btn-secondary {
    background-color: #f8f9fa;
    color: #343a40;
    border-color: #dee2e6;
}
.btn.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}
/* Pastikan CSS ini ada di css/style.css */

/* Tombol Menu Mobile & Panel Samping */
.mobile-menu-btn { 
    display: none; /* Sembunyikan di desktop */
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    z-index: 1003; /* Pastikan di atas elemen lain */
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px; /* Mulai dari luar layar */
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-panel.active {
    right: 0; /* Munculkan ke layar saat kelas 'active' ditambahkan */
}
.mobile-menu-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #333;
    cursor: pointer;
    line-height: 1;
}
.mobile-nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-nav hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 10px 0;
}

/* Overlay untuk latar belakang gelap */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Tampilan Mobile (di bawah 768px) */
@media (max-width: 768px) {
    .header-right-container {
        display: none; /* Sembunyikan menu desktop */
    }
    .mobile-menu-btn {
        display: block; /* Tampilkan tombol hamburger */
    }
}

