/* ==========================================================================
   STYLE UTAMA - SI-PIAUD UIN MADURA
   Gabungan Hero Landing Page & iOS Glassmorphism
   ========================================================================== */

body {
    background-color: #f4f4f4;
    /* Efek Mesh Gradient dari desain iOS */
    background-image: 
        radial-gradient(at 0% 0%, rgba(25, 135, 84, 0.2) 0px, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.1) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(0, 77, 64, 0.15) 0px, transparent 50%), 
        radial-gradient(at 0% 100%, rgba(128, 44, 0, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    color: #333;
    overflow-x: hidden;
}

.overlay {
    background: rgba(255, 255, 255, 0.2);
    min-height: 100vh;
    padding: 40px 0 80px 0;
}

/* ==========================================================================
   LANDING PAGE / HERO SECTION (SEBELUM LOGIN)
   ========================================================================== */

.hero-section {
    padding: 60px 0 40px 0;
    text-align: center;
}

.main-logo { 
    width: 100px; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1)); 
}

.text-welcome-big { 
    font-size: 2.8rem; 
    font-weight: 800; 
    color: #14532d; 
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.sub-text-landing { 
    font-size: 1.15rem; 
    color: #3a5a40; 
    max-width: 650px; 
    margin: 20px auto 40px auto;
    line-height: 1.6;
}

/* Glass Login Button */
.btn-login-hero {
    background: #198754;
    color: #ffffff !important;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.3);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-login-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(25, 135, 84, 0.4);
    background: #14532d;
}

/* Stats Card */
.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 25px;
    border-bottom: 4px solid #198754;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover { 
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   HEADER & USER INFO (GLASS PILL)
   ========================================================================== */

.glass-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 60px;
    padding: 12px 35px;
    border: 1px solid rgba(25, 135, 84, 0.2); 
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.text-welcome { color: #14532d !important; font-weight: 700; }
.text-sub { color: #198754 !important; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }
.badge-green { background-color: #198754; color: #ffffff !important; font-weight: bold; }

/* ==========================================================================
   MENU CARD GRID (SESUDAH LOGIN)
   ========================================================================== */

.menu-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 25px;
    padding: 25px 10px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.menu-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.95);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.3);
    box-shadow: 0 15px 45px rgba(25, 135, 84, 0.15);
}

.menu-icon {
    font-size: 3.2rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    color: #198754;
}

.menu-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

/* ==========================================================================
   ANIMASI FADE-IN (STAGGERED)
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Class dasar untuk animasi */
.animate-fade {
    opacity: 0; 
    animation: fadeInUp 0.8s ease forwards;
}

/* Delay bertahap untuk landing page */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Khusus untuk Grid Menu agar muncul bergantian.
   Gunakan menu-anim-1, menu-anim-2, dst pada class menu anda.
*/
<?php for($i=1; $i<=15; $i++): ?>
.menu-anim-<?= $i ?> { 
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: <?= 0.1 * $i ?>s; 
}
<?php endfor; ?>


/* ==========================================================================
   FOOTER & LAYOUT
   ========================================================================== */

.footer-landing { 
    margin-top: 80px; 
    padding: 40px 0; 
    color: #5a7a68; 
    font-size: 0.9rem; 
    text-align: center;
}

@media (min-width: 992px) {
    .col-lg-5-custom { width: 20%; flex: 0 0 20%; }
}

@media (max-width: 768px) {
    .text-welcome-big { font-size: 2rem; }
    .glass-header { padding: 10px 20px; }
}