:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;

  --blue: #4285f4;
  --purple: #8e24aa;
  --teal: #00acc1;

  --border: rgba(255,255,255,0.1);

  --gradient:
    linear-gradient(
      90deg,
      #4285f4,
      #8e24aa,
      #00acc1
    );
}

html,
body{
    margin:0;
    height:100%;
}

body{
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

/* NAVBAR */

.navbar{

    height:70px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 40px;

    border-bottom:1px solid var(--border);

    background:rgba(15,23,42,0.8);

    backdrop-filter:blur(15px);

}


.logo{

    font-size:22px;

    font-weight:700;
}


.logo small{

    color:var(--teal);

}

.logo span{

    background:var(--gradient);

    background-clip:text;

    -webkit-background-clip:text;

    color:transparent;

}

.nav-links{

    display:flex;

    gap:30px;

}



.nav-links a{

    color:var(--text-secondary);

    text-decoration:none;

    transition:0.3s;

}



.nav-links a:hover{

    color:white;

}



.avatar{

    width:40px;

    height:40px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--gradient);

    color:white;

    font-weight:bold;

}

.btn-primary{

    min-width:150px;

    height:50px;

    padding:0 30px;

    border:none;

    border-radius:12px;

    background:var(--gradient);

    color:white;

    font-size:16px;

    cursor:pointer;

}


/* SIDEBAR */

.sidebar{
    width:280px;
    min-height:100%;
    padding:20px;
    padding-bottom: 80px;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:15px;
    border-right:1px solid var(--border);
}

@media(max-width:900px){

    .menu-toggle{

        display:block;

    }


    .sidebar{

        position:fixed;

        left:-320px;

        top:70px;

        width:270px;

        height:100vh;

        z-index:999;

        transition:0.3s ease;

        background: var(--bg-color);
        overflow-y:auto;
        padding:20px;

        display:flex;
        flex-direction:column;
        gap:15px;

        

    }


    .sidebar.show{

        left:0;

    }


        .nav-links{

        display:none;

    }

    .app-layout{

        height:auto;

        overflow:visible;

    }

    
}





.sidebar-title{

    color:var(--text-secondary);

    font-size:14px;

    margin-bottom:20px;

    text-transform:uppercase;

}



.sidebar a{

    text-decoration:none;

    color:var(--text-secondary);

    padding:15px 18px;

    border-radius:12px;

    transition:0.3s;

}



.sidebar a:hover{

    background:rgba(255,255,255,0.08);

    color:white;

}

.app-layout{
    display:flex;
}

.app-layout{
    display:flex;
    flex:1;
    min-height:0;
    overflow:hidden;
}

.sidebar{
    height:100%;
    min-height:0;
    overflow-y:auto;
    flex-shrink:0;
}



/* FOOTER */

.footer {
    width: 100%;
    box-sizing: border-box;
    padding: 25px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    margin-top: auto;
    flex-shrink: 0;
}


.footer-logo{

    color:white;

    font-weight:600;

}



.footer-copy{

    opacity:0.7;

}



.footer-text{

    opacity:0.8;

}



/* MOBILE FOOTER */


@media(max-width:768px){


    .footer{

        flex-direction:column;

        gap:10px;

        text-align:center;

    }


}





/* HERO SECTION */


.hero{

    max-width:800px;

    margin:80px auto;

    text-align:center;

}



.hero-badge{

    display:inline-block;

    padding:10px 20px;

    border:1px solid var(--border);

    border-radius:50px;

    margin-bottom:25px;

    color:var(--teal);

}



.hero h1{

    font-size:60px;

    line-height:1.2;

    margin-bottom:25px;

}



.hero h1 span{

    background:var(--gradient);

    background-clip:text;

    -webkit-background-clip:text;

    color:transparent;

}



.hero p{

    color:var(--text-secondary);

    font-size:18px;

    line-height:1.8;

    margin-bottom:35px;

}


.hero-buttons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    margin-top:30px;

}

.btn-secondary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 30px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,0.3);

    background:rgba(255,255,255,0.08);

    color:#F8FAFC;

    font-size:16px;

    cursor:pointer;

    transition:0.3s;

}

.btn-secondary{

    display:block;

    width:auto;

    min-width:150px;

    height:50px;

    padding:0 30px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,0.3);

    background:#1e293b;

    color:#f8fafc;

    font-size:16px;

    cursor:pointer;

    transition:0.3s;

}


.btn-secondary:hover{

    background:#334155;

}

@media(max-width:768px){

    .hero h1{

        font-size:38px;

    }

    .hero-buttons{

        flex-direction:column;

    }

}

/* FEATURES SECTION */


.features{

    margin:100px auto;

    max-width:1100px;

}



.section-title{

    text-align:center;

    margin-bottom:50px;

}



.section-title h2{

    font-size:40px;

    margin-bottom:15px;

}



.section-title h2 span{

    background:var(--gradient);

    background-clip:text;

    -webkit-background-clip:text;

    color:transparent;

}



.section-title p{

    color:var(--text-secondary);

    font-size:18px;

}





.feature-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}





.feature-card{

    background:rgba(255,255,255,0.04);

    border:1px solid var(--border);

    border-radius:20px;

    padding:30px;

    transition:0.3s;

}





.feature-card:hover{

    transform:translateY(-8px);

    background:rgba(255,255,255,0.08);

}





.feature-icon{

    font-size:35px;

    margin-bottom:20px;

}





.feature-card h3{

    margin-bottom:15px;

}



.feature-card p{

    color:var(--text-secondary);

    line-height:1.7;

}

@media(max-width:900px){


    .feature-grid{

        grid-template-columns:repeat(2,1fr);

    }


}



@media(max-width:600px){


    .feature-grid{

        grid-template-columns:1fr;

    }


}

/* HOW IT WORKS */


.how-it-works{

    max-width:1100px;

    margin:120px auto;

}




.workflow{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}




.step-card{

    padding:30px;

    border-radius:20px;

    border:1px solid var(--border);

    background:rgba(255,255,255,0.04);

    position:relative;

}





.step-number{

    width:45px;

    height:45px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:var(--gradient);

    color:white;

    font-weight:bold;

    margin-bottom:20px;

}




.step-card h3{

    margin-bottom:15px;

}




.step-card p{

    color:var(--text-secondary);

    line-height:1.7;

}

@media(max-width:900px){


    .workflow{

        grid-template-columns:repeat(2,1fr);

    }


}



@media(max-width:600px){


    .workflow{

        grid-template-columns:1fr;

    }


}

/* CINEMATIC PREVIEW */


.preview-section{

    max-width:1100px;

    margin:120px auto;

}





.preview-container{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}





.preview-card{

    background:rgba(255,255,255,0.04);

    border:1px solid var(--border);

    border-radius:25px;

    padding:30px;

}





.preview-header{

    font-size:20px;

    font-weight:600;

    margin-bottom:25px;

}





.image-placeholder{

    height:180px;

    border-radius:15px;

    background:linear-gradient(
        135deg,
        #1e293b,
        #334155
    );

    display:flex;

    justify-content:center;

    align-items:center;

    color:var(--text-secondary);

    margin-bottom:20px;

}





.scene-box p,
.shot-item p{

    color:var(--text-secondary);

    line-height:1.6;

}





.details{

    display:flex;

    gap:15px;

    margin-top:20px;

}



.details span{

    padding:8px 12px;

    background:rgba(255,255,255,0.08);

    border-radius:20px;

    font-size:13px;

}





.shot-item{

    padding:20px 0;

    border-bottom:1px solid var(--border);

}

@media(max-width:800px){


    .preview-container{

        grid-template-columns:1fr;

    }


    .details{

        flex-direction:column;

    }


}

/* ACTIVE SIDEBAR LINK */


.sidebar a.active{

    background:rgba(66,133,244,0.15);

    color:white;

    border-left:3px solid var(--blue);

}

/* MOBILE MENU */


.menu-toggle{

    display:block;

    background:none;

    border:none;

    color:white;

    font-size:28px;

    cursor:pointer;

}

/* MOBILE MENU TEST */


.menu-toggle{

    display:none;

    background:none;

    border:none;

    color:white;

    font-size:30px;

    cursor:pointer;

}


@media(max-width:900px){

    .menu-toggle{

        display:block;

    }

}
/* GLOBAL PAGE ANIMATION */


body{

    animation:pageFade 0.5s ease-in-out;

}


@keyframes pageFade{


from{

    opacity:0;

    transform:translateY(10px);

}


to{

    opacity:1;

    transform:translateY(0);

}


}

/* CARD ANIMATION */


.story-card,
.shot-card,
.export-card,
.settings-card{


    transition:0.3s ease;


}



.story-card:hover,
.shot-card:hover,
.export-card:hover,
.settings-card:hover{


    transform:translateY(-4px);


    border-color:rgba(66,133,244,0.5);


}

/* BUTTON EFFECT */


button{


    transition:0.3s ease;


}



button:hover{


    transform:translateY(-3px);

    opacity:0.9;


}


.btn-primary:hover{


    box-shadow:
    0 10px 30px rgba(66,133,244,0.35);


}

.project-actions{

    display:flex;

    gap:10px;

    margin-top:15px;

}

.project-actions button{

    flex:1;

}

.sidebar-projects{
    display:flex !important;
    flex-direction:column !important;
}

.sidebar-projects a{
    display:block !important;
    width:100% !important;
}@media(min-width:901px){

    .sidebar{
        left:0;
    }

}

.prompt-box{
    margin-top:15px;
    padding:12px;
    background:rgba(255,255,255,0.05);
    border-radius:10px;
    border:1px solid var(--border);
}

.prompt-box summary{
    cursor:pointer;
    color:#7c5cff;
    font-weight:600;
    margin-bottom:10px;
}

.prompt-box p{
    font-size:14px;
    line-height:1.6;
    color:var(--text-secondary);
}

.storyboard-image img{

    width:100%;

    height:220px;

    object-fit:cover;

    border-radius:12px;

    display:block;

}

.shot-badge{

    display:inline-block;

    padding:6px 12px;

    margin-bottom:12px;

    border-radius:20px;

    background:#7c5cff;

    color:white;

    font-size:12px;

    font-weight:600;

}

.scene-badge{

    display:inline-block;

    padding:5px 10px;

    border-radius:20px;

    background:#1f2937;

    color:white;

    font-size:12px;

    margin-bottom:12px;

}

.sidebar::after{
    content:"";
    display:block;
    flex-shrink:0;
    height:100px;
}



/* Hero */

.hero {
    max-width: 950px;
    margin: 0 auto;
    padding: 70px 20px 90px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(140, 100, 255, 0.35);
    border-radius: 30px;
    color: #9b7cff;
    background: rgba(140, 100, 255, 0.08);
    font-size: 14px;
    font-weight: 600;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 24px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--text-color);
}

.hero h1 span,
.section-title span {
    display: block;
    background: linear-gradient(
        90deg,
        #8b5cf6,
        #ec4899,
        #f59e0b
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 32px;
    color: var(--muted-color);
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-buttons button {
    min-width: 150px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-buttons button:hover {
    transform: translateY(-3px);
}

/* Sections */

.features,
.how-it-works,
.preview-section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 70px 0;
}

.section-title {
    max-width: 650px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-title h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    color: var(--text-color);
}

.section-title p {
    color: var(--muted-color);
    line-height: 1.7;
}

/* Feature cards */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-color);
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: #8b5cf6;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.12);
    font-size: 25px;
}

.feature-card h3,
.step-card h3,
.scene-box h3,
.shot-item h3 {
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p,
.step-card p,
.scene-box p,
.shot-item p {
    color: var(--muted-color);
    line-height: 1.7;
    font-size: 14px;
}

/* Workflow */

.workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    position: relative;
    padding: 28px;
    border-left: 2px solid #8b5cf6;
    background: var(--card-color);
    border-radius: 0 16px 16px 0;
}

.step-number {
    margin-bottom: 18px;
    color: #a78bfa;
    font-size: 28px;
    font-weight: 800;
}

/* Preview */

.preview-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.preview-card {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-color);
}

.preview-header {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 17px;
    font-weight: 700;
}

.scene-box {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin-bottom: 20px;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.2),
            rgba(236, 72, 153, 0.12)
        );
    color: var(--muted-color);
    font-size: 14px;
}

.details {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.details span {
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--muted-color);
    font-size: 12px;
}

.shot-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.shot-item:last-child {
    border-bottom: none;
}

/* Mobile */

@media (max-width: 900px) {

    .feature-grid,
    .workflow {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-container {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .main-content {
        padding: 25px 18px;
    }

    .hero {
        padding: 45px 10px 60px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 15px;
    }

    .features,
    .how-it-works,
    .preview-section {
        padding: 45px 0;
    }

    .feature-grid,
    .workflow {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons button {
        width: 100%;
    }

}

.main-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 5% 80px;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(120, 80, 255, 0.12),
            transparent 35%
        ),
        var(--bg-color);
}

/* =================================
   HERO REFINEMENT
================================= */

.hero {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 55px 20px 70px;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
}

.hero p {
    max-width: 620px;
    font-size: 16px;
}

@media (max-width: 600px) {

    .hero {
        min-height: 450px;
        padding: 40px 10px 55px;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 48px);
    }

}

/* =================================
   FEATURE CARD REFINEMENT
================================= */

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #8b5cf6,
        #ec4899,
        #f59e0b
    );
}

.feature-card h3 {
    font-size: 18px;
    line-height: 1.4;
}

.feature-card p {
    margin-top: auto;
}

.feature-icon {
    flex-shrink: 0;
}

/* =================================
   WORKFLOW REFINEMENT
================================= */

.step-card {
    min-height: 220px;
    border: 1px solid var(--border-color);
    border-left: 3px solid #8b5cf6;
    transition: 0.25s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    font-size: 18px;
}

.step-card h3 {
    font-size: 18px;
}
/* =================================
   PREVIEW REFINEMENT
================================= */

.preview-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.scene-box {
    margin-top: 20px;
}

.image-placeholder {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(30, 30, 60, 0.9),
            rgba(100, 60, 150, 0.7)
        );
}

.image-placeholder::after {
    content: "SCENE 01";
    position: absolute;
    bottom: 12px;
    left: 14px;
    padding: 5px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 11px;
    letter-spacing: 1px;
}

.shot-item {
    position: relative;
    padding: 20px 0 20px 18px;
}

.shot-item::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.shot-item h3 {
    font-size: 16px;
}

.shot-item p {
    margin-top: 6px;
}

/* SETTINGS THEME */
:root {
    --bg-color: #0f172a;
    --card-color: #1e293b;
    --text-color: #f8fafc;
    --muted-color: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
}

html:not(.dark-theme),
body:not(.dark-theme) {
    --bg-color: #f8fafc;
    --card-color: #ffffff;
    --text-color: #0f172a;
    --muted-color: #475569;
    --border-color: rgba(15, 23, 42, 0.12);
}

html.dark-theme,
body.dark-theme {
    --bg-color: #0f172a;
    --card-color: #1e293b;
    --text-color: #f8fafc;
    --muted-color: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* SIDEBAR LOGOUT */
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted-color);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* MOBILE WIDTH FIX */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.app-layout {
    min-width: 0;
    max-width: 100%;
}

.main-content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sidebar {
        box-sizing: border-box;
        max-width: 260px;
    }

    .footer {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }
}

/* Final responsive layout fixes */
html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    min-width: 0;
    max-width: 100%;
}

.footer {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 24px 5%;
    overflow: hidden;
}

.footer-logo,
.footer-text,
.footer-copy {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .footer {
        padding: 22px 16px;
        text-align: center;
    }

    .footer-logo,
    .footer-text,
    .footer-copy {
        width: 100%;
        max-width: 100%;
        line-height: 1.6;
    }
}

/* Mobile page width fix */
@media (max-width: 768px) {
    .app-layout {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* Sticky footer layout */
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-layout {
    min-height: 0;
    flex: 1;
}

.footer {
    position: relative;
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 16px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 28px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.sidebar-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.15);
    font-size: 21px;
}

.sidebar-brand strong {
    display: block;
    color: var(--text-color);
    font-size: 15px;
}

.sidebar-brand span {
    display: block;
    margin-top: 3px;
    color: var(--muted-color);
    font-size: 11px;
}

.sidebar-title {
    padding: 12px;
    color: var(--muted-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: var(--muted-color);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.sidebar-nav a span {
    width: 22px;
    text-align: center;
    font-size: 17px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text-color);
}

.sidebar-nav a.active {
    border-left: 3px solid #8b5cf6;
    padding-left: 9px;
}

.sidebar-projects {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

#sidebarProjects {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#sidebarProjects a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted-color);
    text-decoration: none;
    font-size: 13px;
}

#sidebarProjects a:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-color);
}

/* Navbar polish */
.navbar {
    min-height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo small {
    padding: 3px 7px;
    border-radius: 6px;
    background: #8b5cf6;
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--muted-color);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-links a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-color);
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-toggle {
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 18px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding: 8px;
        font-size: 13px;
    }

    .logo {
        font-size: 16px;
    }
}/* Keep sidebar scrolling separate from the page */
.sidebar {
    height: calc(100vh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding-bottom: 24px;
}

.sidebar-projects {
    margin-bottom: 12px;
}
.scene-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}