
        :root {

            --base-url: "https://www.tutorialspoint.com/practice/";
            --loader-bg: url("/practice/images/loader.gif");
            --logo-img: url("/practice/images/bookMark_unclicked.png");
            --logo-img-clicked: url("/practice/images/bookMark_clicked.gif");
            --dark-logo-img: url("/practice/images/dark_bookMark_unclicked.png");


            --bg-primary: #f8fafc;
            --bg-secondary: #ffffff;
            --bg-tertiary: #e2e8f0;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            --border-color: #e2e8f0;
            --card-bg: rgba(255, 255, 255, 0.8);
            --card-border: rgba(0, 0, 0, 0.1);
            --search-bg: rgba(0, 0, 0, 0.05);
            --search-border: rgba(0, 0, 0, 0.2);
            --search-focus-border: #6366f1;
            --dropdown-bg: #ffffff;
            --compiler-item-bg: #f1f5f9;
            --compiler-item-hover: #e2e8f0;
            --primary-color: #40a944;
        }

        .dark-theme {

            /* Dark theme variables */
            --bg-primary: #0f0f23;
            --bg-secondary: #1a1a3e;
            --bg-tertiary: #2d1b69;
            --text-primary: white;
            --text-secondary: #a1a1aa;
            --text-muted: #b5b5b5;
            --border-color: #374151;
            --card-bg: rgba(27, 21, 46, 0.6);
            --card-border: rgba(255, 255, 255, 0.1);
            --search-bg: rgba(255, 255, 255, 0.1);
            --search-border: rgba(255, 255, 255, 0.2);
            --search-focus-border: #6366f1;
            --dropdown-bg: #1a1a3e;
            --compiler-item-bg: #374151;
            --compiler-item-hover: #4b5563;
        }

        a {
            text-decoration: none;
        }

        .log-nav-btn {
            display: none;
        }

        /* Top Navigation Header */
        .top-nav {
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            padding: 0.5rem 0;
        }

        .top-nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-links a {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: color 0.3s ease;
            padding: 0.5rem 0;
            white-space: nowrap;
        }

        .nav-links a:hover {
            color: var(--text-primary);
        }

        .nav-links a i {
            font-size: 1rem;
            width: 16px;
        }

        .social-links {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-left: 24%;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: #ffffff0d !important;
            border: 1px solid var(--card-border);
            border-radius: 50%;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            background: var(--compiler-item-hover);
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        .social-links a i {
            font-size: 1.1rem;
        }

        .header,
        .top-nav {
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        /* Header */
        .header {
            background: var(--bg-secondary);
            padding: .6rem 0;
            border-bottom: 1px solid var(--border-color);
            position: relative;
            will-change: transform;
            display: flex;
        }

        .header.sticky {
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .header.sticky .dropdown-mega {
            position: fixed;
            top: 100%;
            z-index: 1001;
        }

        .header-container {
            max-width: 1400px;
            margin: 0;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 3rem;
        }

        .left-section {
            display: flex !important;
            align-items: center !important;
            gap: 2rem !important;
            min-width: 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Logo container */
        .logo-container {
            display: flex;
            align-items: center;
        }

        .logo-desktop {
            display: block;
            height: 42px;
            width: auto;
        }

        .logo-mobile {
            display: none;
            height: 42px;
            width: 43px;
        }

        .logo-desktop-path {
            transition: fill 0.3s ease;
        }

        .dark-theme .logo-desktop-path[fill="var(--clr-text)"] {
            fill: #ffffff;
        }

        .logo-desktop-path[fill="var(--clr-text)"] {
            fill: #000000;
        }

        @media (max-width: 768px) {
            .logo-desktop {
                display: none;
            }

            .logo-mobile {
                display: block;
            }
        }

        /* Points Info Button - Replaces Category Button */
        .points-info {
            cursor: pointer;
            display: flex;
            flex-direction: column;
            font-size: 15px;
            transition: var(--transition);
            color: var(--text-primary);
            background-color: rgba(0, 0, 0, 0.02);
            padding: 10px;
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(0, 0, 0, 0.05);
            height: auto;
            align-items: center;
            min-width: 180px;
            flex-shrink: 0;
        }

        .dark-theme .points-info {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .points-info:hover {
            background-color: rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .dark-theme .points-info:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .points-info span {
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

        .points-info div {
            font-size: 11px;
            opacity: 0.8;
        }

        .points-info::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            width: 0%;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            z-index: 1;
            transition: width 0.5s ease;
        }

        /* Points Popup */
        body.popup-open::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        #points-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            width: 80%;
            max-width: 900px;
            height: 70vh;
            max-height: 600px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1001;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        #points-popup.show {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .close-popup {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            background: rgba(0, 0, 0, 0.05);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
        }

        .dark-theme .close-popup {
            background: rgba(255, 255, 255, 0.05);
        }

        .close-popup:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .popup-container {
            display: flex;
            width: 100%;
            height: 100%;
        }

        .popup-left {
            flex: 1;
            padding: 20px;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }

        .popup-right {
            flex: 2;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        #points-popup h3 {
            margin: 0 0 20px 0;
            padding-bottom: 10px;
            font-size: 18px;
            color: var(--text-primary);
            font-weight: 500;
            text-align: center;
        }

        .popup-left h3 {
            border-bottom: 1px solid var(--border-color);
        }

        .current-level {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 20px;
        }

        .current-level h4 {
            font-size: 16px;
            margin: 6px 0px;
            color: var(--text-primary);
        }

        .level-badge {
            font-size: 18px;
            font-weight: bold;
            color: white;
            margin-bottom: 20px;
            padding: 8px 16px;
            border-radius: 20px;
            background-color: var(--primary-color);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .user-stats {
            width: 100%;
            margin-top: 20px;
        }

        .stat-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding: 8px;
            border-radius: 6px;
            background-color: rgba(0, 0, 0, 0.02);
        }

        .dark-theme .stat-item {
            background-color: rgba(255, 255, 255, 0.02);
        }

        .stat-item span {
            font-weight: bold;
            color: var(--primary-color);
        }

        .points-popup-cards-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 75%;
            position: relative;
            overflow: hidden;
            margin: 20px 0;
        }

        .points-popup-level-card {
            min-width: 220px;
            max-width: 280px;
            height: 85%;
            background: var(--card-bg);
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            position: absolute;
            display: flex;
            flex-direction: column;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 1px solid var(--border-color);
        }

        .points-popup-card-image {
            width: 100%;
            height: 180px;
            overflow: hidden;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
        }

        .points-popup-card-image img {
            width: 140px;
            height: 140px;
            object-fit: contain;
        }

        .points-popup-card-content {
            padding: 20px;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 10px;
        }

        .points-popup-card-content h4 {
            margin: 0;
            font-size: 18px;
            color: var(--text-primary);
            font-weight: 600;
        }

        .points-popup-card-content p.points {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            color: var(--primary-color);
        }

        .card-navigation {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 20px;
        }

        .nav-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .nav-btn:hover:not(:disabled) {
            background: #89ff6b;
            transform: scale(1.1);
        }

        .nav-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* Trophy Icon for Mobile */
        .trophy-icon {
            display: none;
            cursor: pointer;
            font-size: 18px;
            padding: 8px;
            border-radius: 8px;
            background-color: rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            color: #FFD700;
            /* Gold color for trophy */
        }

        .dark-theme .trophy-icon {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .trophy-icon:hover {
            background-color: rgba(0, 0, 0, 0.05);
            transform: translateY(-1px);
        }

        .dark-theme .trophy-icon:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }

        .dashboard-btn {
            margin-top: auto;
            /* pushes it to bottom of left panel */
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 20px;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            color: white;
            background: linear-gradient(135deg, #40a944, #89ff6b);
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        .dashboard-btn i {
            font-size: 18px;
        }

        .dashboard-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
            background: linear-gradient(135deg, #89ff6b, var(--primary-color));
        }




        @media (max-width: 768px) {
            .header-container {
                padding: 0 1rem;
            }

            .nav-menu {
                gap: 1rem;
            }

            .nav-link {
                display: none;
            }

            .points-info {
                display: none !important;
            }

            .trophy-icon {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            #points-popup {
                width: 95%;
                height: 40vh;
            }

            .popup-container {
                flex-direction: column;
            }

            .popup-left {
                border-right: none;
                border-bottom: 1px solid var(--border-color);
            }
        }

        /* Theme Toggle Button */
        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            color: var(--text-primary);
        }

        .theme-toggle:hover {
            border-radius: 50%;
            background: var(--compiler-item-hover);
        }

        /* Search Box Styling */
        .search-container {
            position: relative;
            flex: 1;
            max-width: 400px;
            min-width: 0;
        }

        .search-box {
            width: 100%;
            background: var(--search-bg);
            border: 2px solid var(--search-border);
            border-radius: 12px;
            padding: 0.7rem 1rem 0.7rem 2.5rem;
            color: var(--text-primary);
            font-size: 0.9rem;
            outline: none;
            transition: all 0.3s ease;
        }

        .search-box::placeholder {
            color: var(--text-muted);
        }

        .search-box:focus {
            border-color: var(--search-focus-border);
            background: var(--search-bg);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        }

        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 42%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 0.9rem;
            pointer-events: none;
        }

        .clear-search {
            position: absolute;
            right: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.2rem;
            border-radius: 50%;
            display: none;
        }

        .clear-search:hover {
            background: var(--card-bg);
            color: var(--text-primary);
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .nav-link:hover {
            color: var(--text-primary);
        }

        .login-btn {
            background: linear-gradient(135deg, #6366f1, #4f46e5);
            color: white;
            padding: 0.7rem 1.5rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .two {
            display: none;
        }

        .login-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
        }

        /* Dropdown */
        .dropdown-mega {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-top: none;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 2rem;
        }

        .dropdown-mega.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .header.sticky .dropdown-mega {
            position: fixed;
            top: calc(var(--sticky-header-height, 80px) + var(--sticky-top-nav-height, 60px));
        }

        .mega-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .category-column {
            background: var(--card-bg);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

        .column-title {
            color: #6366f1;
            font-weight: 600;
            margin-bottom: 1rem;
            font-size: 1.1rem;
            border-bottom: 2px solid #6366f1;
            padding-bottom: 0.5rem;
        }

        .compiler-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }

        .compiler-item {
            background: var(--compiler-item-bg);
            padding: 0.7rem;
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-primary);
            font-size: 0.9rem;
        }

        .compiler-item:hover {
            background: var(--compiler-item-hover);
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        /* Enhanced Mobile Menu Button */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .mobile-menu-btn:hover {
            background: var(--compiler-item-hover);
        }

        .mobile-menu-btn i {
            transition: transform 0.3s ease;
        }

        #mobileNavDropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999 !important;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            opacity: 0;
            display: block;
        }

        #mobileNavDropdown.active,
        #mobileNavDropdown.show,
        #mobileNavDropdown.open {
            max-height: 600px !important;
        }

        /* Sticky adjustments for mobile dropdown */
        .top-nav.sticky .mobile-nav-dropdown {
            position: fixed;
            top: var(--sticky-top-nav-height, 60px);
        }

        .mobile-nav-links {
            padding: 1rem 0;
        }

        .mobile-nav-links a {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.875rem 2rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }

        .mobile-nav-links a:hover,
        .mobile-nav-links a:focus {
            background: var(--compiler-item-hover);
            color: var(--text-primary);
            border-left-color: var(--accent-color, #6366f1);
            transform: translateX(4px);
        }

        .mobile-nav-links a i {
            font-size: 1.1rem;
            width: 20px;
            opacity: 0.8;
        }


        /* Responsive adjustments for top nav */
        @media (max-width: 1024px) {
            :root {
                --sticky-top-nav-height: 55px;
                --sticky-header-height: 75px;
            }

            .top-nav-container,
            .header-container {
                max-width: 100%;
                padding: 0 1.5rem;
            }

            .nav-links {
                gap: 1.5rem;
            }

            .nav-links a {
                font-size: 0.85rem;
                padding: 0.4rem 0;
            }

            .social-links {
                gap: 0.75rem;
            }

            .search-container {
                max-width: 300px;
            }

            .nav-menu {
                gap: 1.5rem;
            }

            .nav-link {
                font-size: 0.9rem;
            }

            .login-btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }

            .mega-container {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
        }

        @media (max-width: 850px) {
            :root {
                --sticky-top-nav-height: 50px;
                --sticky-header-height: 70px;
            }

            /* Top Navigation Mobile */
            .top-nav {
                position: relative;
                padding: 0.4rem 0;
            }

            .top-nav-container {
                flex-wrap: wrap;
                gap: 0;
                padding: 0 1rem;
                justify-content: flex-start;
            }

            .nav-links {
                display: none;
            }

            .mobile-nav-links {
                padding-top: 4.3rem;
            }

            .mobile-menu-btn {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                order: 1;
            }

            .social-links {
                gap: 0.5rem;
                order: 2;
                margin-left: 45%;
            }

            .social-links a {
                width: 32px;
                height: 32px;
            }

            .social-links a i {
                font-size: 1rem;
            }

            /* Header Mobile */
            .header {
                padding: 0.75rem 0;
            }

            .header-container {
                flex-wrap: wrap;
                gap: 1rem;
                padding: 0 1rem;
            }

            .left-section {
                gap: 1rem;
                min-width: 0;
            }

            .category-btn {
                padding: 0.4rem;
                font-size: 0.9rem;
                min-width: 40px;
            }

            .category-btn p {
                display: none;
            }

            .search-container {
                order: 3;
                max-width: none;
            }

            .search-box {
                font-size: 0.9rem;
                padding: 0.65rem 1rem 0.65rem 2.5rem;
                min-width: 99%;
            }

            .nav-menu {
                gap: 1rem;
                align-items: center;
            }

            .nav-menu .nav-link {
                display: none;
            }

            .login-btn {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
                white-space: nowrap;
                display: none;
            }

            .log-nav-btn {
                display: block;
                position: absolute;
                top: 10px;
                right: 10px;
            }

            .two {
                display: block;
                position: absolute;
                top: 8px;
                right: 15px;
            }

            /* Enhanced Mega dropdown for mobile */
            .dropdown-mega {
                left: 0;
                right: 0;
                max-height: 70vh;
                overflow-y: auto;
                border-radius: 0 0 12px 12px;
            }

            .mega-container {
                flex-direction: column;
                padding: 1rem;
                gap: 1.5rem;
            }

            .category-column {
                width: 100%;
            }

            .compiler-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .compiler-item {
                padding: 0.75rem;
                font-size: 0.85rem;
                border-radius: 8px;
                transition: all 0.3s ease;
            }

            .compiler-item:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            }
        }

        /* Extra Small Mobile (max-width: 480px) */
        @media (max-width: 480px) {
            :root {
                --sticky-top-nav-height: 48px;
                --sticky-header-height: 65px;
            }

            .top-nav-container,
            .header-container {
                padding: 0 0.75rem;
                flex-direction: row;
            }

            .header {
                padding: 0;
            }

            .header-container {
                padding: 0.8rem .7rem;
            }

            .social-links {
                gap: 0.25rem;
            }

            .social-links a {
                display: none;
            }

            .social-links a i {
                font-size: 0.9rem;
            }

            .left-section {
                gap: 0.75rem !important;
            }

            .category-btn {
                padding: 0.5rem;
                min-width: 38px;
            }

            .login-btn {
                padding: 0.5rem 0.75rem;
                font-size: 0.85rem;
            }

            .search-box {
                padding: 0.6rem 1rem 0.6rem 2.25rem;
                font-size: 0.85rem;
            }

            .mobile-nav-links a {
                padding: 0.75rem 1rem;
                font-size: 0.9rem;
            }

            .compiler-grid {
                grid-template-columns: 1fr;
            }

            .mega-container {
                display: flex;
                flex-direction: row;
                gap: 10px;
            }

            .column-title {
                font-weight: 600;
                margin-bottom: 10px;
                font-size: 0.88rem;
            }

            .dropdown-mega {
                padding: 0px;
            }

            .category-column {
                padding: 5px;
            }

            .compiler-item {
                padding: 0.5rem;
                font-size: 0.75rem;
            }
        }

        /* Landscape mobile adjustments */
        @media (max-width: 768px) and (orientation: landscape) {
            .top-nav {
                padding: 0.25rem 0;
            }

            .header {
                padding: 0.5rem 0;
            }

            .search-container {
                margin-top: 0;
                order: initial;
                flex: 1;
                max-width: 250px;
            }

            .header-container {
                flex-wrap: nowrap;
            }

            .mobile-nav-dropdown {
                max-height: 50vh;
                overflow-y: auto;
            }
        }

        /* Enhanced Animations */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-15px);
                max-height: 0;
            }

            to {
                opacity: 1;
                transform: translateY(0);
                max-height: 600px;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Add this new media query for 14-inch laptops */
        @media (max-width: 1440px) {

            .top-nav-container,
            .header-container {
                width: 100%;
                padding: 0 1.5rem;
            }

            .left-section {
                gap: 1.5rem !important;
            }

            .points-info {
                min-width: 180px;
                padding: 8px;
                font-size: 14px;
            }

            .search-container {
                max-width: clamp(350px, 25rem, 20vw);
            }

            .search-box {
                min-width: 200px;
                font-size: 0.85rem;
                padding: 0.6rem 1rem 0.6rem 2.5rem;
            }


            .social-links {
                gap: 0.75rem;
                margin-left: 22%;
            }

            .social-links a {
                width: 32px;
                height: 32px;
            }

        }

        .mobile-nav-links a {
            animation: fadeInUp 0.3s ease-out;
            animation-fill-mode: both;
        }

        .mobile-nav-links a:nth-child(1) {
            animation-delay: 0.1s;
        }

        .mobile-nav-links a:nth-child(2) {
            animation-delay: 0.15s;
        }

        .mobile-nav-links a:nth-child(3) {
            animation-delay: 0.2s;
        }

        .mobile-nav-links a:nth-child(4) {
            animation-delay: 0.25s;
        }

        .mobile-nav-links a:nth-child(5) {
            animation-delay: 0.3s;
        }

        .mobile-nav-links a:nth-child(6) {
            animation-delay: 0.35s;
        }

        .mobile-nav-links a:nth-child(7) {
            animation-delay: 0.4s;
        }

        .mobile-nav-links a:nth-child(8) {
            animation-delay: 0.45s;
        }

        .mobile-nav-links a:nth-child(9) {
            animation-delay: 0.5s;
        }

        .header.sticky {
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        /* Focus states for accessibility */
        .mobile-menu-btn:focus,
        .category-btn:focus {
            outline: 2px solid var(--accent-color, #6366f1);
            outline-offset: 2px;
        }

        .mobile-nav-links a:focus {
            outline: 2px solid var(--accent-color, #6366f1);
            outline-offset: -2px;
        }

        /* Prevent body scroll when mobile menu is open */
        body.mobile-menu-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Loading state */
        .navigation-loading {
            pointer-events: none;
            opacity: 0.7;
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .mobile-nav-dropdown {
                border: 2px solid var(--border-color);
            }

            .mobile-nav-links a:hover {
                border-left-width: 4px;
            }
        }

        /* Footer CSS */
        .foot-main {
            background-image: url("https://www.tutorialspoint.com/images/footer-bg.svg");
            background-repeat: no-repeat;
            background-size: 60%;
            background-position: top 20px right 20px;
            margin-left: auto;
            margin-right: auto;
            color: #fff;
            padding-top: 1.813rem;
            padding-bottom: 6rem;
            align-items: flex-start;
            gap: 2rem;
        }

        @media (min-width: 45rem) {
            .foot-main {
                background-position: top 20px left 0;
                background-size: unset;
            }
        }

        .foot-main>div:first-child {
            font-size: 0.85rem;
            max-width: 300px;
        }

        @media (min-width: 80rem) {
            .foot-main {
                padding-top: 3.95rem;
                padding-bottom: 4.988rem;
                flex-direction: row;
                align-items: flex-start;
                gap: 4.188rem;
                padding-bottom: 8rem;
            }
        }

        a {
            text-decoration-skip-ink: auto;
            text-decoration: none;
        }

        ul {
            list-style: none;
        }

        .foot-links li:not(:last-child)::after {
            content: "|";
            margin: 0 8px;
            color: #aaa;
        }

        .foot-container {
            color: white;
            padding: 3rem 28px 1rem 28px;
        }

        .foot-container>.foot-grid-container:first-child {
            display: grid;
            gap: 2rem;
            font-size: 0.9325rem;
        }

        @media (min-width: 640px) {
            .foot-container>.foot-grid-container:first-child {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }
        }

        @media (min-width: 1240px) {
            .foot-container>.foot-grid-container:first-child {
                justify-items: center;
                grid-template-columns: 1fr 1fr 1fr 1fr;
                gap: 2rem;
                margin-bottom: 4rem;
            }
        }

        .foot-container h5 {
            font-weight: bold;
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        .foot-container li a {
            font-size: 12px;
            color: #99a1af;
        }

        .foot-container a:hover {
            color: #04af2f;
            transition: all 0.25s ease;
        }

        .foot-container .foot-grid-container:first-child ul {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        /* New CSS converted from Tailwind with foot- prefix */

        /* Background colors */
        .foot-bg-neutral-800 {
            background-color: #262626;
        }

        .foot-bg-dark {
            background-color: #06141c;
        }

        /* Text colors */
        .foot-text-white {
            color: #ffffff;
        }

        .foot-text-gray-300 {
            color: #d1d5db;
        }

        .foot-text-gray-400 {
            color: #9ca3af;
        }

        /* Text sizes */
        .foot-text-xs {
            font-size: 0.75rem;
            line-height: 1rem;
        }

        .foot-text-sm {
            font-size: 0.875rem;
            line-height: 1.25rem;
        }

        .foot-text-base {
            font-size: 1rem;
            line-height: 1.5rem;
        }

        .foot-text-lg {
            font-size: 1.125rem;
            line-height: 1.75rem;
        }

        /* Font weights */
        .foot-font-bold {
            font-weight: 700;
        }

        .foot-font-medium {
            font-weight: 500;
        }

        .foot-font-normal {
            font-weight: 400;
        }

        /* Container and layout */
        .foot-container {
            width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        .foot-mx-auto {
            margin-left: auto;
            margin-right: auto;
        }

        /* Padding utilities */
        .foot-px-4 {
            padding-left: 1rem;
            padding-right: 1rem;
        }

        .foot-py-12 {
            padding-top: 3rem;
            padding-bottom: 3rem;
        }

        .foot-py-6 {
            padding-top: 1.5rem;
            padding-bottom: 1.5rem;
        }

        .foot-pt-6 {
            padding-top: 1.5rem;
        }

        .foot-pb-8 {
            padding-bottom: 2rem;
        }

        .foot-p-2 {
            padding: 0.5rem;
        }

        .foot-p-4 {
            padding: 1rem;
        }

        .foot-py-2 {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }

        .foot-py-4 {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }

        /* Margin utilities */
        .foot-mb-4 {
            margin-bottom: 1rem;
        }

        .foot-mb-6 {
            margin-bottom: 1.5rem;
        }

        .foot-mt-8 {
            margin-top: 2rem;
        }

        .foot-mt-10 {
            margin-top: 2.5rem;
        }

        .foot-m-2 {
            margin: 0.5rem;
        }

        .foot-m-4 {
            margin: 1rem;
        }

        .foot-mb-2 {
            margin-bottom: 0.5rem;
        }

        .foot-mt-2 {
            margin-top: 0.5rem;
        }

        .foot-mt-4 {
            margin-top: 1rem;
        }

        /* Grid system */
        .foot-grid {
            display: grid;
        }

        .foot-grid-cols-1 {
            grid-template-columns: repeat(1, minmax(0, 1fr));
        }

        .foot-gap-8 {
            gap: 2rem;
        }

        .foot-gap-x-2 {
            column-gap: 0.5rem;
        }

        .foot-gap-1 {
            gap: 0.25rem;
        }

        .foot-gap-2 {
            gap: 0.5rem;
        }

        .foot-gap-4 {
            gap: 1rem;
        }

        /* Flexbox utilities */
        .foot-flex {
            display: flex;
        }

        .foot-flex-col {
            flex-direction: column;
        }

        .foot-flex-row {
            flex-direction: row;
        }

        .foot-flex-wrap {
            flex-wrap: wrap;
        }

        .foot-items-center {
            align-items: center;
        }

        .foot-items-start {
            align-items: flex-start;
        }

        .foot-justify-center {
            justify-content: center;
        }

        .foot-justify-between {
            justify-content: space-between;
        }

        /* Spacing utilities */
        .foot-space-y-2>*+* {
            margin-top: 0.5rem;
        }

        .foot-space-x-4>*+* {
            margin-left: 1rem;
        }

        .foot-space-x-6>*+* {
            margin-left: 1.5rem;
        }

        /* Display utilities */
        .foot-hidden {
            display: none;
        }

        .foot-block {
            display: block;
        }

        .foot-inline {
            display: inline;
        }

        .foot-inline-block {
            display: inline-block;
        }

        /* Width and height utilities */
        .foot-w-full {
            width: 100%;
        }

        .foot-h-full {
            height: 100%;
        }

        .foot-h-8 {
            height: 2rem;
        }

        .foot-h-10 {
            height: 2.5rem;
        }

        .foot-max-w-xs {
            max-width: 20rem;
        }

        .foot-max-w-sm {
            max-width: 24rem;
        }

        .foot-max-w-md {
            max-width: 28rem;
        }

        .foot-max-w-5xl {
            max-width: 64rem;
        }

        /* Text alignment */
        .foot-text-center {
            text-align: center;
        }

        .foot-text-left {
            text-align: left;
        }

        /* Border utilities */
        .foot-border-t {
            border-top-width: 1px;
        }

        .foot-border-gray-700 {
            border-color: #374151;
        }

        /* Hover effects */
        .foot-hover-text-white:hover {
            color: #ffffff;
        }

        .foot-hover-text-green:hover {
            color: #04af2f;
        }

        /* Size utilities for icons */
        .foot-size-7 {
            width: 1.75rem;
            height: 1.75rem;
        }

        /* Responsive utilities */
        @media (min-width: 768px) {
            .foot-md-grid-cols-2 {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .foot-md-flex-row {
                flex-direction: row;
            }

            .foot-md-mb-0 {
                margin-bottom: 0;
            }
        }

        @media (min-width: 1024px) {
            .foot-lg-grid-cols-4 {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }

            .foot-lg-justify-items-center {
                justify-items: center;
            }
        }

        /* Additional responsive utilities for footer */
        @media (max-width: 864px) {
            .foot-text-center-mobile {
                text-align: center;
            }

            .foot-flex-column-mobile {
                flex-direction: column;
            }
        }

        @media (min-width: 864px) {
            .foot-text-left-desktop {
                text-align: left;
            }

            .foot-flex-row-desktop {
                flex-direction: row;
            }
        }

        /* Footer links styling */
        .foot-footer-links {
            display: flex;
            font-size: 0.75rem;
            flex-wrap: wrap;
            justify-content: center;
            column-gap: 0.5rem;
            color: #d1d5db;
            margin-top: 2.5rem;
            margin-bottom: 1.5rem;
        }

        .foot-footer-links li:not(:last-child)::after {
            content: "|";
            margin: 0 8px;
            color: #9ca3af;
        }

        /* Social media icons container */
        .foot-social-icons {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }

        @media (min-width: 768px) {
            .foot-social-icons {
                margin-bottom: 0;
            }
        }

        /* App download buttons container */
        .foot-app-buttons {
            display: flex;
            gap: 1rem;
        }

        /* Company description */
        .foot-company-description {
            color: #d1d5db;
            max-width: 64rem;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 0.5rem;
        }

        /* Copyright text */
        .foot-copyright {
            color: #d1d5db;
            margin-top: 2rem;
            font-size: 0.875rem;
        }

        /* Missing classes from your HTML */

        /* Logo styling */
        .foot-logo {
            height: 2rem;
            margin-bottom: 1rem;
            width: 100%;
            max-width: 200px;
        }

        @media (min-width: 768px) {
            .foot-logo {
                margin-bottom: 0;
            }
        }

        /* Icon styling */
        .foot-icons {
            font-size: 26px;
            margin-bottom: 0px;
            color: #99a1af;
            transition: color 0.25s ease;
        }

        .foot-icons:hover {
            color: #ffffff;
        }

        /* Social media container */
        .foot-socials {
            margin: 1.5rem auto;
            padding: 2rem 0rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            border-top: 1px solid #364153;
            border-bottom: 1px solid #364153;
        }

        @media (min-width: 768px) {
            .foot-socials {
                flex-direction: row;
                align-items: center;
            }
        }

        .foot-socials>div:nth-child(2) {
            display: flex;
            gap: 2rem;
            margin-bottom: 1rem;
        }

        @media (min-width: 768px) {
            .foot-socials>div:nth-child(2) {
                margin-bottom: 0;
            }
        }

        /* Flex group for app buttons */
        .foot-flex-group {
            display: flex;
            gap: 1rem;
        }

        /* Button reset for app download buttons */
        .foot-button-reset {
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
        }

        .foot-button-reset img {
            max-width: 200px;
        }

        /* Legal wrapper and content */
        .foot-legal-wrapper {
            text-align: center;
        }

        .foot-legal {
            font-size: .95rem;
            padding-block: 3rem;
            padding-inline: 1rem;
            color: white;
            background-color: #06141c !important;
        }

        .foot-legal p {
            color: #d1d5db;
            margin-bottom: 0.5rem;
        }

        .foot-legal p.foot-copyright {
            margin-top: 2rem;
            font-size: 0.875rem;
        }

        /* Font family utility */
        .foot-font-nunito {
            font-family: 'Nunito', sans-serif;
        }

        /* Update foot-links for horizontal layout */
        .foot-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            color: #99a1af;
            margin-top: 2.5rem;
            margin-bottom: 1.5rem;
            list-style: none;
            padding: 0;
        }

        .foot-links li {
            display: inline-flex;
            align-items: center;
        }

        .foot-links li a {
            color: #99a1af;
            text-decoration: none;
            transition: color 0.25s ease;
        }

        .foot-links li a:hover {
            color: #ffffff;
        }

        .sticky-nav-container {
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        @media (max-width: 480px) {
            .foot-container>.foot-grid-container:first-child {
                justify-content: center;
            }

            .foot-container .foot-grid-container:first-child ul {
                align-items: center;
            }

            .foot-grid-container ul li {
                align-items: center;
                justify-content: center;
            }

            .foot-container h5 {
                text-align: center;
            }

            .current-level {
                margin-top: 0px;
                gap: 0px;
            }

            .user-stats {
                margin-top: 0px;
            }

            .points-popup-cards-container,
            .stat-item,
            #points-popup h3 {
                margin: 0px;
            }

            .search-container {
                margin-top: 1rem;
            }

            .search-icon {
                top: 35%;
            }


        }

        /* Responsive Styles */
        @media (max-width: 992px) {
            #points-popup {
                width: 85vw !important;
                height: 40vh !important;
            }

            .points-popup-level-card {
                min-width: 200px !important;
                max-width: 240px !important;
            }

            .points-popup-card-image {
                height: 160px !important;
                padding: 15px !important;
            }

            .points-popup-card-image img {
                width: 120px !important;
                height: 120px !important;
            }

            .points-popup-card-content {
                padding: 15px !important;
            }

            .points-popup-card-content h4 {
                font-size: 16px !important;
            }

            .points-popup-card-content p.points {
                font-size: 14px !important;
            }
        }

        @media (max-width: 768px) {
            #points-popup {
                width: 90vw !important;
                height: 80vh !important;
            }

            .popup-container {
                flex-direction: column !important;
            }

            .popup-left {
                flex: none !important;
                border-right: none !important;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
                padding: 15px !important;
            }

            .dark-mode .popup-left {
                border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
            }

            .popup-right {
                flex: 1 !important;
                padding: 15px !important;
            }

            .points-popup-level-card {
                min-width: 180px !important;
                max-width: 220px !important;
                height: 80% !important;
            }

            .points-popup-card-image {
                height: 140px !important;
                padding: 10px !important;
            }

            .points-popup-card-image img {
                width: 100px !important;
                height: 100px !important;
            }

            .points-popup-card-content {
                padding: 12px !important;
            }

            .points-popup-card-content h4 {
                font-size: 15px !important;
            }

            .points-popup-card-content p.points {
                font-size: 13px !important;
            }
        }

        /* Search Suggestion Box - Hidden by default */
        .search-box-inn {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            max-height: 400px;
            background: var(--bg-secondary);
            flex-direction: column;
            padding: 0;
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 100001;
            border-radius: 12px;
            width: 100%;
            margin-top: 8px;
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .search-box-inn.active {
            display: flex;
        }

        /* Custom Scrollbar */
        .search-box-inn::-webkit-scrollbar {
            width: 6px;
        }

        .search-box-inn::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
            border-radius: 10px;
        }

        .search-box-inn::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }

        .search-box-inn::-webkit-scrollbar-thumb:hover {
            background: #2d8a30;
        }

        /* Firefox Scrollbar */
        .search-box-inn {
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) var(--bg-tertiary);
        }

        /* Search Results Header */
        .search-results-header {
            padding: 10px 16px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-tertiary);
            position: sticky;
            top: 0;
            z-index: 1;
        }

        /* Individual Search Result Item */
        .clsHeadQuestion {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.15s ease;
        }

        .clsHeadQuestion:last-child {
            border-bottom: none;
        }

        .clsHeadQuestion:hover,
        .clsHeadQuestion.highlighted {
            background: var(--compiler-item-hover);
            cursor: pointer;
        }

        .clsHeadQuestion.highlighted {
            border-left: 3px solid var(--primary-color);
            padding-left: 13px;
        }

        .clsHeadQuestion a {
            color: var(--text-primary);
            text-decoration: none;
            display: block;
        }

        .clsHeadQuestion:hover a,
        .clsHeadQuestion.highlighted a {
            color: var(--primary-color);
        }

        /* Search Result Text */
        .search-result-text {
            width: 100%;
        }

        .search-result-title {
            font-weight: 500;
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .search-result-category {
            font-size: 12px;
            color: var(--text-muted);
        }

        /* Dark theme */
        .dark-theme .search-box-inn {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        }

        .dark-theme .clsHeadQuestion:hover,
        .dark-theme .clsHeadQuestion.highlighted {
            background: rgba(255, 255, 255, 0.08);
        }

        /* Mobile */
        @media (max-width: 768px) {
            .search-box-inn {
                max-height: 50vh;
                border-radius: 0 0 12px 12px;
                margin-top: 0;
            }
            
            .clsHeadQuestion {
                padding: 10px 14px;
            }
        }

        /* Add to your existing CSS */
        .points-popup-card-image {
            position: relative;
        }

        .points-popup-card-image.completed {
            opacity: 1;
        }

        .points-popup-card-image.current {
            opacity: 1;
        }

        .points-popup-card-image.upcoming {
            opacity: 0.6;
        }

        .completed-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #4CAF50;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
        }

        .status {
            font-size: 12px;
            font-weight: bold;
            margin-top: 5px;
        }

        .status.completed {
            color: #4CAF50;
        }

        .status.current {
            color: #FF9800;
        }

        .status.upcoming {
            color: #9E9E9E;
        }

        .progress-bar-mini {
            width: 100%;
            height: 4px;
            background: #e0e0e0;
            border-radius: 2px;
            margin-top: 5px;
            overflow: hidden;
        }

        .progress-bar-mini .progress {
            height: 100%;
            background: #4CAF50;
            transition: width 0.3s ease;
        }

        .dropdown-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #ffffff;
            min-width: 160px;
            box-shadow: var(--shadow);
            border-radius: 0 0 6px 6px;
            padding: 0;
            margin-bottom: 8px;
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            border-top: none;
            z-index: 1000000;
        }

        .dropdown-content.active {
            display: block;
        }

        .dropdown-content a {
            color: var(--text-secondary);
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            transition: var(--transition);
        }

        .dropdown-content a:hover {
            background-color: rgba(133, 169, 71, 0.1);
        }

        .filter-dropdown:hover .dropdown-content {
            display: block;
        }

        .sort-btn,
        .filter-btn {
            background-color: var(--primary-color);
            color: #fff;
            border: 1px solid #3741513d;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .sort-btn:hover,
        .filter-btn:hover {
            background-color: #40A941;
            color: #fff;
            box-shadow: 0 0 8px rgba(64, 169, 65, 0.6);

        }

        .problems-right-content {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            justify-content: center;
        }

        /* Filter Popup */
        .filter-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }

        .filter-popup-content {
            background: #fff;
            border-radius: 12px;
            width: 100%;
            max-width: 700px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }

        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px;
            border-bottom: 1px solid #e5e7eb;
            background: #fff;
            flex-shrink: 0;
        }

        .filter-header h3 {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 600;
            color: #1f2937;
        }

        .close-filter-btn {
            background: none;
            border: none;
            font-size: 1.25rem;
            color: #6b7280;
            cursor: pointer;
            padding: 8px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .close-filter-btn:hover {
            background: #f3f4f6;
            color: #1f2937;
            transform: scale(1.05);
        }

        .filter-body {
            padding: 0;
            overflow-y: auto;
            flex: 1;
        }

        /* Filter Section */
        .filter-section {
            border-bottom: 1px solid #e5e7eb;
            background: #fff;
            transition: all 0.2s ease;
        }

        .filter-section:last-child {
            border-bottom: none;
        }

        .filter-section-toggle {
            width: 100%;
            padding: 20px 24px;
            background: #fff;
            border: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            color: #1f2937;
            transition: all 0.2s ease;
        }

        .filter-section-toggle:hover {
            background: #f8fafc;
        }

        .filter-section-toggle.active {
            background: #f8fafc;
        }

        .toggle-icon {
            transition: transform 0.3s ease;
            color: #6b7280;
            font-size: 0.875rem;
        }

        .filter-section-toggle.active .toggle-icon {
            transform: rotate(180deg);
            color: #3b82f6;
        }

        .filter-section-content {
            max-height: 400px;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background: #fff;
        }

        .filter-section-content.collapsed {
            max-height: 0;
        }

        /* Checkbox Styles */
        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px 20px;
            padding: 24px;
            max-height: 350px;
            overflow-y: auto;
            background: #fff;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 4px 0;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 6px;
        }

        .checkbox-item:hover {
            background: #f8fafc;
        }

        .checkbox-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #3b82f6;
            margin: 0;
            flex-shrink: 0;
        }

        .checkbox-item label {
            font-size: 0.875rem;
            color: #374151;
            cursor: pointer;
            user-select: none;
            line-height: 1.4;
            font-weight: 500;
            margin: 0;
            flex: 1;
        }

        .checkbox-item:hover label {
            color: #1f2937;
        }

        /* Scrollbar for Checkbox Grid */
        .checkbox-grid::-webkit-scrollbar {
            width: 6px;
        }

        .checkbox-grid::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 10px;
        }

        .checkbox-grid::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .checkbox-grid::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Filter Footer */
        .filter-footer {
            padding: 20px 24px;
            border-top: 1px solid #e5e7eb;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            background: #fff;
            flex-shrink: 0;
        }

        .btn-clear,
        .btn-apply {
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            min-width: 80px;
        }

        .btn-clear {
            background: #fff;
            color: #6b7280;
            border: 1px solid #d1d5db;
        }

        .btn-clear:hover {
            background: #f9fafb;
            border-color: #9ca3af;
            color: #374151;
        }

        .btn-apply {
            background: #3b82f6;
            color: #fff;
            box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
        }

        .btn-apply:hover {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        /* Modal Styles (Legacy) */
        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 10000;
            animation: fadeIn 0.3s ease;
        }

        .modal-backdrop.show {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .modal {
            background-color: white;
            width: 90%;
            max-width: 150vh;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideIn 0.3s ease;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            padding: 24px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fff;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2937;
            margin: 0;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6b7280;
            transition: all 0.2s ease;
            padding: 8px;
            border-radius: 6px;
        }

        .close-btn:hover {
            color: #1f2937;
            background: #f3f4f6;
        }

        .modal-body {
            padding: 24px;
        }

        .modal-footer {
            padding: 24px;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            background: #fff;
        }

        /* Filter Container */
        .filter-container {
            display: flex;
            gap: 2rem;
            align-items: flex-start;
            justify-content: flex-start;
            flex-direction: row;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .btn-secondary {
            background-color: #6b7280;
            color: white;
            border-radius: 8px;
        }

        .btn-secondary:hover {
            background-color: #4b5563;
            transform: translateY(-1px);
        }

        .btn-primary {
            background-color: var(--primary-color, #40a944);
            color: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(64, 169, 68, 0.2);
        }

        .btn-primary:hover {
            background-color: var(--primary-hover, #358c38);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(64, 169, 68, 0.3);
        }

        .selected-tags {
            display: contents;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
            min-height: 40px;
            align-items: center;
        }

        .selected-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            animation: fadeIn 0.3s ease;
            color: white;
        }

        /* Different background colors for each filter type */
        .selected-tag.difficulty {
            background: #40a944;
            /* Green for difficulty */
        }

        .selected-tag.company {
            background: #6366f1;
            /* Purple for company */
        }

        .selected-tag.topic {
            background: #f59e0b;
            /* Amber for topic */
        }

        .selected-tag .remove-tag {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            padding: 2px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            font-size: 12px;
            transition: background-color 0.2s ease;
        }

        .selected-tag .remove-tag:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Dark theme support */
        .dark-theme .selected-tag.difficulty {
            background: #40a944;
        }

        .dark-theme .selected-tag.company {
            background: #6366f1;
        }

        .dark-theme .selected-tag.topic {
            background: #f59e0b;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Dark theme support */
        .dark-theme .selected-tag {
            background: var(--primary-color);
        }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .filter-popup {
                padding: 16px;
            }

            .filter-popup-content {
                max-height: 90vh;
                border-radius: 12px;
            }

            .filter-header {
                padding: 20px;
            }

            .filter-header h3 {
                font-size: 1.125rem;
            }

            .filter-section-toggle {
                padding: 16px 20px;
                font-size: 0.875rem;
            }

            .checkbox-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px 16px;
                padding: 20px;
            }

            .filter-footer {
                padding: 16px 20px;
                flex-direction: column;
            }

            .btn-clear,
            .btn-apply {
                width: 100%;
                padding: 14px 20px;
            }

            .modal {
                width: 95%;
                max-height: 95vh;
            }

            .modal-header,
            .modal-body,
            .modal-footer {
                padding: 20px;
            }

            .modal-title {
                font-size: 1.25rem;
            }

            .filter-container {
                gap: 1rem;
                flex-direction: column;
            }
        }

        @media (max-width: 480px) {
            .filter-popup {
                padding: 12px;
            }

            .filter-popup-content {
                max-height: 95vh;
            }

            .checkbox-grid {
                grid-template-columns: 1fr;
                gap: 12px;
                padding: 16px;
            }

            .filter-header {
                padding: 16px;
            }

            .filter-section-toggle {
                padding: 14px 16px;
            }

            .checkbox-item {
                gap: 10px;
                padding: 8px 12px;
            }

            .checkbox-item label {
                font-size: 0.8125rem;
            }

            .btn {
                padding: 14px 20px;
                font-size: 0.8125rem;
            }

            .modal-header,
            .modal-body,
            .modal-footer {
                padding: 16px;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {

            .filter-popup-content,
            .modal {
                background: #1f2937;
                color: #f9fafb;
            }

            .filter-header,
            .modal-header {
                background: #1f2937;
                border-bottom-color: #374151;
            }

            .filter-header h3,
            .modal-title {
                color: #f9fafb;
            }

            .filter-section {
                border-bottom-color: #374151;
                background: #1f2937;
            }

            .filter-section-toggle {
                background: #1f2937;
                color: #f9fafb;
            }

            .filter-section-toggle:hover,
            .filter-section-toggle.active {
                background: #374151;
            }

            .checkbox-grid {
                background: #1f2937;
            }

            .checkbox-item:hover {
                background: #374151;
            }

            .checkbox-item label {
                color: #e5e7eb;
            }

            .close-filter-btn,
            .close-btn {
                color: #9ca3af;
            }

            .close-filter-btn:hover,
            .close-btn:hover {
                color: #f9fafb;
                background: #374151;
            }
        }

