/* ===== CSS Variables ===== */
:root {
    /* Background & Layout */
    --bg-color: #0a0f1c;
    --bg-image: url('/assets/home-bg.webp');
    --bg-gradient: linear-gradient(135deg, #94f8ba 0%, #f35ef3 100%);
    
    /* Text Colors */
    --text-dark: #000;
    --text-light: #f1f5f9;
    --text-primary: #333;
    --text-secondary: #666;
    
    /* Accent Colors */
    --accent: #8e3cfa;
    --accent-dark: #7a28e0;
    --accent-hover: #066264;
    
    /* Card & UI Colors */
    --card-bg: #fff;
    --card-border: rgba(0,0,0,0.1);
    --dark-bg: #121212;
    --dark-card: #1e293b;
    --dark-border: rgba(255,255,255,0.15);
    
    /* Status Colors */
    --success: #2e7d32;
    --error: #df3704;
    --success-bg: #e0f4e0;
    --success-text: #2e7d32;
    
    /* Hero Section */
    --hero-gradient: linear-gradient(90deg, #373838, #cc13bd, #373838);
    --hero-btn-gradient1: linear-gradient(90deg, #cc13bd 0%, #8e3cfa 100%);
    --hero-btn-gradient2: linear-gradient(90deg, #8e3cfa 0%, #cc13bd 100%);
    --hero-text-color: transparent;
    --hero-description-color: hsla(300, 1%, 21%, 0.432);
    --hero-link-text: #fff;
    --hero-title-bg: rgba(218, 186, 247, 0.7);
    --hero-title-border: #af5dfc;
    --hero-title-text: #af5dfc;
    --hero-icon-color: #af5dfc;
    
    /* Chart */
    --chart-bg: conic-gradient(#ec04ec 0% 20%, #f39c12 20% 35%, #e74c3c 35% 50%, #2ecc71 50% 100%);
    
    /* Category Bar */
    --catbar-bg: var(--card-bg);
    --catbar-border: var(--accent);
    --catbar-icon: var(--accent);
    --catbar-title: var(--accent);
    --catbar-hover-bg: #f0f0f0;
    --catbar-active-bg: var(--accent);
    --catbar-active-text: #fff;
    
    /* Performance Badge */
    --badge-bg: #dcb8fd;
    --badge-border: #af5dfc;
    --badge-text: #6b21a8;
    --badge-icon: #7e22ce;
    
    /* Update Cards */
    --update-card-bg: #f9f9f9;
    --update-card-text: #333;
    --update-card-shadow: rgba(0, 0, 0, 0.08);
    
    /* Clickable Box */
    --box-bg: var(--card-bg);
    --box-border: var(--card-border);
    --box-text: var(--text-dark);
    --box-hover-shadow: rgba(135, 206, 250, 0.6);
    --box-icon-color: var(--accent);
    
    /* Category Title */
    --title-gradient-color: linear-gradient(90deg, #440992 0, #f518f5 50%, #440992 100%);

    --cat-title-color: #525151;
    --cat-title-bullet: linear-gradient(135deg, #039723, #46e0e5);
    --cat-link-bg: var(--accent);
    --cat-link-text: #fff;
    --cat-link-hover-bg: var(--accent-dark);
    
    /* Body Gradient Overlay */
    --body-gradient-1: rgba(154, 234, 245, 0.85);
    --body-gradient-2: rgba(248, 138, 138, 0.85);
    --body-blend-mode: normal;

    /* chart */
    --fs-bg-gradient1: rgba(239, 179, 241, 0.8);
    --fs-bg-gradient2: rgba(179, 219, 241, 0.8);
    --fs-border: #fff;
    --fs-title-color: #2c3e50;
    --fs-item-text: #444;
    --fs-chart-bg: conic-gradient(#ec04ec 0% 20%, #f39c12 20% 35%, #e74c3c 35% 50%, #2ecc71 50% 100%);
    --fs-chart-center: #b3dcf1;
    --fs-segment-text: #fff;

    /* Chart Segment Colors */
    --fs-tools-color: #ec04ec;
    --fs-sort-color: #f39c12;
    --fs-secret-color: #e74c3c;
    --fs-total-color: #2ecc71;
}

/* Dark Mode */
html.dark-mode {
    --bg-gradient: linear-gradient(135deg, #010003 0%, #000000 100%);
    --text-dark: #f1f5f9;
    --text-light: #f1f5f9;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    
    --card-bg: #1e293b;
    --card-border: rgba(255,255,255,0.1);
    
    --hero-gradient: linear-gradient(90deg, #4ca7aa, #bb24bb, #8e3cfa);
    --hero-description-color: #a3a0a0;
    --hero-link-text: #fff;
    --hero-title-bg: rgba(30, 41, 59, 0.7);
    --hero-title-border: #8e3cfa;
    --hero-title-text: #cbd5e1;
    --hero-icon-color: #8e3cfa;
    
    --catbar-bg: var(--dark-card);
    --catbar-border: var(--dark-border);
    --catbar-title: #eee;
    --catbar-hover-bg: #334155;
    --catbar-active-bg: var(--accent);
    --catbar-active-text: #fff;
    
    --badge-bg: rgba(142, 60, 250, 0.2);
    --badge-border: var(--accent);
    --badge-text: #cbd5e1;
    --badge-icon: var(--accent);
    
    --update-card-bg: #1f1f1f;
    --update-card-text: #f0f0f0;
    --update-card-shadow: rgba(255, 255, 255, 0.05);
    
    --box-bg: var(--dark-card);
    --box-border: var(--dark-border);
    --box-text: var(--text-light);
    
    --title-gradient-color: linear-gradient(90deg, #f518f5 0, #32beab 50%, #f518f5 100%);
    --cat-title-color: #cbd5e1;
    --cat-link-bg: #444;
    --cat-link-text: #fff;
    --cat-link-hover-bg: #222;
    
    --success-bg: #1b3f1b;
    --success-text: #fff;
    
    /* Body Gradient Overlay - Dark Mode */
    --body-gradient-1: rgba(23, 4, 61, 0.911);
    --body-gradient-2: rgb(0, 0, 0);
    --body-blend-mode: multiply;
}

/* ===== COMPLETE RESET - NO EXTRA SPACE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    line-height: 1;
}

/* Header ছাড়া সব elements-এর জন্য margin-top */
body > *:not(header) {
    margin-top: 100px;
}

body {
    margin: 0; 
    width: 100%;
    min-height: 100vh;
    display: block;
    position: relative;
    color: var(--text-dark);
    font-weight: 700;
    font-family: "Noto Sans Bengali", "Alkatra", "Archivo Black",
                 "Bungee", "Prosto One", "Rubik Mono One", system-ui, sans-serif; 
    font-display: swap;
    overflow-x: hidden;
    background: transparent;
    padding-top: 25px;
    padding-bottom: 35px;
    /* ডেস্কটপের জন্য padding যেটা মোবাইলেও থাকবে */

}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            var(--body-gradient-1),
            var(--body-gradient-2)
        ),
        var(--bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: var(--body-blend-mode);
}

/* Dark mode */
html.dark-mode body::before {
    background: 
        linear-gradient(var(--body-gradient-1), var(--body-gradient-2)),
        var(--bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: var(--body-blend-mode);
}

/* Bengali font */
:lang(bn), [lang="bn"] {
    font-family: "Hind Siliguri", "Galada", sans-serif;
}

/* ===== TABLET (768px to 1023px) ===== */
@media (max-width: 1023px) {
    html {
        scroll-padding-top: 60px;
    }
    
    body > *:not(header) {
        margin-top: 60px;
    }
    
    /* ট্যাবলেটেও একই padding থাকবে */


    body::before {
        background-attachment: scroll;
    }
}

/* ===== MOBILE (max 767px) ===== */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 50px;
    }

    body {
        overflow-x: hidden;
    }

    body::before {
        background-attachment: scroll;
    }

    * {
        max-width: 100%;
    }
}


/* ===== Layout & Containers ===== */


.dot-line {
    width: 200px;
    height: 20px;
    margin: 0px auto;
    position: relative;
    opacity: 0.7;

}


/* Dots */
.dot-line::before,
.dot-line::after {
    content: '';
    position: absolute;
    top: 30%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);

}



.dot-line::before {
    left: 0;
}

.dot-line::after {
    right: 0;
}

.dot-line {
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 50%,
        transparent 100%);
    background-size: 100% 2px;
    background-position: center;
    background-repeat: no-repeat;

}

.main-catagory-title-h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5px;
}

.main-catagory-title-h1 .title-text {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    background: var(--title-gradient-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;

}


.main-catagory-title-h1 .catagory-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 700px;
    line-height: 1.5;
    opacity: 0.8;
    text-align: center;
}
.container {
    max-width: 1200px;
    width: 100%;
}

.main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    min-height: 250px;
}

.main-bg {
    padding: 20px;
    border-radius: 18px;
    color: var(--slidecat-text-secondary);
}

.main-bg1 {
    background: linear-gradient(135deg, var(--slidecat-bg-start), var(--slidecat-bg-end));
    border: 1px solid var(--slidecat-border-light);
    padding: 20px;
    border-radius: 18px;
    color: var(--slidecat-text-secondary);
}

/* ===== App Download Section ===== */
.app-container {
    background: var(--card-bg);
    margin: auto;
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
    transform: box-shadow 0.3s ease, transform 0.2s ease;
    text-decoration: none !important;
    text-align: center;
    max-width: 400px;
}

.download-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.appbtn {
    position: relative;
    padding: 12px 45px 12px 25px;
    background-color: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transform: transform 0.2s ease, background-color 0.3s ease;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.btn-text {
    display: inline-block;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(0,0,0,.2);
    width: 0%;
    transform: width 0.3s ease;
}

.progress-percent {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    z-index: 2;
    color: white;
    display: none;
}

.appbtn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.download-note {
    background-color: var(--success-bg);
    color: var(--success-text);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    display: inline-block;
}

.install-btn {
    padding: 12px 25px;
    background-color: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transform: transform 0.2s ease, background-color 0.3s ease;
    width: 100%;
    display: none;
}

.install-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===== Modal/Popup ===== */
.app-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.app-modal.show {
    display: flex;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
}

.app-modal-dialog {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 480px;
    animation: app-pop-in 0.18s ease-out;
}

.app-modal-close {
    position: absolute;
    top: 8px;
    right: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--error);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    transform: transform 0.2s ease;
}

.app-modal-close:hover {
    transform: scale(1.06);
}

@keyframes app-pop-in {
    from {
        transform: translateY(8px) scale(.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-section {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .main-bg {
        border-radius: 12px;
        padding: 10px;
    }
    
    .app-modal-dialog {
        max-width: 92%;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .app-container {
        margin-left: 15px;
        margin-right: 15px;
    }
}

.tools-slider-wrapper { 
    overflow-x: hidden; 
    cursor: grab; 
    width: 100%;
}

.tools-grid { 
    display: flex; 
    gap: 20px; 
    padding: 0 10px; 
    box-sizing: border-box; 
    user-select: none;
}



/* ===== MAIN LAYOUT STRUCTURE ===== */
.main-section2 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.main-bg2 {
    background: var(--main-bg-gradient);
    background-color: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--main-shadow);
    transform: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-bg2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--main-shadow);
}

/* Category Box Styling */
/* Category Grid Styling */
.catbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}


.catbar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;
    min-width: 110px;
    background: var(--catbar-bg);
    border: 1px solid var(--box-border);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--catbar-shadow);
    position: relative;
    overflow: hidden;
    transform: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.catbar-box:hover {
    border-color: var(--catbar-hover-border);
    background: var(--catbar-hover-bg);
    box-shadow: 0 8px 25px var(--catbar-shadow);
}

.catbar-box i {
    font-size: 28px;
    color: var(--catbar-icon);
    transform: transform 0.3s ease;
    z-index: 1;
}

.catbar-box:hover i {
    transform: scale(1.1) rotate(5deg);
}

.catbar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--catbar-title);
    text-align: center;
    line-height: 1.3;
    z-index: 1;
    transform: color 0.3s ease;
}

/* Performance Badge */
.performance-parent {
    text-align: center;
}
.performance-badge {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px var(--badge-shadow);
    position: relative;
    overflow: hidden;
    transform: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.performance-badge:hover {
    box-shadow: 0 6px 20px var(--badge-shadow);
}

.performance-badge i {
    color: var(--badge-icon);
    font-size: 18px;

}

.performance-badge:hover i {
    transform: scale(1.2);
}


/* ===== HERO SECTION ===== */
.hero-text {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--hero-text-color);
    color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--hero-description-color);
    line-height: 1.7;
    margin: 0 auto 30px auto;
    max-width: 800px;
    min-height: 50px;
    font-weight: 400;
    text-align: center;
    display: block;
}

.hero-link-shape {
    display: flex;
    gap: 20px;
    margin: 20px auto;
    text-align: center;
    justify-content: center;
}

.hero-link-bg,
.hero-link-bg1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    color: var(--hero-link-text);
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
}

.hero-link-bg {
    background: var(--hero-btn-gradient1);
}

.hero-link-bg1 {
    background: var(--hero-btn-gradient2);
}

.hero-link-bg:hover,
.hero-link-bg1:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-link-bg i,
.hero-link-bg1 i {
    font-size: 20px;
    transform: transform 0.3s ease;
}

.hero-link-bg:hover i,
.hero-link-bg1:hover i {
    transform: rotate(10deg) scale(1.2);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .main-section2 {
        padding: 0 15px;
        margin-bottom: 25px;
    }

    .main-bg2 {
        padding: 25px;
        border-radius: 14px;
        margin: auto;
    }
    
    .hero-text {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .catbar-box {
        min-width: 100px;
        padding: 18px 12px;
        gap: 10px;
    }
    
    .catbar-box i {
        font-size: 24px;
    }
    
    .catbar-title {
        font-size: 13px;
    }
    
    .hero-link-bg i,
    .hero-link-bg1 i {
        font-size: 12px;
    }
    
    .performance-badge {
        padding: 6px 10px;
        font-size: 12px;

    }
}

/* Mobile (480px - 767px) */
@media (max-width: 767px) {
    .main-section2 {
        padding: 0 12px;
        margin-bottom: 20px;
    }
    
    .main-bg2 {
        padding: 20px;
        border-radius: 12px;
    }
    
    .hero-text {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .catbar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .catbar-box {
        min-width: 90px;
        padding: 15px 10px;
        gap: 8px;
    }
    
    .catbar-box i {
        font-size: 22px;
    }
    
    .catbar-title {
        font-size: 12px;
    }
    
    .hero-link-shape {
        gap: 10px;
        margin: 15px auto;
        padding: 0 10px;
    }
    
    .hero-link-bg,
    .hero-link-bg1 {
        padding: 10px 18px;
        font-size: 14px;
        min-width: 160px;
        gap: 10px;
    }
    
    .hero-link-bg i,
    .hero-link-bg1 i {
        font-size: 18px;
    }
    
    .performance-badge {
        padding: 6px 10px;
        font-size: 8px;
        margin-bottom: 20px;
    }
    
    .performance-badge i {
        font-size: 10px;
    }
}

/* Small Phones (max 479px) */
@media (max-width: 479px) {
    .main-section2 {
        padding: 0 10px;
    }

    .main-bg2 {
        padding: 18px;
    }
    
    .hero-text {
        font-size: 1.6rem;
    }
    
    .catbar-box {
        min-width: 80px;
        padding: 12px 8px;
        gap: 6px;
    }
    
    .catbar-box i {
        font-size: 20px;
    }
    
    .catbar-title {
        font-size: 11px;
    }
    
    .hero-link-shape {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin: 12px auto;
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-link-bg,
    .hero-link-bg1 {
        width: 100%;
        max-width: 300px;
        padding: 10px 16px;
        font-size: 15px;
        min-width: auto;
        justify-content: center;
    }
    
    .hero-link-bg i,
    .hero-link-bg1 i {
        font-size: 14px;
    }
}

/* Dark Mode Toggle Animation */


/* FINAL FIX */
.main-section2 { 
    margin-top: 30px !important; 
    margin-bottom: 30px !important; 
}

.main-bg2 { 
    margin: 0 !important; 
}

*[class*="main-section"] { 
    display: block; 
    position: relative; 
}

/* Additional transform fixes */
.catbar-box:nth-child(1) i { 
    color: #2ecc71; 
    transform: transform 0.3s ease, color 0.3s ease; 
}

.catbar-box:nth-child(2) i { 
    color: #e74c3c; 
    transform: transform 0.3s ease, color 0.3s ease; 
}

.catbar-box:nth-child(3) i { 
    color: #3498db; 
    transform: transform 0.3s ease, color 0.3s ease; 
}

.catbar-box:nth-child(4) i { 
    color: #9b59b6; 
    transform: transform 0.3s ease, color 0.3s ease; 
}

.catbar-box:nth-child(5) i { 
    color: #f39c12; 
    transform: transform 0.3s ease, color 0.3s ease; 
}

.catbar-box:nth-child(6) i { 
    color: #1abc9c; 
    transform: transform 0.3s ease, color 0.3s ease; 
}

.catbar-box:nth-child(7) i { 
    color: #d35400; 
    transform: transform 0.3s ease, color 0.3s ease; 
}


.left-panel {
    display: none !important;
}

.desktop-layout {
    display: block;
}

.right-content {
    width: 100%;
    margin-left: 0;
}

/* Desktop Only - Mobile will ignore everything below */
@media (min-width: 992px) {
    .desktop-layout {
        display: flex !important;
        min-height: 100vh;
        position: relative;
        padding-top: 50px;
        padding-bottom: 50px;
        box-sizing: border-box;
        margin: 0;
    }
    
    .index-footer-margin {
        margin-left: 280px !important;
        width: calc(100% - 280px) !important;
        max-width: calc(1400px - 280px) !important;
    }

    .left-panel {
        display: flex !important;
        width: 280px;
        background-color: #ffffff;
        border-right: 1px solid #dee2e6;
        padding: 20px 0;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        height: calc(100vh - 50px - 60px);
        overflow-y: auto;
        z-index: 90;
        box-sizing: border-box;
        margin: 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(107, 91, 204, 0.5) transparent;
    }

    .left-panel::-webkit-scrollbar {
        width: 6px;
    }

    .left-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    .left-panel::-webkit-scrollbar-thumb {
        background-color: rgba(107, 91, 204, 0.5);
        border-radius: 3px;
    }

    html.dark-mode .left-panel::-webkit-scrollbar-thumb {
        background-color: rgba(138, 125, 255, 0.5);
    }

    html.dark-mode .left-panel {
        background-color: #2d3246;
        border-right-color: #3e4459;
    }

    /* Left Panel Logo */
    .panel-logo {
        padding: 0 25px 30px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.5rem;
        font-weight: 700;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    html.dark-mode .panel-logo {
        border-bottom-color: #3e4459;
    }

    .panel-logo i {
        font-size: 1.8rem;
        color: #6b5bcc;
        transition: transform 0.3s ease;
    }

    .panel-logo:hover i {
        transform: rotate(15deg);
    }

    .panel-logo span {
        background: linear-gradient(90deg, #6b5bcc, #9b03a8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Navigation Menu */
    .panel-nav {
        padding: 0 20px;
        flex-grow: 1;
    }

    /* Remove default list styling */
    .panel-nav ul {
        list-style-type: none !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }

    /* nav Sections */
    .nav-section {
        margin-bottom: 25px;
        background: rgba(142, 60, 250, 0.03);
        border-radius: 12px;
        padding: 18px;
        border: 1px solid rgba(142, 60, 250, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .nav-section:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(142, 60, 250, 0.1);
    }

    html.dark-mode .nav-section {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* Theme Section (At Bottom) */
    .nav-theme-section {
        margin-top: auto;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(142, 60, 250, 0.1) 0%, rgba(106, 17, 203, 0.1) 100%);
        border-radius: 12px;
        padding: 16px;
        border: 1px solid rgba(142, 60, 250, 0.2);
    }

    html.dark-mode .nav-theme-section {
        background: linear-gradient(135deg, rgba(106, 17, 203, 0.15) 0%, rgba(37, 117, 252, 0.15) 100%);
        border-color: rgba(163, 92, 255, 0.2);
    }

    /* Theme Section Styles */
    .theme-header {
        margin-bottom: 15px;
    }

    .theme-header h4 {
        margin: 0;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        color: #6b5bcc;
    }

    html.dark-mode .theme-header h4 {
        color: #8a7dff;
    }

    .theme-selector {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .theme-option {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(142, 60, 250, 0.2);
        color: #6c757d;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.85rem;
    }

    .theme-option:hover {
        background: rgba(107, 91, 204, 0.1);
        border-color: #6b5bcc;
        color: #6b5bcc;
        transform: translateY(-2px);
    }

    .theme-option.active-theme {
        background: #6b5bcc;
        border-color: #6b5bcc;
        color: white;
    }

    html.dark-mode .theme-option {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(138, 125, 255, 0.3);
        color: #adb5bd;
    }

    html.dark-mode .theme-option:hover {
        background: rgba(138, 125, 255, 0.2);
        border-color: #8a7dff;
        color: #8a7dff;
    }

    html.dark-mode .theme-option.active-theme {
        background: #8a7dff;
        border-color: #8a7dff;
        color: white;
    }

    .theme-option i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .current-theme-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        padding-top: 10px;
        border-top: 1px solid rgba(142, 60, 250, 0.1);
    }

    html.dark-mode .current-theme-info {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .current-theme-label {
        color: #6c757d;
    }

    html.dark-mode .current-theme-label {
        color: #adb5bd;
    }

    .current-theme-value {
        font-weight: 600;
        color: #6b5bcc;
    }

    html.dark-mode .current-theme-value {
        color: #8a7dff;
    }

    .section-title {
        font-size: 0.85rem;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
        padding-left: 10px;
    }

    html.dark-mode .section-title {
        color: #adb5bd;
    }

    .nav-item {
        margin-bottom: 8px;
        list-style-type: none !important;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        border-radius: 10px;
        transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
        color: #212529;
        text-decoration: none !important;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    html.dark-mode .nav-link {
        color: #f8f9fa;
    }

    .nav-link:hover {
        background-color: rgba(107, 91, 204, 0.1);
        color: #6b5bcc;
        transform: translateX(5px);
    }

    html.dark-mode .nav-link:hover {
        background-color: rgba(138, 125, 255, 0.2);
        color: #8a7dff;
    }

    .nav-link.active {
        background-color: #6b5bcc;
        color: white;
        box-shadow: 0 4px 12px rgba(107, 91, 204, 0.3);
    }

    html.dark-mode .nav-link.active {
        background-color: #8a7dff;
        color: white;
        box-shadow: 0 4px 12px rgba(138, 125, 255, 0.3);
    }

    .nav-link i {
        font-size: 1.1rem;
        transition: transform 0.3s ease;
        min-width: 20px;
        text-align: center;
    }

    .nav-link:hover i {
        transform: scale(1.1) rotate(5deg);
    }

    .nav-link.active i {
        transform: scale(1.1);
    }

    .nav-text {
        font-size: 0.95rem;
        font-weight: 500;
        flex-grow: 1;
    }

    /* Panel Bottom */
    .panel-bottom {
        padding: 20px;
        border-top: 1px solid #dee2e6;
        margin-top: auto;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
    }

    html.dark-mode .panel-bottom {
        border-top-color: #3e4459;
        background: rgba(45, 50, 70, 0.5);
    }

    /* RIGHT CONTENT - Desktop only adjustments */
    .right-content {
        flex: 1;
        margin-left: 280px !important;
        padding: 20px !important;
        box-sizing: border-box;
        margin-top: 0px !important;
        margin-bottom: 0 !important;
        min-height: calc(100vh - 0px);
        transition: margin-left 0.3s ease;
    }

    /* Remove all padding/margin from right content children */
    .right-content > *:first-child {
        margin-top: 0 !important;
    }

    .right-content > *:last-child {
        margin-bottom: 0 !important;
    }

    /* Side Panel Loader Animation */
    #sidepanel-container {
        position: relative;
        min-height: 100px;
    }

    #sidepanel-container.loading::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 3px solid rgba(107, 91, 204, 0.2);
        border-top-color: #6b5bcc;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to { transform: translate(-50%, -50%) rotate(360deg); }
    }
}
