/* =========================================
   🚀 AKSH NITI - PREMIUM PORTAL CSS 🚀
   ========================================= */

/* -----------------------------------------
   1. BASE & TYPOGRAPHY
----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0B0F19;
    /* Deep Space Dark */
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: #03dac6;
    border-radius: 10px;
}

/* -----------------------------------------
   2. ANIMATED BACKGROUND (जादुई गोले)
----------------------------------------- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatOrb 12s infinite ease-in-out alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #03dac6;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: #FFD700;
    bottom: -150px;
    right: -100px;
    animation-delay: -6s;
    opacity: 0.15;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #b042ff;
    top: 30%;
    left: 40%;
    animation-duration: 18s;
    opacity: 0.15;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.15);
    }
}

/* -----------------------------------------
   3. GLOBAL UTILITIES (शीशे जैसे डब्बे)
----------------------------------------- */
.glass-card {
    background: rgba(20, 24, 34, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.text-teal {
    color: #03dac6;
}

.text-gold {
    color: #FFD700;
}

.text-blue {
    color: #29b6f6;
}

.text-red {
    color: #ff5252;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

/* -----------------------------------------
   4. AUTH & MODALS (लॉगिन पेज)
----------------------------------------- */
.auth-overlay,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(8, 11, 18, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    text-align: center;
}

.brand-logo-large {
    font-size: 3.5rem;
    color: #03dac6;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(3, 218, 198, 0.5));
}

.auth-card h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.auth-subtitle {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #03dac6;
    font-size: 1.1rem;
}

.auth-form input,
.glass-select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.auth-form input:focus {
    border-color: #03dac6;
    background: rgba(3, 218, 198, 0.05);
}

.auth-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-glow {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn {
    background: #03dac6;
    color: #000;
    box-shadow: 0 0 15px rgba(3, 218, 198, 0.3);
}

.primary-btn:hover {
    box-shadow: 0 0 25px rgba(3, 218, 198, 0.6);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #03dac6;
    color: #03dac6;
}

.google-btn {
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #666;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 10px;
}

.forgot-link {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.forgot-link:hover {
    color: #03dac6;
}

.guest-explore-btn {
    margin-top: 25px;
    background: transparent;
    border: none;
    color: #FFD700;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.guest-explore-btn:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.terms-text {
    font-size: 0.75rem;
    color: #555;
    margin-top: 15px;
}

/* -----------------------------------------
   5. SIDEBAR (Student Hub)
----------------------------------------- */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    height: 100%;
    background: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile-compact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-ring {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #03dac6, #b042ff);
}

.avatar-circle {
    width: 45px;
    height: 45px;
    background: #1a1a24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #03dac6;
}

.user-info-text h3 {
    font-size: 1.1rem;
    margin: 0 0 3px 0;
    color: #fff;
}

.view-profile-btn {
    transition: 0.2s;
}

.view-profile-btn:hover {
    color: #fff !important;
}

.sets-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 15px;
}

/* Sidebar Search */
.sidebar-search {
    position: relative;
    margin-bottom: 25px;
}

.sidebar-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.sidebar-search input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.sidebar-search input:focus {
    border-color: #03dac6;
}

.section-title {
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 10px;
}

.set-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
}

.set-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.set-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.set-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccc;
}

/* Community Banner */
.community-banner {
    margin-top: 30px;
    padding: 20px 15px;
    background: linear-gradient(135deg, rgba(3, 218, 198, 0.15), rgba(41, 182, 246, 0.15));
    border-radius: 12px;
    border: 1px solid rgba(3, 218, 198, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.community-banner:hover {
    box-shadow: 0 5px 15px rgba(3, 218, 198, 0.2);
    transform: translateY(-2px);
}

.community-banner i {
    font-size: 2rem;
    color: #29b6f6;
}

.community-banner h4 {
    font-size: 0.95rem;
    color: #fff;
}

.community-banner p {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 2px;
}

.sidebar-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #03dac6;
}

/* -----------------------------------------
   6. MAIN HEADER & WIDGETS
----------------------------------------- */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    z-index: 100;
}

.hamburger-btn {
    display: none;
}

/* Only visible on mobile */

/* Widgets */
.header-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.today-focus-tag {
    background: rgba(3, 218, 198, 0.1);
    border: 1px solid rgba(3, 218, 198, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.streak-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}

.streak-badge span {
    color: #fff;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.notification-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #ff5252;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff5252;
}

/* Language Toggle Pill */
.lang-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 66px;
    height: 34px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 17px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lang-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 28px;
    background: #03dac6;
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(3, 218, 198, 0.4);
}

.lang-toggle-wrapper[data-lang="hi"] .lang-toggle-slider {
    transform: translateX(30px);
}

.lang-text {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #888;
    transition: color 0.3s;
}

.lang-toggle-wrapper[data-lang="en"] .lang-en {
    color: #000;
}

.lang-toggle-wrapper[data-lang="hi"] .lang-hi {
    color: #000;
}

/* -----------------------------------------
   7. DASHBOARD CONTENT (App Grid)
----------------------------------------- */
.scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 30px 40px;
}

/* Continue Learning Banner */
.continue-learning-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, rgba(20, 24, 34, 0.8) 0%, rgba(3, 218, 198, 0.1) 100%);
    border-left: 4px solid #03dac6;
}

.cl-label {
    font-size: 0.75rem;
    color: #03dac6;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 5px;
    display: block;
}

.cl-info h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #fff;
}

.cl-btn {
    padding: 10px 25px;
    width: auto;
    display: inline-flex;
    font-size: 0.95rem;
}

/* App Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.app-card {
    background: rgba(25, 25, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
}

.app-card:hover::before {
    left: 150%;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Thematic Hover Colors */
.maths-theme:hover {
    border-color: #03dac6;
    box-shadow: 0 15px 30px rgba(3, 218, 198, 0.15);
}

.gk-theme:hover {
    border-color: #29b6f6;
    box-shadow: 0 15px 30px rgba(41, 182, 246, 0.15);
}

.hindi-theme:hover {
    border-color: #ffca28;
    box-shadow: 0 15px 30px rgba(255, 202, 40, 0.15);
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
}

.app-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-desc {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
    flex-grow: 1;
}

.app-footer {
    margin-top: 25px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Locked App */
.locked-card {
    opacity: 0.6;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

.locked-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.05);
}

.lock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff5252;
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
}

/* -----------------------------------------
   8. RESPONSIVE MOBILE FIXES
----------------------------------------- */
@media (max-width: 900px) {
    .hide-mobile {
        display: none !important;
    }

    .hamburger-btn {
        display: block;
    }

    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-header {
        padding: 15px 20px;
    }

    .scroll-content {
        padding: 0 20px 30px;
    }

    .continue-learning-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cl-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modal form inputs specific fix */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #03dac6;
}