/* --- THE LALIT INTERNATIONAL SCHOOL - MASTER UNIVERSAL FRAMEWORK --- 
   Theme: 3D Royal Glassmorphism (Blue & Gold)
   Fixes: ZERO Layout Shift + Modern App Visuals
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --royal-blue: #002366;
    --royal-blue-light: #003399;
    --gold: #D4AF37;
    --deep-gold: #aa8a2e;
    --light-gold: #fdfbf0;
    --success: #27ae60;
    --danger: #c0392b;
    --warning: #f39c12;
    --info: #2980b9;
    --paper-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --border-color: #e0d0b0;
    
    /* Enhanced 3D Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 35, 102, 0.08);
    --shadow-md: 0 10px 25px rgba(0, 35, 102, 0.15);
    --shadow-lg: 0 20px 45px rgba(0, 35, 102, 0.2);
    --shadow-inner: inset 0 2px 5px rgba(255, 255, 255, 0.8);
    
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

/* 🌟 BACKGROUND UPGRADE: Soft 3D Mesh so Glassmorphism is visible */
body { 
    background: linear-gradient(135deg, #f4f4f2 0%, #eef2f5 50%, #fdfbf0 100%);
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif; 
    margin: 0; padding: 0; 
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- SPACE FIX: Menu & Content Gap Removal (NO LAYOUT CHANGES) --- */
#menu-trigger-btn {
    position: fixed !important; 
    top: 15px !important; 
    left: 12px !important; 
    width: 45px; height: 45px;
    background: transparent !important; 
    border: none !important;             
    z-index: 20001; cursor: pointer; 
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px; 
    transition: 0.3s; outline: none;
}

#menu-trigger-btn span { 
    width: 25px; height: 3px; 
    background: var(--gold) !important; 
    border-radius: 2px; transition: 0.4s; 
    /* 3D shadow added to spans */
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.main-content { 
    padding: 0px !important; 
    margin-top: 0px !important;
    display: flex; flex-direction: column; align-items: center;
}

/* --- 🌟 3D LOGO EFFECT --- */
.school-logo { 
    width: 120px; height: 120px; object-fit: contain; display: block;
    margin: 0 auto 15px; 
    filter: drop-shadow(0 10px 15px rgba(0, 35, 102, 0.25)) drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4)); 
    transition: var(--transition); 
}
.school-logo:hover { transform: scale(1.05) translateY(-3px); filter: drop-shadow(0 15px 25px rgba(0, 35, 102, 0.3)); }

.receipt-logo { width: 80px !important; height: 80px !important; object-fit: contain; margin-bottom: 10px; }

/* --- 🌟 THE GLASSMORPHIC ROYAL CARD --- */
.royal-card { 
    width: 100%; 
    max-width: 2000px;
    height: auto; 
    min-height: fit-content; 
    margin: 0 auto !important; 
    padding: 40px 20px; 
    
    /* Glass Effect! */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0px;
    box-shadow: var(--shadow-md), inset 0 0 20px rgba(255,255,255,0.5);
    position: relative; 
    overflow: visible !important; 
    display: block; 
}

.royal-card::after {
    content: ""; 
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    /* Soft colorful inner glow */
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.05), inset 0 0 30px rgba(0, 51, 153, 0.03);
    pointer-events: none; 
    border-radius: 0px;
    z-index: 1;
}

#menu-container { position: fixed; top: 0; width: 100%; z-index: 9999; }

/* --- 🌟 3D COLORFUL HEADINGS --- */
.header { text-align: center; margin-bottom: 40px; border-bottom: 3px double rgba(212, 175, 55, 0.6); padding-bottom: 25px; }

h1, .brand-font { 
    font-family: 'Cinzel', serif; 
    margin: 0; text-transform: uppercase; 
    /* 3D Colorful Gradient Text */
    background: linear-gradient(135deg, var(--royal-blue), #0055ff, var(--royal-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.15));
}

h2 { 
    font-family: 'Cinzel', serif; 
    text-align: center; margin: 30px 0; width: 100%; 
    /* 3D Colorful Gradient Text */
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.1));
}

/* --- 🌟 3D POP-UP BUTTONS --- */
.royal-btn {
    /* 3D Gradient Surface */
    background: linear-gradient(135deg, var(--royal-blue-light), var(--royal-blue)); 
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.6); 
    padding: 12px 28px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    text-transform: uppercase; letter-spacing: 1.5px;
    border-radius: 8px; /* Slightly softened corners for 3D look */
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
    
    /* Inner light (top) and outer drop shadow (bottom) */
    box-shadow: 0 6px 15px rgba(0, 35, 102, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.royal-btn:hover { 
    background: linear-gradient(135deg, var(--gold), var(--deep-gold)); 
    color: var(--royal-blue); 
    transform: translateY(-4px); 
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.4); 
    text-shadow: none;
}

.search-box-wrapper { position: relative; max-width: 600px; margin: 10 auto 30px; width: 100%; }

/* --- 🌟 NEUMORPHIC / GLASSY INPUT FIELDS --- */
.search-input-royal {
    width: 100%; padding: 15px 25px; padding-right: 60px;
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.6); border-radius: 30px;
    font-size: 16px; outline: none; transition: var(--transition);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.05), 0 2px 5px rgba(0,0,0,0.02);
}

.form-section {
    /* Glassmorphism Section */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-left: 6px solid var(--gold);
    border-top: 1px solid rgba(255,255,255,0.8);
    border-right: 1px solid rgba(255,255,255,0.4);
    padding: 25px; margin-bottom: 30px; border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }

input, select, textarea {
    width: 100%; padding: 14px 16px; 
    
    /* 3D Inset Effect for inputs */
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255,255,255,0.8);
    border-bottom: 3px solid var(--gold); 
    border-radius: 8px;
    font-size: 15px; transition: var(--transition); 
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
}

input:focus, select:focus, textarea:focus {
    background: rgba(255,255,255,0.9);
    border-color: var(--royal-blue);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), 0 0 10px rgba(0, 35, 102, 0.1);
    outline: none;
}

/* --- 🌟 3D FLOATING CARDS (Profile / ID) --- */
.profile-grid-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; width: 100%; }

.custom-id-card {
    /* Glassmorphic ID Card */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.6); 
    border-radius: 12px;
    padding: 18px; display: flex; align-items: center; gap: 10px;
    cursor: pointer; transition: var(--transition); position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.custom-id-card:hover { 
    transform: scale(1.03) translateY(-5px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--royal-blue); 
    background: rgba(255, 255, 255, 0.9);
}

.id-photo { 
    width: 60px; height: 70px; object-fit: cover; 
    border: 2px solid var(--gold); border-radius: 6px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .main-content { padding-top: 0px !important; }
    .royal-card { padding: 15px; margin-top: 0px !important; }
    .school-logo { width: 90px; height: 90px; }
}
