﻿/* Course Content Area Styling */
.course-content-area {
    flex: 1;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    max-height: 800px;
}

/* Category Cards for All Courses View */
.category-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

    .category-icon i {
        color: #4a90e2;
        font-size: 20px;
    }

.category-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 18px;
}

.category-description {
    color: #6b7280;
    font-size: 14px;
}

.course-count-badge {
    background: rgba(74, 144, 226, 0.15);
    color: #4a90e2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.category-body {
    padding: 0;
}

/* Modern Table Styling */
.modern-table {
    width: 100%;
    background: transparent;
}

.table-header {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.table-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-header .table-row {
    font-weight: 600;
    color: #4b5563;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-cell {
    flex: 1;
    padding: 0 8px;
}

    .table-cell.text-end {
        text-align: right;
        flex: 0 0 auto;
    }

/* Course Items */
.course-item {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

    .course-item:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.course-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

    .course-link:hover {
        color: #4a90e2;
    }

.course-preview {
    margin-top: 8px;
}

.preview-toggle {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

    .preview-toggle:hover {
        color: #4a90e2;
    }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.btn-primary.action-btn {
    background: rgba(74, 144, 226, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.9);
}

    .btn-primary.action-btn:hover {
        background: #4a90e2;
        border-color: #4a90e2;
        transform: translateY(-1px);
    }

.btn-outline-primary.action-btn {
    border: 1px solid #4a90e2;
    color: #4a90e2;
}

    .btn-outline-primary.action-btn:hover {
        background: #4a90e2;
        color: white;
        transform: translateY(-1px);
    }

/* Preview Rows */
.preview-row {
    background: rgba(248, 250, 252, 0.8);
}

.table-cell-full {
    flex: 1 0 100%;
    padding: 0;
}

.course-preview-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin: 0 20px 16px 20px;
    border-left: 4px solid #4a90e2;
}

    .course-preview-content h6 {
        color: #2d3748;
        margin-bottom: 8px;
        font-weight: 600;
    }

/* Category Banner */
.category-banner {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.banner-icon {
    width: 64px;
    height: 64px;
    background: rgba(74, 144, 226, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

    .banner-icon i {
        color: #4a90e2;
        font-size: 24px;
    }

.banner-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 8px;
}

.banner-description {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 12px;
}

.banner-meta {
    display: flex;
    gap: 16px;
}

.meta-item {
    color: #6b7280;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
}

.empty-icon {
    opacity: 0.7;
}

    .empty-icon i {
        color: #d1d5db !important;
    }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .category-sidebar-container {
        flex-direction: column;
    }

    .course-content-area {
        max-height: none;
        overflow-y: visible;
    }

    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .table-cell.text-end {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .category-banner .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .banner-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table-cell {
        width: 100%;
    }

        .table-cell.text-end {
            text-align: left;
        }

    .action-buttons {
        justify-content: flex-start;
    }
}
.category-sidebar-container {
    display: flex;
    gap: 30px;
    min-height: 600px;
    width: 100%;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.category-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: scroll;
}

.course-content-area {
    flex: 1;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Sidebar Tab Styles */
.category-sidebar-item {
    position: relative;
}

.glass-sidebar-tab {
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
}

    .glass-sidebar-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }

    .glass-sidebar-tab:hover::before {
        left: 100%;
    }

    .glass-sidebar-tab:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: translateX(5px);
    }

    .glass-sidebar-tab.active {
        background: rgba(74, 144, 226, 0.25);
        border: 1px solid rgba(74, 144, 226, 0.4);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: translateX(8px);
    }

/* Sidebar Tab Content */
.sidebar-tab-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.sidebar-tab-icon {
    font-size: 18px;
    opacity: 0.9;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-tab-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-tab-title {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.2;
}

.sidebar-tab-subtitle {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.glass-sidebar-tab.active .sidebar-tab-title {
    color: #1e40af;
    font-weight: 700;
}

.glass-sidebar-tab.active .sidebar-tab-subtitle {
    color: #4b5563;
}

.sidebar-tab-badge {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #2d3748;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.glass-sidebar-tab.active .sidebar-tab-badge {
    background: rgba(255, 255, 255, 0.6);
    color: #1e40af;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Sidebar Popup */
.sidebar-popup {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    margin-left: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 260px;
    pointer-events: none;
}

.category-sidebar-item:hover .sidebar-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.sidebar-popup .popup-content {
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .sidebar-popup .popup-content::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 100%;
        transform: translateY(-50%);
        border: 10px solid transparent;
        border-right-color: rgba(255, 255, 255, 0.95);
    }

/* Tab Content Styles */
.tab-content {
    height: 100%;
}

.tab-pane {
    height: 100%;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-sidebar-container {
        flex-direction: column;
        gap: 20px;
    }

    .category-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .category-sidebar-item {
        flex: 1;
        min-width: 200px;
        max-width: 280px;
    }

    .sidebar-popup {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        margin-left: 0;
    }

        .sidebar-popup .popup-content::before {
            display: none;
        }
}

@media (max-width: 768px) {
    .category-sidebar-container {
        padding: 16px;
        border-radius: 20px;
    }

    .category-sidebar {
        gap: 6px;
    }

    .category-sidebar-item {
        min-width: 160px;
    }

    .glass-sidebar-tab {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .sidebar-tab-content {
        gap: 10px;
    }

    .sidebar-tab-icon {
        font-size: 16px;
    }

    .sidebar-tab-title {
        font-size: 13px;
    }

    .sidebar-tab-subtitle {
        font-size: 10px;
    }

    .course-content-area {
        padding: 16px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .category-sidebar {
        flex-direction: column;
    }

    .category-sidebar-item {
        max-width: 100%;
        min-width: auto;
    }
}

/* Scrollbar for many categories */
.category-sidebar {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

    .category-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .category-sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .category-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }

        .category-sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }
 /* Modern Color Scheme */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--background-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hero Section */
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-icon {
    font-size: 2rem;
    color: white;
}

/* Enhanced Search */
.search-container {
    position: relative;
}

.search-glass {
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

    .search-glass .form-control {
        border: none;
        background: var(--card-bg);
        font-size: 1rem;
    }

        .search-glass .form-control:focus {
            box-shadow: none;
            background: var(--card-bg);
        }

.clear-search {
    transition: all 0.2s ease;
}

    .clear-search:hover {
        color: var(--primary-color) !important;
    }

/* Modern Tabs */
.category-nav-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow);
}

.modern-tab {
    border: none !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    margin: 0 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .modern-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .modern-tab:hover::before {
        left: 100%;
    }

    .modern-tab:hover {
        color: var(--primary-color) !important;
        transform: translateY(-1px);
    }

    .modern-tab.active {
        background: linear-gradient(135deg, var(--primary-color), #8b5cf6) !important;
        color: white !important;
        box-shadow: var(--shadow);
    }

.tab-content-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-text {
    font-weight: 500;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modern-tab:not(.active) .tab-badge {
    background: var(--background-color);
    color: var(--text-muted);
}

/* Category Cards */
.category-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.category-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

    .category-icon i {
        color: white;
        font-size: 1.25rem;
    }

.category-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.category-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.course-count-badge {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-body {
    padding: 0;
}

/* Modern Table */
.modern-table {
    width: 100%;
}

.table-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid var(--border-color);
}

.table-row {
    display: flex;
    align-items: center;
    padding: 16px 24px;
}

.table-cell {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.table-cell-full {
    flex: 1 0 100%;
}

.table-body .table-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

    .table-body .table-row:last-child {
        border-bottom: none;
    }

    .table-body .table-row:hover {
        background-color: #f8fafc;
    }

/* Course Items */
.course-item {
    transition: all 0.2s ease;
}

    .course-item:hover {
        background-color: #f8fafc;
        transform: translateX(4px);
    }

.course-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .course-link:hover {
        color: var(--primary-color);
    }

.course-name {
    font-size: 1rem;
}

.course-preview {
    margin-top: 4px;
}

.preview-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .preview-toggle:hover {
        color: var(--primary-hover);
    }

.preview-row {
    background: #f8fafc;
}

.course-preview-content {
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin: 8px 0;
    box-shadow: var(--shadow);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-hover), #7c3aed);
        transform: translateY(-1px);
        box-shadow: var(--shadow);
    }

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-1px);
    }

/* Category Banner */
.category-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.banner-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    backdrop-filter: blur(10px);
}

    .banner-icon i {
        font-size: 1.5rem;
    }

.banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-description {
    opacity: 0.9;
    margin-bottom: 12px;
}

.banner-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Empty State */
.empty-state {
    padding: 80px 20px;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

    .empty-icon i {
        font-size: 3rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .tab-content-wrapper {
        flex-direction: column;
        gap: 4px;
    }

    .table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .table-cell.text-end {
        text-align: left !important;
        width: 100%;
    }

    .action-buttons {
        justify-content: flex-start;
    }

    .category-banner .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .banner-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }
}


/*Added for category tabs arrangement*/
.category-nav-container {
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.category-nav-expanded {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    margin: 0;
    width: 100%;
    min-height: 80px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
}

.category-item-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 8px;
}

/* Glass Tab Styles - Enhanced for expanded view */
.glass-tab {
    border: none;
    border-radius: 20px;
    padding: 16px 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

    .glass-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }

    .glass-tab:hover::before {
        left: 100%;
    }

    .glass-tab:hover {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: translateY(-3px) scale(1.02);
    }

    .glass-tab.active {
        background: rgba(74, 144, 226, 0.3);
        border: 1px solid rgba(74, 144, 226, 0.5);
        box-shadow: 0 8px 25px rgba(74, 144, 226, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }

/* Tab Content - Enhanced */
.tab-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.tab-icon {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.tab-text {
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    white-space: nowrap;
    line-height: 1.2;
}

.glass-tab.active .tab-text {
    color: #1e40af;
    font-weight: 700;
}

.tab-badge {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #2d3748;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.6);
    color: #1e40af;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Glass Popup Styles */
.category-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 240px;
    pointer-events: none;
}

.category-item-wrapper:hover .category-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.popup-content {
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .popup-content::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 10px solid transparent;
        border-bottom-color: rgba(255, 255, 255, 0.92);
    }

    .popup-content h6 {
        margin: 0 0 8px 0;
        font-weight: 700;
        font-size: 16px;
        color: #1f2937;
        text-align: center;
    }

    .popup-content p {
        margin: 0 0 12px 0;
        font-size: 13px;
        color: #6b7280;
        line-height: 1.5;
        text-align: center;
    }

.popup-stats {
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

    .popup-stats span {
        font-size: 12px;
        font-weight: 600;
        color: #4b5563;
        background: rgba(0, 0, 0, 0.05);
        padding: 4px 10px;
        border-radius: 12px;
    }

/* Container Background Enhancement */
.category-nav-container {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-radius: 24px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Responsive Design - No Scroll Ever */
@media (max-width: 768px) {
    .category-nav-expanded {
        gap: 12px;
        padding: 12px;
        justify-content: center;
    }

    .glass-tab {
        padding: 14px 20px;
        border-radius: 18px;
        min-width: 120px;
    }

    .tab-icon {
        font-size: 18px;
    }

    .tab-text {
        font-size: 13px;
    }

    .category-popup {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        margin-top: 0;
    }

    .popup-content::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-nav-expanded {
        gap: 10px;
        padding: 10px;
    }

    .glass-tab {
        padding: 12px 16px;
        min-width: 110px;
    }

    .tab-content-wrapper {
        gap: 6px;
    }

    .tab-icon {
        font-size: 16px;
    }

    .tab-text {
        font-size: 12px;
    }

    .tab-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Ensure no scrollbars appear */
.category-nav-container,
.category-nav-expanded,
.category-item-wrapper {
    overflow: visible !important;
}

/*body {
    overflow-x: hidden;
}*/


