/* 
 * ProSchool360 Modern UI System
 * High-end, premium aesthetic with glassmorphism and smooth animations
 */

:root {
    /* Color Palette - Premium & Trustworthy */
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-dark: #1e40af;
    /* Deep Blue */
    --primary-light: #60a5fa;
    /* Bright Blue */
    --secondary-color: #0f172a;
    /* Slate Dark */
    --accent-color: #8b5cf6;
    /* Violet Accent */
    --accent-glow: #c4b5fd;
    /* Soft Glow */

    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #f8fafc;
    /* Slate 50 */

    --bg-body: #f8fafc;
    /* Very light slate */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-neon: 0 0 15px rgba(37, 99, 235, 0.3);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Typography Overrides */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

/* Section Refinements */
.section-title h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-neon);
    background: rgba(255, 255, 255, 0.95);
}

/* Modern Button Styles */
.btn-modern {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-base);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Hero Section Enhancements */
.hero-area {
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    /* More space for fixed header */
}

/* Navbar Enhancements */
.navbar-area.sticky {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm) !important;
}

.navbar-nav .nav-item a {
    font-weight: 500;
    color: var(--secondary-color) !important;
    opacity: 0.8;
    transition: all 0.3s;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item a.active {
    color: var(--primary-color) !important;
    opacity: 1;
    font-weight: 600;
}

/* Features Section Specifics */
.feature-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* India Specific Section */
.india-benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover .india-benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card-visual {
    position: relative;
    padding: 20px;
}

.benefit-card-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.5;
    z-index: -1;
}


/* Mobile Fixed for 3D Viewer */
#three-js-viewer canvas {
    /* Critical for mobile: Allow vertical scroll, only capture horizontal swipe */
    touch-action: pan-y !important;
    outline: none;
}

/* -------------------------------------------
   Cartoon 3D Login UI (Playful Version)
------------------------------------------- */
.auth-split-layout {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eef2f6;
    /* Light gray background */
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.auth-split-layout::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: #FFD166;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.auth-split-layout::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: #06D6A0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    min-height: 550px;
}

/* Left Side Illustration */
.auth-illustration-side {
    width: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px 0 0 30px;
    position: relative;
    padding: 30px;
}

.illustration-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.1);
    mix-blend-mode: multiply;
    /* Removes white background visually */
}

/* Right Side Form */
.auth-form-side {
    width: 50%;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.auth-header-bar {
    background: #5465FF;
    /* Bright Blue */
    width: 100%;
    padding: 25px;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0 30px 0 0;
    letter-spacing: 1px;
}

.auth-form-content {
    padding: 40px 50px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Playful Inputs */
.playful-input-group {
    margin-bottom: 25px;
}

.playful-label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.playful-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #334155;
}

.playful-input:focus {
    border-color: #5465FF;
    background: #fff;
    box-shadow: 0 4px 12px rgba(84, 101, 255, 0.15);
    outline: none;
}

/* Playful Button */
.btn-playful {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #5465FF 0%, #4051F5 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(84, 101, 255, 0.3);
    margin-top: 10px;
}

.btn-playful:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(84, 101, 255, 0.4);
    background: linear-gradient(135deg, #4051F5 0%, #3040D5 100%);
}

/* Character Peeking */
.character-peek {
    position: absolute;
    right: -130px;
    bottom: 20px;
    width: 280px;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: multiply;
    /* Removes white background visually */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.5s ease;
}

/* Responsive Redesign */
@media (max-width: 991px) {
    .auth-split-layout {
        padding: 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-card {
        flex-direction: column;
        max-width: 100%;
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    }

    .auth-illustration-side {
        width: 100%;
        height: auto;
        padding: 40px 20px 0 20px;
        border-radius: 24px 24px 0 0;
        background: #f1f5f9;
    }

    .illustration-img {
        max-width: 250px;
        transform: scale(1);
    }

    .auth-form-side {
        width: 100%;
    }

    .auth-header-bar {
        border-radius: 0;
        background: transparent;
        color: #5465FF;
        font-size: 2rem;
        padding: 20px 40px 0 40px;
        text-align: left;
    }

    .auth-form-content {
        padding: 20px 40px 40px 40px;
    }

    .character-peek {
        /* On mobile, move character to top or hide if too cluttered */
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-header-bar {
        padding: 20px 25px 0 25px;
    }

    .auth-form-content {
        padding: 20px 25px 40px 25px;
    }
}


.hero-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #dc2626 !important;
    /* RED as requested */
    font-weight: 800;
}

.hero-title span {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: #000000 !important;
    /* BLACK as requested */
    margin-bottom: 35px;
    line-height: 1.7;
    font-weight: 500;
    /* Slightly bolder for black text legibility */
}

.trust-indicators {
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
    color: #2563eb !important;
    /* BLUE as requested */
    font-weight: 600;
    margin-top: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb !important;
    /* Double ensuring BLUE text */
}

.trust-item i {
    color: #2563eb !important;
    /* Ensure icons are also blue */
    font-size: 1.1rem;
}

/* Secondary Button Fix */
.glass-effect.btn {
    background: #ffffff !important;
    /* WHITE as requested */
    color: #0f172a !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.glass-effect.btn:hover {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* -------------------------------------------
   Bootstrap 5 Compatibility Layer (for BS3)
------------------------------------------- */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}

/* Spacing Utilities */
.m-0 {
    margin: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

/* Text Utilities */
.text-dark {
    color: #1e293b !important;
}

.text-white {
    color: #ffffff !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* User Override */
.text-muted {
    color: #000000 !important;
}

/* -------------------------------------------
   Sidebar Modernization (Round Icons + Glass Active)
------------------------------------------- */
aside.sidebar-left {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
    display: none !important;
}

.sidebar-search-wrapper {
    display: none !important;
}

.menu-category {
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    padding: 24px 28px 8px 28px !important;
}

ul.nav-main {
    padding: 0 12px !important;
}

/* Base Link Style */
ul.nav-main>li>a {
    border-radius: 50px !important;
    /* Fully Rounded Capsule */
    margin: 6px 0 !important;
    color: #64748b !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center;
    border: none !important;
}

ul.nav-main>li:hover>a {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(4px);
}

/* -----------------------------
   Round Icons Implementation
----------------------------- */
ul.nav-main li a i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    /* Fixed Width */
    height: 38px !important;
    /* Fixed Height */
    border-radius: 50% !important;
    /* Circle */
    background: #f1f5f9;
    /* Light Gray Background Default */
    color: #64748b !important;
    font-size: 1.1rem !important;
    margin-right: 14px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Hover Icon State */
ul.nav-main>li:hover>a i {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

/* -----------------------------
   Active Item "Glass Effect"
----------------------------- */
ul.nav-main>li.nav-active>a {
    /* Glass / Gradient Background */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.95)) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    /* Inner Light Border */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* Active Icon State */
ul.nav-main>li.nav-active>a i {
    background: rgba(255, 255, 255, 0.2) !important;
    /* Semi-transparent white circle */
    color: #ffffff !important;
    box-shadow: none !important;
}

/* -----------------------------
   Submenu Styling
----------------------------- */
ul.nav-children {
    background: transparent !important;
    box-shadow: none !important;
    padding: 5px 0 5px 10px !important;
}

ul.nav-children>li>a {
    padding: 8px 15px 8px 45px !important;
    /* Adjust padding for icon */
    color: #64748b !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif;
    border-radius: 30px !important;
    /* Rounded Submenu Items */
    margin: 2px 0 !important;
    position: relative;
    display: flex;
    align-items: center;
}

/* Submenu Icon (Caret) - Also Round */
ul.nav-children>li>a i {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
    margin-right: 10px !important;
    background: transparent !important;
    /* Transparent for submenu by default */
    box-shadow: none !important;
    border: 1px solid #e2e8f0;
    /* Subtle border ring */
}

ul.nav-children>li:hover>a {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

ul.nav-children>li:hover>a i {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Active Submenu Item */
ul.nav-children>li.nav-active>a {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    background: rgba(37, 99, 235, 0.1) !important;
    /* Light Glass Wash */
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

ul.nav-children>li.nav-active>a i {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}