/* ==========================================================================
   NIELITgo - LITE & COLOURFUL THEME ENGINE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Ubuntu:wght@500;700&display=swap');

:root {
    /* Base Colors */
    --bg-light: #fdfbfb;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    
    /* Vibrant Pastel Palette */
    --color-primary: #ff6b81;
    --color-peach: #ffeaa7;
    --color-mint: #55efc4;
    --color-blue: #74b9ff;
    --color-lavender: #a29bfe;

    /* Fonts Setup */
    --font-brand: 'Ubuntu', sans-serif; 
    --font-ui: 'Nunito', sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Decorative Blobs --- */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.blob-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: rgba(255, 107, 129, 0.3); }
.blob-2 { bottom: -10%; right: -5%; width: 500px; height: 500px; background: rgba(116, 185, 255, 0.3); }
.blob-3 { top: 40%; left: 60%; width: 300px; height: 300px; background: rgba(85, 239, 196, 0.2); }

@keyframes floatBlob {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.nav-container {
    background: rgba(253, 251, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand-logo { display: flex; align-items: center; text-decoration: none; }
.header-logo-img { height: 58px; width: auto; display: block; }
.footer-logo-img { height: 25px; width: auto; vertical-align: middle; margin: 0 4px; }

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-item:hover, .nav-item.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
}

.mobile-auth { display: none; }

/* ==========================================================================
   ⚡ DROPDOWN MENU ENGINE (NEW)
   ========================================================================== */
.nav-dropdown {
    position: relative;
}

.drop-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-content {
    position: absolute;
    top: 110%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 150;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .drop-icon {
    transform: rotate(180deg);
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.drop-item:hover {
    background: var(--color-blue);
    color: white;
}

/* ==========================================================================
   AVATAR & POPUP SYSTEM
   ========================================================================== */
.user-profile { position: relative; display: flex; align-items: center; }

.avatar-img {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
    border: 2px solid #ccc; cursor: pointer; filter: grayscale(100%); 
    transition: all 0.4s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.avatar-img:hover { transform: scale(1.05); }
.avatar-img.logged-in { filter: grayscale(0%); border-color: var(--color-mint); box-shadow: 0 4px 15px rgba(85, 239, 196, 0.4); }

.auth-popup {
    position: absolute; top: 55px; right: 0; background: white; width: 220px;
    padding: 1.5rem; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.04); opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}
.auth-popup.active { opacity: 1; visibility: visible; transform: translateY(0); }

.popup-title { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.2rem; }
.popup-sub { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 1.25rem; }

.popup-btn {
    display: block; text-align: center; padding: 0.6rem 1rem; border-radius: 10px;
    text-decoration: none; font-weight: 700; margin-bottom: 0.8rem; transition: all 0.3s ease;
}
.popup-btn:last-child { margin-bottom: 0; }

.p-login { background: var(--color-blue); color: white; }
.p-login:hover { background: #5aa7ff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4); }
.p-signup { background: transparent; color: var(--color-blue); border: 2px solid var(--color-blue); }
.p-signup:hover { background: var(--color-blue); color: white; }

.mobile-nav-toggle { display: none; }

/* ==========================================================================
   MAIN CONTENT & CARDS
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; flex-grow: 1; }

.hero { text-align: center; margin-bottom: 4rem; }
.welcome-badge { display: inline-block; background: white; color: var(--color-primary); padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }
.hero-title { font-size: 3.5rem; font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; font-weight: 600; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

.login-divider { grid-column: 1 / -1; color: var(--text-muted); }
.login-divider p { display: inline-block; background: rgba(255, 255, 255, 0.7); padding: 0.5rem 1.5rem; border-radius: 50px; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(0,0,0,0.03); margin-top: 0.5rem; }

.card { display: block; text-decoration: none; border-radius: 24px; padding: 2.5rem 2rem; position: relative; overflow: hidden; background: white; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 1; }
.card:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08); }

.card-flower { position: absolute; top: -30px; right: -30px; width: 140px; height: 140px; background: rgba(255, 255, 255, 0.4); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; z-index: -1; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card-flower { transform: scale(1.5) rotate(15deg); }

.card-peach { background: linear-gradient(135deg, #fff 0%, #fff9e6 100%); border-top: 5px solid var(--color-peach); }
.card-mint { background: linear-gradient(135deg, #fff 0%, #e0fbf2 100%); border-top: 5px solid var(--color-mint); }
.card-blue { background: linear-gradient(135deg, #fff 0%, #eaf3ff 100%); border-top: 5px solid var(--color-blue); }
.card-lavender { background: linear-gradient(135deg, #fff 0%, #f0efff 100%); border-top: 5px solid var(--color-lavender); }

.card-icon { width: 60px; height: 60px; background: white; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.card-peach .card-icon { color: #f39c12; }
.card-mint .card-icon { color: #00b894; }
.card-blue .card-icon { color: #0984e3; }
.card-lavender .card-icon { color: #6c5ce7; }
.card-title { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.8rem; }
.card-text { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }

.site-footer { text-align: center; padding: 1.5rem; background: white; border-top: 2px solid rgba(0,0,0,0.03); margin-top: auto; }
.site-footer p { color: var(--text-muted); font-weight: 600; font-size: 1rem; }

/* ==========================================================================
   🔥 STRICT LEFT-SIDE MOBILE RESPONSIVE ENGINE
   ========================================================================== */
@media (max-width: 768px) {
    .navbar { padding: 1rem 1.25rem; justify-content: center; }
    .header-logo-img { height: 36px; }

    .mobile-nav-toggle {
        display: block; position: absolute; left: 1.25rem; top: 50%;
        transform: translateY(-50%); width: 28px; height: 20px;
        background: transparent; border: none; cursor: pointer; z-index: 110;
    }
    .mobile-nav-toggle span {
        position: absolute; left: 0; width: 100%; height: 3px;
        background: var(--text-dark); border-radius: 4px; transition: 0.3s ease;
    }
    .mobile-nav-toggle .line-1 { top: 0; }
    .mobile-nav-toggle .line-2 { top: 8px; }
    .mobile-nav-toggle .line-3 { top: 16px; }
    .mobile-nav-toggle.active .line-1 { transform: translateY(8px) rotate(45deg); background: var(--color-primary); }
    .mobile-nav-toggle.active .line-2 { opacity: 0; }
    .mobile-nav-toggle.active .line-3 { transform: translateY(-8px) rotate(-45deg); background: var(--color-primary); }

    .user-profile { position: absolute; right: 1.25rem; }

    .nav-links {
        position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
        background: white; box-shadow: 15px 0 30px rgba(0,0,0,0.05);
        flex-direction: column; justify-content: flex-start; align-items: stretch;
        padding: 6rem 1.5rem 2rem 1.5rem; transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 105; overflow-y: auto; 
    }
    .nav-links.open { left: 0; }
    .nav-item { font-size: 1.1rem; padding: 0.8rem 1rem; width: 100%; }

    /* Mobile Accordion Logic for Dropdown */
    .nav-dropdown { width: 100%; }
    .dropdown-content {
        position: static; box-shadow: none; border: none; opacity: 1; 
        visibility: visible; transform: none; display: none; 
        background: transparent; padding: 0.5rem 0 0 1.5rem; 
    }
    .nav-dropdown.active .dropdown-content { display: block; }
    .nav-dropdown.active .drop-icon { transform: rotate(180deg); }
    .drop-item { padding: 0.6rem 1rem; }

    .mobile-auth {
        display: flex; flex-direction: column; gap: 0.8rem;
        margin-top: auto; padding-top: 1.5rem; border-top: 2px solid rgba(0,0,0,0.05);
    }
    .mobile-btn { text-align: center; padding: 0.8rem; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1.05rem; transition: 0.3s; }
    .m-login { background: var(--color-blue); color: white; }
    .m-signup { background: transparent; color: var(--color-blue); border: 2px solid var(--color-blue); }

    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; padding: 0 1rem; }
    .container { padding: 2rem 1rem; }
}
/* ==========================================================================
   MESS MENU SPECIFIC STYLES
   ========================================================================== */

/* Timing Badges for Meals */
.time-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Enhancing Hindi Text Readability */
.hindi-text {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 700;
    color: var(--text-dark); /* Made slightly darker for better contrast */
}

/* Full Menu Button Container */
.full-menu-action {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.btn-main {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-main i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 107, 129, 0.4);
}

.btn-main:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   ⚡ NESTED DROPDOWN ENGINE
   ========================================================================== */
.nested-dropdown { position: relative; }
.nested-content {
    position: absolute; top: 0; left: 100%; background: white; min-width: 160px;
    border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.04);
    padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 160;
}
@media (min-width: 769px) { .nested-dropdown:hover .nested-content { opacity: 1; visibility: visible; transform: translateX(0); } }
@media (max-width: 768px) {
    .nested-content { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 0 1.5rem; background: transparent; }
    .nested-dropdown.active .nested-content { display: block; }
    .nested-dropdown.active .fa-chevron-right { transform: rotate(90deg); transition: transform 0.3s ease; }
}

/* ==========================================================================
   ⚡ INTERACTIVE MODAL (TIMETABLE POPUP)
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(3, 7, 18, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center; opacity: 0;
    visibility: hidden; transition: all 0.3s ease; z-index: 999;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    background: white; width: 90%; max-width: 400px; border-radius: 24px; padding: 2.5rem;
    position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.2); transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: color 0.3s ease; }
.modal-close:hover { color: var(--color-primary); }
.step-container { display: none; }
.step-container.active { display: block; animation: fadeSlideIn 0.4s ease; }
.tt-btn { width: 100%; text-align: center; justify-content: center; border: none; cursor: pointer; font-family: var(--font-ui); }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* ==========================================================================
   ⚡ WAITING PAGE (SESSION COMMENCEMENT)
   ========================================================================== */
.waiting-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.waiting-box {
    background: white;
    max-width: 600px;
    width: 100%;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.waiting-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(116, 185, 255, 0.15); /* Light Blue Tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.waiting-icon {
    font-size: 2.5rem;
    color: var(--color-blue);
}

.waiting-desc {
    margin-bottom: 3rem;
}

.back-home-btn {
    background: var(--color-mint);
    box-shadow: 0 8px 20px rgba(85, 239, 196, 0.3);
}

.back-home-btn:hover {
    box-shadow: 0 12px 25px rgba(85, 239, 196, 0.4);
}

/* ==========================================================================
   ⚡ CLEANUP CLASSES (Replaces previous inline styles)
   ========================================================================== */
.nested-arrow {
    margin-left: auto;
    font-size: 0.8em;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.flex-col-gap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.icon-large {
    margin: 0 auto 1rem auto;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.text-blue {
    color: var(--color-blue);
}

.text-mint {
    color: var(--color-mint);
}

/* ==========================================================================
   ⚡ AUTHENTICATION PAGE (LOGIN / SIGNUP)
   ========================================================================== */
.auth-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-box {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.auth-toggle-box {
    display: flex;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: white;
    color: var(--color-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: none;
    animation: fadeSlideUp 0.4s ease;
}

.auth-form.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: #fdfbfb;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.1);
}

.forgot-pass {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-pass a {
    color: var(--color-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.forgot-pass a:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    font-size: 1.1rem;
    background: var(--color-blue);
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.3);
}

.auth-submit:hover {
    background: #5aa7ff;
    box-shadow: 0 12px 25px rgba(116, 185, 255, 0.4);
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ========================================================= */
/* ⚡ MODERN RECTANGULAR CARDS (Index & PYQs) ⚡ */
/* ========================================================= */

.card {
    padding: 1.2rem 1.5rem !important;  /* Upar-neeche ki space kam kardi (Patla look) */
    display: grid !important;
    grid-template-columns: auto 1fr !important; /* Icon ko left, Text ko right kiya */
    grid-template-rows: auto auto !important;
    align-items: center !important;
    text-align: left !important;
    gap: 0.2rem 1.2rem !important; /* Icon aur text ke beech ki space */
    min-height: auto !important; /* Box ki extra height hata di */
    border-radius: 12px !important; /* Edges thode smooth rakhe */
}

/* Icon ki setting */
.card-icon {
    grid-column: 1;
    grid-row: 1 / span 2; /* Icon dono text lines ke height ke barabar rahega */
    margin-bottom: 0 !important;
    font-size: 2.2rem !important;
}

/* Title ki setting */
.card-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
    font-size: 1.15rem !important;
}

/* Sub-text ki setting */
.card-text {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    font-size: 0.85rem !important;
    opacity: 0.8; 
}

/* Agar purane cards mein piche flower/blob tha, toh use chhupa diya taaki clean lage */
.card-flower {
    display: none !important; 
}
