/* ==========================================================
   1. VARIABLES & RESET 
   ========================================================== */
:root {
    --primary: #1b4332;
    --primary-dark: #081c15;
    --accent: #ff9f1c;
    --accent-hover: #f3722c;
    --bg-light: #f3f9f6;
    --white: #ffffff;
    --gray-light: #edf2f7;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* ==========================================================
   2. NAVBAR 
   ========================================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: center;
    box-shadow: var(--shadow);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent);
}

.btn-login-nav {
    background: var(--accent);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* ==========================================================
   3. HERO SECTION 
   ========================================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1500');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    
}

.hero h1, .section-title, .vision-item h3 {
    letter-spacing: -1px !important; /* Nilai -1px akan merapatkan huruf secara paksa */
}

.hero h1 span {
    color: var(--accent);
}

/* ==========================================================
   4. COMMON SECTIONS 
   ========================================================== */
.section {
    padding: 80px 10%;
    text-align: center;
}

.bg-light {
    background: var(--bg-light);
}

/* RESET PAKSA JARAK TEKS */
.section-title {
    display: block !important;
    text-align: center !important;
    letter-spacing: -1px !important; /* Huruf saling merapat */
    word-spacing: -5px !important;    /* Kata "Divisi" dan "Organisasi" saling merapat */
    white-space: nowrap !important;   /* Mencegah teks turun atau melebar aneh */
}
/* ==========================================================
   5. VISI MISI 
   ========================================================== */
/* --- TAMPILAN DIVISI DI HALAMAN UTAMA (INDEX) --- */
/* Judul Utama Divisi Organisasi */
.section-title, h2.title-divisi {
    color: #2d6a4f !important;
    font-size: 2.0rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;  /* Jarak huruf lega */
    word-spacing: 5px !important;    /* Jarak kata lega */
    margin-bottom: 30px !important;
    margin-top: -50px !important;   /* Menarik ke atas */
    text-align: center !important;
    display: block;
}


/* EFEK HOVER (Saat mouse menyentuh kotak) */
/* Container Utama */
.vision-box {
    display: flex;
    gap: 25px;
    justify-content: center; /* Kotak selalu di tengah */
    flex-wrap: wrap;        /* Otomatis nambah baris kalau divisi ditambah */
   padding-top: 0px !important; 
    margin-top: -10px !important;
}

/* KOTAK DIVISI AWAL */
.vision-item {
    background: #ffffff;
    padding: 45px 30px;
    border-radius: 20px;
    
    /* Membuat kotak menyesuaikan jumlah (Responsive) */
    flex: 1 1 300px;    
    max-width: 380px;   

    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Bayangan halus */
    border: 2px solid transparent; /* Border awal tidak kelihatan */
    
    /* KUNCI HOVER HALUS */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer;
}


/* --- EFEK HOVER (SAAT DISENTUH MOUSE) --- */
.vision-item:hover {
    transform: translateY(-15px);        /* Kotak melayang naik */
    border-color: #2d6a4f;               /* Muncul garis hijau estetik */
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.2); /* Bayangan hijau lembut */
}

/* Ikon Divisi */
.vision-item i {
    font-size: 3.5rem;
    color: #ff9f1c; /* Warna orange awal */
    margin-bottom: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Efek Hover pada Ikon */
.vision-item:hover i {
    color: #2d6a4f;      /* Ikon berubah jadi hijau */
    transform: scale(1.2); /* Ikon membesar sedikit */
}

/* Judul Divisi */
/* Judul Divisi */
/* Judul Divisi - Diperbaiki */
/* --- PERBAIKAN TOTAL JARAK TULISAN DIVISI --- */
.vision-item h3 {
    color: #2d6a4f !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    
    /* 1. MENGEMBALIKAN SPASI HURUF (Jangan pakai minus) */
    letter-spacing: 0.5px !important; 
    
    /* 2. MEMBERI JARAK ANTAR KATA (Sangat Penting) */
    word-spacing: 8px !important; 
    
    /* 3. AGAR RAPI JIKA TEKS TURUN KE BAWAH */
    line-height: 1.4 !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 15px !important;
}
/* Teks Deskripsi */
.vision-item p {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==========================================================
   6. PENGURUS & PEMBINA GRID 
   ========================================================== */
/* ==========================================================
   6. PENGURUS & PEMBINA GRID (PERBAIKAN JARAK & WARNA)
   ========================================================== */

/* Warna Hijau Khusus untuk Judul Seksi Pengurus */
#pengurus .section-title {
    color: #1b4332 !important; /* Hijau Tua Palaba */
    margin-bottom: 50px !important; /* Jarak antara judul dan kartu */
    font-size: 2.5rem;
    font-weight: 800;
}

.pengurus-grid {
    display: flex; /* Menggunakan flexbox agar kontrol jarak lebih mudah */
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* MENAMBAH JARAK ANTAR KARTU (Horizontal & Vertikal) */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pengurus-card {
    background: var(--white);
    padding: 35px 25px; /* Menambah ruang di dalam kartu */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Bayangan lebih lembut */
    border-bottom: 5px solid #2d6a4f; /* Garis bawah hijau */
    text-align: center;
    width: 280px; /* Lebar tetap supaya rapi */
    transition: all 0.3s ease;
}

/* Mengatur jarak antara foto lingkaran dengan teks di bawahnya */
.img-circle {
    width: 130px;
    height: 130px;
    margin: 0 auto 25px; /* 25px adalah jarak di bawah foto */
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f0f0;
    transition: 0.3s;
}

/* Jarak teks Jabatan (Ketua, Wakil, dll) */
.pengurus-card h4 {
    color: #1b4332;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Jarak Nama Pengurus */
.pengurus-card p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Efek saat kartu disentuh */
.pengurus-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(45, 106, 79, 0.2);
    border-bottom-color: var(--accent);
}

/* ==========================================================
   7. TABLES (User & Admin) 
   ========================================================== */
/* ==========================================================
   PERBAIKAN TOTAL TABEL MODERN (EFEK MELAYANG)
   ========================================================== */
/* ==========================================================
   7. PERBAIKAN TABEL ADMIN (GAYA RATING) 
   ========================================================== */
.table-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto;
}

/* Header Hijau Tua PALABA */
.admin-table thead tr {
    background-color: #1b4332 !important;
}

.admin-table th {
    color: #ffffff !important;
    padding: 15px 12px !important;
    text-align: left;
    font-weight: 600;
}

/* Baris Tabel */
.admin-table td {
    padding: 15px 12px !important;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Nama Anggota Hijau */
.nama-hijau {
    color: #1b4332 !important;
    font-weight: 600;
}

/* Tombol Aksi Kotak Solid */
.action-buttons-rating {
    display: flex;
    gap: 8px;
}

.btn-edit-kotak, .btn-hapus-kotak {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: white !important;
}

.btn-edit-kotak { background-color: #5a32a8; }
.btn-hapus-kotak { background-color: #dc2626; }
/* ==========================================================
   8. ADMIN SIDEBAR & LAYOUT 
   ========================================================== */
.admin-body {
    background: #f4f7f6;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--primary);
    color: var(--white);
    position: fixed;
    height: 100%;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 30px;
}

/* ==========================================================
   9. LOGIN PAGE 
   ========================================================== */
/* --- PERBAIKAN LOGO LOGIN --- */
/* --- PERBAIKAN TAMPILAN LOGIN --- */

/* 1. Background Hijau Tua untuk seluruh halaman login */
.login-page {
    background: linear-gradient(135deg, #1b4332 0%, #081c15 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* 2. Container agar box tetap di tengah */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

/* 3. Kotak Putih Login */
.login-box {
    background: white !important;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px; /* Ukuran kotak login */
    text-align: center;
}

/* 4. Logo Login agar ukurannya pas & bulat */
.login-logo {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #1b4332;
    margin-bottom: 20px;
}

/* 5. Input Field agar rapi */
.input-group-login {
    margin-bottom: 20px;
    text-align: left;
}

.input-group-login label {
    display: block;
    margin-bottom: 8px;
    color: #1b4332;
    font-weight: 600;
}

.input-group-login input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Sangat penting agar input tidak meluber */
}

/* 6. Tombol Login */
.btn-login {
    width: 100%;
    background: #1b4332;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: #2d6a4f;
}

/* ==========================================================
   10. FORMS 
   ========================================================== */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* ==========================================================
   11. BUTTONS & BADGES 
   ========================================================== */
.btn-simpan,
.btn-login {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-simpan {
    background: var(--accent);
}

.btn-simpan:hover {
    background: var(--accent-hover);
}

.status-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-pill.aktif {
    background: #e8f5e9;
    color: #2d6a4f;
}

.status-pill.alumni {
    background: #fff3e0;
    color: #e65100;
}
/* Menambah jarak antara tombol Masuk dan link Kembali */
.login-box a[href*="index"], 
.login-box a:last-child,
.login-box .kembali-link { 
    display: inline-block;
    margin-top: 25px !important; /* Mengatur jarak jauhnya di sini */
    text-decoration: none;
    color: #1b4332;
    font-size: 0.9rem;
    transition: 0.3s;
}

.login-box a:hover {
    color: #ff9f1c; /* Warna berubah saat kursor nempel */
}
/* ==========================================================
   12. FOOTER 
   ========================================================== */
#kontak {
    background: #1b4332 !important;
    color: white;
    padding: 80px 0 40px 0;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-column.branding {
    flex: 1.5;
    min-width: 300px;
}

/* Tulisan Kontak Kami */
.footer-contact-group h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.footer-info-item {
    font-size: 1rem;
    margin-bottom: 25px; /* Jarak sebelum ikon sosmed */
    opacity: 0.9;
}

/* Deskripsi Rata Kanan Kiri */
.footer-desc {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify; /* Rata Kanan Kiri */
    margin-bottom: 30px;
    opacity: 0.85;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.footer-logo span { color: #ff9f1c; }

/* PERBAIKAN IKON: Tanpa Garis & Posisi agak ke bawah */
.footer-socials {
    display: flex;
    gap: 20px;
    margin-top: 10px; /* Jarak tambahan agar agak ke bawah */
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 22px;
    text-decoration: none !important; /* MENGHILANGKAN GARIS BAWAH */
    border: none !important;         /* Memastikan tidak ada border */
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ff9f1c !important;
    transform: translateY(-8px); /* Efek melayang */
    text-decoration: none !important;
}

/* Kotak Rating */
.footer-column.rating-box {
    flex: 1;
    min-width: 320px;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.star-rating {
    font-size: 45px;
    color: #ffb703;
    cursor: pointer;
}
/* Container Utama supaya foto sejajar ke samping */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Kotak tiap foto */
.album-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px; /* Pastikan tinggi konsisten */
    box-shadow: var(--shadow);
    background-color: #eee; /* Warna cadangan jika gambar gagal muat */
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ini kunci agar foto tetap proporsional */
    display: block;
}

/* EFEL HOVER: Judul muncul pas kursor nempel */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 67, 50, 0.8); /* Warna hijau transparan */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0; /* Awalnya tidak kelihatan */
    transition: var(--transition);
    padding: 15px;
    text-align: center;
}

/* Saat kotak di-hover: foto zoom & overlay muncul */
.album-card:hover img {
    transform: scale(1.1);
}

.album-card:hover .album-overlay {
    opacity: 1; /* Muncul pas di-hover */
}

.album-overlay span {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}
/* ==========================================================
   PERBAIKAN ADMIN PANEL
   ========================================================== */

/* Logo di Sidebar Admin agar kecil dan rapi */
.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand img {
    width: 40px !important;    /* Ukuran logo kecil */
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    
}

.sidebar-brand span {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

/* Navigasi Sidebar */
.sidebar-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}

/* Header di bagian atas konten */
.top-header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-radius: 10px;
}

/* Tombol Tambah Anggota */
.btn-tambah {
    background: var(--primary);
    color: white !important;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-tambah:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Modal Logout (Warna Gelap Transparan) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* Muncul lewat JS */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
}
/* --- 1. SIDEBAR: KEMBALI KE HIJAU TUA --- */
.sidebar {
    width: 260px;
    background-color: #1b4332 !important; /* Warna Hijau PALABA */
    color: white;
    position: fixed;
    height: 100%;
}

/* Logo Sidebar Tanpa Border Oren */
.sidebar-brand img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    object-fit: cover;
    border: none !important;
    box-shadow: none !important;
}

/* --- 2. HEADER TABEL: JUDUL KIRI, TOMBOL KANAN (SEJAJAR) --- */
.table-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px;
}

.action-buttons-top {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

/* Tombol Hijau */
.btn-tambah {
    background-color: #2d6a4f !important; /* Hijau Terang Sedikit */
    color: white !important;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* --- 3. MODAL LOGOUT: BATAL MERAH, YA BIRU --- */
.modal-overlay {
    background: rgba(0,0,0,0.7) !important; /* Latar belakang gelap */
}

.modal-box {
    background: white !important;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

/* Tombol Batal (Merah) */
.btn-batal {
    background-color: #dc2626 !important; 
    color: white !important;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

/* Tombol Ya, Keluar (Biru) */
.btn-keluar {
    background-color: #2563eb !important;
    color: white !important;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* Tombol Hapus di Tabel (Biru) */
.action-buttons a.delete {
    color: #eb3225 !important;
    text-decoration: none;
}
/* --- PERBAIKAN FORM TAMBAH (KOTAK KECIL) --- */
.form-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 600px; /* Ukuran kotak dibatasi agar kecil */
    margin: 0 auto;   /* Posisi di tengah */
}

/* --- JARAK TOMBOL AKSI (AGAR TURUN) --- */
.form-actions {
    margin-top: 35px !important; /* Jarak dari input terakhir */
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- PENYAMAAAN UKURAN TOMBOL --- */
.btn-simpan, .btn-batal {
    flex: 1; /* Ukuran kiri dan kanan sama besar */
    max-width: 180px;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-batal {
    background-color: #dc2626 !important; /* Merah */
    color: white !important;
}

.btn-simpan {
    background-color: #ff9f1c !important; /* Oren sesuai aksen kamu */
    color: white !important;
}

.btn-simpan:hover { background-color: #f3722c !important; }
.btn-batal:hover { background-color: #b91c1c !important; }

/* Tombol Hapus di Tabel (Merah) */
.action-buttons a.delete {
    color: #dc2626 !important;
    text-decoration: none;
}
/* Pasang ini di paling bawah file untuk menimpa semua pengaturan lain */
.section-title, .vision-item h3 {
    letter-spacing: -1.5px !important; /* Semakin besar minusnya, semakin rapat */
    word-spacing: -2px !important;    /* Merapatkan jarak antar kata */
}
/* --- CSS BARU UNTUK TABEL ANGGOTA GAYA RATING --- */

/* 1. Membuat Header Jadi Hijau Gelap */
.admin-table thead tr {
    background-color: #1b4332 !important;
}

.admin-table th {
    color: #ffffff !important;
    padding: 15px;
}

/* 2. Membuat Nama Anggota Jadi Hijau */
.nama-hijau {
    color: #1b4332;
    font-weight: 600;
}

/* 3. Membuat Tombol Aksi Berbentuk Kotak (Seperti di Gambar Rating) */
.action-buttons-rating {
    display: flex;
    gap: 10px;
}

.btn-edit-kotak, .btn-hapus-kotak {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white !important;
}

.btn-edit-kotak {
    background-color: #5a32a8; /* Warna Ungu */
}

.btn-hapus-kotak {
    background-color: #dc2626; /* Warna Merah */
}

/* 4. Agar Baris Tabel Putih Bersih & Rata */
.admin-table tbody tr {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eee;
}
/* Header Hijau Tua Seperti Rating */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.admin-table thead tr {
    background-color: #1b4332 !important; /* Hijau Tua */
}

.admin-table th {
    color: white !important;
    padding: 15px;
    text-align: left;
}

/* Tombol Kotak Solid */
.action-buttons-rating {
    display: flex;
    gap: 10px;
}

.btn-edit-kotak, .btn-hapus-kotak {
    padding: 8px 12px;
    border-radius: 5px;
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-edit-kotak { background-color: #5a32a8; } /* Ungu */
.btn-hapus-kotak { background-color: #dc2626; } /* Merah */

/* Nama Anggota Hijau */
.nama-hijau {
    color: #1b4332;
    font-weight: bold;
}

/* Garis baris */
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
/* PAKSA TAMPILAN HIJAU SEPERTI RATING */
.table-container {
    background: white !important;
    padding: 25px !important;
    border-radius: 15px !important;
    margin-top: 20px !important;
}

.admin-table {
    width: 100% !important;
    border-collapse: collapse !important; /* Agar garis menyatu */
    margin-top: 15px !important;
}

/* Header Hijau Tua Sesuai Gambar Rating */
.admin-table thead tr {
    background-color: #1b4332 !important; 
}

.admin-table th {
    color: #ffffff !important;
    padding: 15px !important;
    border: none !important;
    text-transform: none !important;
}

/* Mengatasi Teks Bertumpuk */
.admin-table td {
    padding: 15px !important;
    border-bottom: 1px solid #eee !important;
    color: #333 !important;
    background: transparent !important; /* Hapus background baris lama */
    transform: none !important; /* Hapus efek melayang lama */
    box-shadow: none !important;
}

/* Tombol Kotak Solid */
.action-buttons-rating {
    display: flex !important;
    gap: 10px !important;
    justify-content: center;
}

.btn-edit-kotak, .btn-hapus-kotak {
    padding: 8px 15px !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.btn-edit-kotak { background-color: #5a32a8 !important; }
.btn-hapus-kotak { background-color: #dc2626 !important; }
/* --- PAKSA WARNA TABEL MUNCUL --- */

/* 1. Kotak luar tabel */
.table-container {
    background: white !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    margin-top: 20px !important;
}

/* 2. Header Hijau Tua (Sama dengan gambar rating) */
.admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 15px !important;
}

.admin-table thead tr {
    background-color: #1b4332 !important; /* Warna Hijau Tua */
}

.admin-table th {
    color: white !important;
    padding: 15px !important;
    text-align: left !important;
    border: none !important;
}

/* 3. Baris Data (Agar teks tidak berdempetan) */
.admin-table td {
    padding: 15px !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: middle !important;
}

/* 4. Tombol Aksi Kotak Solid */
.action-buttons-rating {
    display: flex !important;
    gap: 10px !important;
}

.btn-edit-kotak, .btn-hapus-kotak {
    padding: 8px 15px !important;
    border-radius: 6px !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.btn-edit-kotak { background-color: #5a32a8 !important; }
.btn-hapus-kotak { background-color: #dc2626 !important; }
/* Pastikan tabel tidak memaksa lebar tetap jika kontennya panjang */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto !important; /* Ubah ke auto agar fleksibel */
    margin-top: 20px;
}

.modern-table th, .modern-table td {
    padding: 15px 10px;
    text-align: left;
    vertical-align: middle;
}

/* Pengaturan Lebar Kolom agar tidak bertumpuk */
.col-no { width: 50px; text-align: center !important; }
.col-nim { width: 140px; }
.col-nama { width: auto; min-width: 200px; } /* Memberi ruang luas untuk nama */
.col-angkatan { width: 100px; text-align: center !important; }
.col-status { width: 120px; text-align: center !important; }

/* Perbaikan tampilan badge status dari database */
.status-badge {
    background: #e8f5e9;
    color: #2d6a4f;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap; /* Mencegah teks status turun ke bawah */
}

/* Paksa teks nama agar tidak pindah baris jika tidak perlu */
.nama-utama {
    white-space: normal;
    word-wrap: break-word;
}
/* Menghilangkan border/bayangan yang bikin logo terlihat dobel */
/* Membatasi ukuran logo agar tidak menutupi menu */
.sidebar-brand img, .logo-sidebar {
    width: 60px !important;    /* Ukuran yang pas untuk sidebar */
    height: 60px !important;   /* Pastikan tinggi sama agar bulat sempurna */
    object-fit: contain;       /* Agar gambar tidak gepeng */
    margin-bottom: 10px;       /* Memberi jarak ke tulisan di bawahnya */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Memastikan Sidebar tetap memiliki ruang yang benar */
.sidebar {
    width: 260px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Membuat logo & teks di tengah sidebar */
}

/* Memastikan Navigasi Sidebar terlihat */
.sidebar-nav {
    width: 100%;
    margin-top: 20px;
}

/* Memastikan logo form di konten (jika masih mau dipakai) tidak bertumpuk */
.logo-form {
    display: block;
    margin: 0 auto 20px auto;
    border: none !important;
}
/* 1. PAKSA LOGO SIDEBAR JADI KECIL */
.sidebar-brand img, .logo-sidebar, .logo-form {
    width: 45px !important;    /* Ukuran kecil agar pas */
    height: 45px !important;
    max-width: 45px !important;
    object-fit: contain !important; /* Agar gambar tidak gepeng/terpotong */
    border-radius: 50%;
    margin-bottom: 10px !important;
    display: inline-block !important;
}

/* 2. BERSIHKAN SIDEBAR BRAND */
.sidebar-brand {
    padding: 20px 15px !important;
    display: flex !important;
    flex-direction: column !important; /* Logo di atas, tulisan di bawah */
    align-items: center !important;
    text-align: center;
}

/* 3. PASTIKAN NAVIGASI MUNCUL */
.sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 10px !important;
    width: 100% !important;
}

.nav-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

/* 4. HAPUS LOGO DOBEL DI TENAH FORM */
.table-container .logo-form, 
.edit-box .logo-form {
    display: none !important; /* Menghilangkan logo raksasa yang di tengah form */
}
/* Menghilangkan Logo Raksasa di tengah Panel */
.table-container center img, 
.table-container img[src*="logo"] {
    display: none !important;
}

/* Merapikan Header */
.table-header h2 {
    color: #1b4332;
    font-weight: 800;
    margin-bottom: 5px;
}

/* Styling Input agar Rapi */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Tombol Simpan (Hijau) */
.btn-simpan {
    background-color: #1b4332 !important;
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Tombol Batal (Merah) */
.btn-batal {
    background-color: #dc2626 !important;
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    text-align: center;
}

.btn-simpan:hover, .btn-batal:hover {
    opacity: 0.8;
}
/* Mengecilkan container agar tidak lebar banget */
.table-container {
    background: white !important;
    padding: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    margin: 40px auto !important; /* Membuat panel berada di tengah */
}

/* Merapikan Input */
.form-control {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Penting agar input tidak meluber keluar kotak */
}

/* Tombol agar ukurannya pas */
.btn-simpan, .btn-batal {
    padding: 12px 0 !important; /* Tinggi tombol yang pas */
    font-size: 15px;
    border-radius: 8px !important;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

/* Warna Tombol */
.btn-simpan {
    background-color: #1b4332 !important;
    color: white !important;
    border: none;
}

.btn-batal {
    background-color: #dc2626 !important;
    color: white !important;
}
/* 1. Efek pada Baris Tabel */
tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: #f8f9fa; /* Warna abu-abu sangat muda saat baris disentuh */
}

/* 2. Styling Tombol Aksi (Edit & Hapus) */
.btn-edit, .btn-hapus {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Warna Spesifik Edit (Ungu) */
.btn-edit {
    color: #6f42c1;
    border: 1px solid transparent;
}

.btn-edit:hover {
    background-color: #6f42c1;
    color: white;
    box-shadow: 0 4px 6px rgba(111, 66, 193, 0.2);
}

/* Warna Spesifik Hapus (Merah) */
.btn-hapus {
    color: #dc3545;
    border: 1px solid transparent;
}

.btn-hapus:hover {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
}

/* 3. Efek Hover Tombol Tambah Pengurus (Hijau) */
.btn-tambah {
    background-color: #2d6a4f; /* Hijau yang kamu pakai */
    transition: transform 0.2s, background-color 0.2s;
}

.btn-tambah:hover {
    background-color: #1b4332;
    transform: translateY(-2px); /* Tombol sedikit naik saat hover */
}
.foto-pengurus {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.sidebar-logo {
  text-align: center; /* Membuat logo berada di tengah secara horizontal */
  padding: 20px 0;    /* Memberi ruang atas dan bawah logo */
}

.sidebar-logo img {
  width: 80px;        /* Atur ukuran lebar logo di sini (kecilkan angka ini jika kurang kecil) */
  height: auto;       /* Menjaga logo agar tidak gepeng */
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); /* Efek bayangan halus agar logo menonjol */
}
/* Pastikan Container Putih Bersih */
.table-container {
    background: white !important;
    padding: 20px !important;
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* Header Tabel Hijau Gelap Sesuai Gambar */
.admin-table thead tr {
    background-color: #1b4332 !important;
}

.admin-table th {
    color: white !important;
    padding: 15px !important;
    font-size: 14px;
}

/* Nama Pengurus Jadi Hijau */
.nama-hijau {
    color: #1b4332 !important;
    font-weight: 600;
}

/* Tombol Aksi Kotak Rapi */
.action-buttons-rating {
    display: flex !important;
    gap: 8px !important;
    justify-content: center;
}

.btn-edit-kotak, .btn-hapus-kotak {
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

/* Hilangkan Logo yang bikin berantakan di tengah halaman */
.main-content center img, 
.container-konten > img {
    display: none !important;
}
/* --- SIDEBAR REVISI TOTAL --- */
.sidebar {
    width: 260px;
    background-color: #1b4332 !important;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column; /* Mengatur susunan dari atas ke bawah */
    padding: 0;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

/* Bagian Atas: Logo & Judul */
.sidebar-header {
    padding: 40px 20px 20px; /* Jarak atas logo dikurangi agar tidak terlalu turun */
    text-align: center;
}

.sidebar-header img {
    width: 75px !important; /* Ukuran pas, tidak raksasa */
    height: 75px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid rgba(255,255,255,0.2);
}

.sidebar-header h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Area Menu Navigasi */
.sidebar-nav-container {
    flex-grow: 1; /* Ini akan mengambil ruang kosong agar menu tidak menempel ke bawah */
    margin-top: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

/* Hover & Active (Sesuai permintaan: Tanpa garis oren samping) */
.sidebar-menu li.active a, 
.sidebar-menu li a:hover {
    background-color: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
}

.sidebar-menu a i {
    width: 25px;
    font-size: 18px;
    margin-right: 10px;
}

/* Bagian Logout (Paling Bawah) */
.logout-section {
    padding-bottom: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
/* --- KHUSUS TAMPILAN HP --- */
@media screen and (max-width: 768px) {

    /* 1. Navbar: Paksa Logo dan Menu jadi Atas-Bawah */
    .nav-container {
        flex-direction: column !important; /* Supaya menumpuk, tidak berjejer */
        height: auto !important;
        padding: 15px 10px !important;
        align-items: center !important; /* Supaya semua di tengah (simetris) */
        text-align: center !important;
    }

    /* 2. Logo: Beri jarak dengan menu di bawahnya */
    .brand-wrapper {
        margin-bottom: 15px !important;
        justify-content: center !important; /* Logo jadi di tengah */
    }

    /* 3. Menu: Buat jadi barisan kotak yang rapi di tengah */
    .nav-menu {
        display: flex !important;
        flex-wrap: wrap !important; /* Kalau tidak muat, otomatis turun baris baru */
        justify-content: center !important; /* Menu rata tengah */
        gap: 8px !important; /* Jarak antar menu */
        padding: 0 !important;
        width: 100% !important;
    }

    /* 4. Tulisan Menu: Kecilkan sedikit agar pas di layar HP */
    .nav-menu li a {
        font-size: 13px !important;
        padding: 5px 10px !important;
        background: rgba(0,0,0,0.05); /* Beri background tipis agar seperti tombol */
        border-radius: 5px;
    }

    /* 5. Header: Pastikan header tidak menutupi konten (hero) */
    #navbar {
        position: relative !important; /* Di HP jangan dibuat melayang dulu agar simpel */
    }
}
html {
    scroll-behavior: smooth; /* Agar pergerakan scroll halus */
    scroll-padding-top: 70px; /* SESUAIKAN ANGKA INI dengan tinggi Navbar kamu */
}
/* --- PERBAIKAN TABEL UNTUK SEMUA ORANG --- */
.table-container {
    background: #ffffff !important;
    padding: 30px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05) !important;
    margin: 40px auto !important;
    max-width: 1200px !important;
}

.admin-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

/* Header Tabel - WAJIB CENTER AGAR PAS */
.admin-table thead tr {
    background-color: #1b4332 !important; /* Hijau PALABA */
}

.admin-table th {
    color: #ffffff !important;
    padding: 20px 10px !important;
    font-weight: 700 !important;
    text-align: center !important; /* Menyejajarkan judul ke tengah */
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Isi Tabel - WAJIB CENTER AGAR PAS */
.admin-table td {
    padding: 20px 10px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-align: center !important; /* Menyejajarkan isi ke tengah */
    vertical-align: middle !important;
    color: #333 !important;
    font-size: 15px !important;
}

/* Kolom Nama Lengkap (Khusus) */
.nama-hijau {
    color: #1b4332 !important;
    font-weight: 700 !important;
}

/* Badge Status (seperti kata 'Wakil') */
.status-badge {
    background-color: #e8f5e9 !important;
    color: #1b4332 !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-block;
}
/* --- Tambahan untuk Mobile Menu --- */

/* Sembunyikan tombol hamburger di laptop/desktop */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #1b4332; /* Hijau gelap khas Palaba */
}

/* Pengaturan khusus Layar HP (Mobile) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Munculkan tombol di HP */
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Sembunyikan menu bawaan di HP */
    #nav-wrapper {
        display: none; 
        position: absolute;
        top: 100%; /* Pas di bawah navbar */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 9999;
    }

    /* Muncul saat tombol diklik (ditambah class 'active' lewat JS) */
    #nav-wrapper.active {
        display: block;
    }

    .nav-menu {
        display: flex;
        flex-direction: column; /* Berderet ke bawah */
        padding: 0;
        margin: 0;
    }

    .nav-menu li {
        width: 100%;
        list-style: none;
    }

    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        font-family: 'Poppins', sans-serif;
    }
}
/* --- Paste di baris paling bawah file u.css --- */

/* Kunci agar halaman tidak bisa geser kanan-kiri (Fix area putih) */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Pengaturan Tabel di HP */
@media screen and (max-width: 768px) {
    .table-container {
        padding: 0 10px; /* Jarak sedikit dari pinggir layar */
        width: 100%;
        overflow-x: auto; /* Agar tabel bisa digeser kanan-kiri */
        display: block;
    }
    
    .admin-table {
        font-size: 13px; /* Kecilkan sedikit tulisan di HP */
        min-width: 600px; /* Memastikan tabel punya ruang dan tidak gepeng */
    }

    .admin-table td, .admin-table th {
        white-space: nowrap; /* Mencegah teks terpotong ke bawah berantakan */
        padding: 10px 5px;
    }
}
