/* css/global.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: #0b1120;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

body::before {
    width: 400px;
    height: 400px;
    background: rgba(20, 184, 166, 0.12);
    top: -100px;
    left: -100px;
}

body::after {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.12);
    bottom: -150px;
    right: -100px;
}

/* 🔥 TOP BANNER STYLING 🔥 */
.top-system-banner {
    background: linear-gradient(90deg, #020617 0%, #1e3a8a 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 0 20px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.banner-text-content {
    position: relative;
    z-index: 2;
}

.banner-text-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.banner-text-content p {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.banner-datetime {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

.banner-books-icon {
    font-size: 45px;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* GLASS CARDS */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 35px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.gradient-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* LAYOUT & SIDEBAR */
.public-layout {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
}

.public-sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    width: 100%;
    max-width: 140px;
    margin: 0 auto 40px auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left: 3px solid #2dd4bf;
}

/* MOBILE HEADER */
.mobile-header {
    display: none;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 20px 12px 20px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

.mobile-header-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.mobile-logo-icon {
    height: 45px;
    width: 45px;
    border-radius: 50%;
}

.hamburger-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* MAIN CONTENT AREA */
.public-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 20px;
}

.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.public-footer {
    background: rgba(11, 17, 32, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 20px calc(env(safe-area-inset-bottom, 0px) + 20px) 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.footer-links a {
    color: #38bdf8;
    text-decoration: none;
    margin: 0 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .public-layout {
        flex-direction: column;
    }

    .public-sidebar {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 69px);
        left: -100%;
        width: 260px;
        height: calc(100vh - (env(safe-area-inset-top, 0px) + 69px));
        background: #0f172a;
        z-index: 150;
    }

    .public-sidebar.active {
        left: 0;
    }

    .sidebar-logo {
        display: none;
    }

    .public-main {
        padding-top: 10px;
        overflow-y: visible;
    }

    .top-system-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .banner-datetime {
        justify-content: center;
        flex-wrap: wrap;
    }

    .banner-books-icon {
        display: none;
    }
}

/* Poori website par smooth fade-in effect ke liye */
body {
    animation: smoothLoad 0.4s ease-in-out;
}

@keyframes smoothLoad {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* =========================================
   CONTACT SUPPORT BOX STYLING
========================================= */
.support-info-box {
    display: none; 
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 10px; 
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
    box-sizing: border-box;
    width: 100%; 
}

.support-info-box.show-box {
    display: flex;
    animation: smoothFadeIn 0.3s ease-out; 
}

.support-info-box p {
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 12px;
    color: #cbd5e1;
}

.support-email {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    padding: 10px 14px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease; 
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
}

.support-email:hover {
    color: #ffffff; 
    background: rgba(56, 189, 248, 0.15); 
    border-color: rgba(56, 189, 248, 0.5); 
    text-shadow: 0px 0px 8px rgba(56, 189, 248, 0.8); 
    transform: translateY(-2px); 
}

/* =========================================
   SIDEBAR FOOTER STYLING
========================================= */
.sidebar-footer {
    margin-top: auto;
    padding-top: 15px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.sidebar-footer p {
    margin-bottom: 3px;
}
/* =========================================
   PORTAL SELECTION CARD & HOVER EFFECTS 🔥
========================================= */

/* Subtitle styling */
.portal-subtitle {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Buttons wrapper */
.portal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Base button properties */
.portal-btn {
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth animation effect */
}

/* 1. Management Portal Button Styling & Hover */
.management-btn {
    border: none;
    background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
    color: #ffffff;
}

.management-btn:hover {
    transform: translateY(-4px); /* Button thoda upar uthega */
    box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.6); /* Cyan glow effect */
    filter: brightness(1.15); /* Color bright ho jayega */
}

/* 2. Student Portal Button Styling & Hover */
.student-btn {
    border: 1px solid rgba(124, 146, 175, 0.3);
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
}

.student-btn:hover {
    transform: translateY(-4px); /* Button thoda upar uthega */
    background: rgba(45, 212, 191, 0.15); /* Light teal background tint */
    border-color: #2dd4bf; /* Border cyan chamkega */
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5); /* Soft drop shadow */
}