/* File: kelulusan.css - Styling untuk halaman pengumuman kelulusan */

/* Section Utama */
.grad-section {
    padding: 60px 5%;
    background: linear-gradient(to bottom, #f9f9f9, #ffffff);
    min-height: 80vh;
}

/* Judul Halaman */
.grad-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto; 
    margin-right: auto;
}

.grad-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green); /* Mengambil warna hijau dari header.php */
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grad-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Kotak Pencarian */
.search-wrapper {
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

.search-icon {
    padding-left: 20px;
    color: var(--primary-green);
    font-size: 24px;
}

.search-input {
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    outline: none;
    border-radius: 0 50px 50px 0;
    color: #333;
}

/* Tabel Cantik */
.table-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.table-responsive {
    overflow-x: auto; /* Agar bisa di-scroll di HP */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Lebar minimum agar tidak gepeng di HP */
}

thead {
    background-color: var(--primary-green);
    color: white;
}

th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

td {
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
    font-size: 15px;
}

tbody tr:hover {
    background-color: #fafffa; /* Efek hover hijau tipis */
}

/* Badge Status (Lulus/Tunda) */
.status-badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lulus {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.ditunda {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc80;
}

/* Pesan Data Tidak Ditemukan */
.not-found {
    text-align: center;
    padding: 50px;
    display: none; /* Default sembunyi */
}

.not-found i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .grad-section {
        padding: 40px 20px;
    }
    
    .grad-header h2 {
        font-size: 2rem;
    }
    
    .grad-header p {
        font-size: 1rem;
    }
    
    .search-wrapper {
        padding: 8px;
        border-radius: 40px;
        margin-bottom: 40px;
    }
    
    .search-input {
        padding: 12px;
        font-size: 15px;
    }
    
    th, td {
        padding: 15px 12px;
        font-size: 14px;
    }
    
    table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .grad-header h2 {
        font-size: 1.7rem;
    }
    
    .grad-header p {
        font-size: 0.9rem;
    }
    
    .search-wrapper {
        margin-bottom: 30px;
    }
    
    th, td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .not-found {
        padding: 30px 20px;
    }
}

/* --- CSS DROPDOWN MENU (REVISI FINAL) --- */
.main-nav li { 
    position: relative; 
}

.dropdown-menu {
    /* PENTING: Pakai !important biar gak kalah sama CSS navbar atasnya */
    display: none !important; 
    
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 9999;
    padding: 0;
    
    /* Paksa susunan ke bawah, bukan ke samping */
    flex-direction: column !important; 
    border-top: 3px solid #4CAF50;
}

.dropdown-menu li { 
    display: block; 
    width: 100%; 
    margin: 0; 
}

.dropdown-menu li a {
    padding: 12px 20px;
    color: #333 !important;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #4CAF50 !important;
}

/* Munculkan HANYA saat di-hover */
.main-nav li:hover .dropdown-menu { 
    display: block !important; 
}



/* Tombol Cari */
.btn-cari {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0 50px 50px 0; /* Lengkung kanan saja biar nyatu sama input */
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-cari:hover { background-color: #388E3C; }