/* * STYLE SHEET REKAP PRODI - FUTURISTIC GLASSMORPHISM 
 * Colors: ITI Orange (#ff7b00) & Deep Blue (#003366)
 */

:root {
    --iti-orange: #ff7b00;
    --iti-blue: #003366;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
}

body {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* --- BACKGROUND ANIMATION (The Dynamic Part) --- */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out;
    opacity: 0.6;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, var(--iti-orange), #ffb347);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--iti-blue), #00509e);
    animation-delay: 2s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #4fd1c5; /* Cyan accent for futuristic feel */
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

/* --- MAIN CONTAINER --- */
.glass-container {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 10;
}

/* --- HEADER --- */
.header-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 51, 102, 0.1);
}

.header-logo {
    height: 70px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.header-text h2 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--iti-blue);
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}

.sub-title {
    font-size: 1rem;
    color: var(--iti-orange);
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- GLASS PANELS (Reusable) --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* --- FILTER SECTION --- */
.filter-box {
    margin-bottom: 30px;
}

.filter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--iti-blue);
    font-size: 1.1rem;
}

.select-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

select {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-family: 'Exo 2', sans-serif;
    color: var(--iti-blue);
    cursor: pointer;
    appearance: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: 0.3s;
}

select:focus {
    outline: none;
    border-color: var(--iti-orange);
    box-shadow: 0 0 15px rgba(255, 123, 0, 0.2);
}

/* Custom Select Arrow */
.select-wrapper::after {
    content: "▼";
    font-size: 10px;
    color: var(--iti-orange);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --- BUTTON GLOW (Updated: Red-Orange Palette) --- */
.glow-on-hover {
    padding: 14px 35px;
    border: none;
    outline: none;
    color: #fff;
    /* Background tombol utama: Gradasi Orange ke Merah-Orange */
    background: linear-gradient(135deg, #ffb347 0%, #ff4500 100%);
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    transition: 0.3s;
    /* Shadow oranye hangat */
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

/* Efek Glow Bergerak di belakang tombol */
.glow-on-hover:before {
    content: '';
    /* PALET RED-ORANGE: Kuning Emas -> Orange -> Merah Bata */
    background: linear-gradient(
        45deg, 
        #ffc300, /* Kuning-Orange Cerah */
        #ff5733, /* Orange Persimmon */
        #c70039, /* Merah-Orange Gelap */
        #ff5733, /* Kembali ke Orange */
        #ffc300  /* Kembali ke Kuning */
    );
    background-size: 300%; /* Diperbesar agar gradasi bisa bergerak */
    
    position: absolute;
    top: -3px;
    left: -3px;
    z-index: -1;
    filter: blur(8px); /* Blur untuk efek neon halus */
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    animation: glowing-fire 8s linear infinite; /* Animasi lebih lambat & elegan */
    opacity: 0;
    border-radius: 14px;
    transition: opacity .3s ease-in-out;
}

/* Munculkan efek saat di-hover */
.glow-on-hover:hover:before {
    opacity: 1;
}

/* Efek tekan/angkat */
.glow-on-hover:hover {
    transform: translateY(-2px);
    /* Shadow menjadi lebih merah saat hover */
    box-shadow: 0 8px 25px rgba(199, 0, 57, 0.5); 
}

/* Animasi Pergerakan Warna */
@keyframes glowing-fire {
    0% { background-position: 0 0; }
    50% { background-position: 150% 0; }
    100% { background-position: 300% 0; }
}

/* --- CHART --- */
.chart-wrapper-display {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.chart-wrapper-display.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.chart-container {
    height: 400px;
    position: relative;
}

/* --- TABLE (Fixed Clipping Issue) --- */
h3.section-title {
    font-family: 'Rajdhani', sans-serif;
    color: var(--iti-blue);
    margin-top: 40px;
    font-size: 1.8rem;
    text-transform: uppercase;
    border-left: 5px solid var(--iti-orange);
    padding-left: 15px;
}

.table-wrapper {
    overflow-x: auto;
    /* Menambahkan padding agar bayangan tidak terpotong di sisi-sisi */
    padding: 10px; 
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
}

table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0 8px; /* Memberi jarak antar baris agar efek timbul lebih jelas */
    min-width: 800px;
}

th {
    padding: 18px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--iti-blue);
    border-bottom: 2px solid rgba(0, 51, 102, 0.1);
    background: transparent; /* Header menyatu dengan background */
}

tbody tr {
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease-in-out;
    border-radius: 10px; /* Sudut membulat pada baris */
}

/* EFEK HOVER YANG DIPERBAIKI */
tbody tr:hover {
    /* 1. Background jadi putih solid agar kontras */
    background: #ffffff; 
    
    /* 2. HAPUS scale agar tidak terpotong kiri-kanan */
    transform: none; 
    
    /* 3. Gunakan Shadow yang lebih kuat untuk efek "mengangkat" */
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.15); 
    
    /* 4. Pastikan posisi relatif agar shadow muncul di atas elemen lain */
    position: relative; 
    z-index: 10;
}

td {
    padding: 15px;
    text-align: center;
    border: none;
    font-weight: 500;
    color: var(--text-primary);
}

/* Membulatkan sudut kiri dan kanan setiap baris */
td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.prodi-name {
    text-align: left;
    color: var(--iti-blue);
    font-weight: 700;
}

.total-col {
    background: linear-gradient(135deg, var(--iti-blue), #002244);
    color: white !important;
    font-weight: bold;
}

/* Khusus kolom total, shadow berbeda */
tbody tr td.total-col {
    box-shadow: -5px 0 10px rgba(0,0,0,0.05);
}

/* --- FOOTER & LINKS --- */
.footer-actions {
    margin-top: 30px;
    text-align: right;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.5);
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.back-link:hover {
    background: var(--iti-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
}

.page-footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
    position: relative;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glass-container { padding: 20px; }
    .header-wrapper { flex-direction: column; text-align: center; gap: 10px; }
    .filter-inner { flex-direction: column; align-items: stretch; }
    .select-wrapper { max-width: 100%; }
}