:root{
    --bg:#0d1117;
    --sidebar:#11161d;
    --panel:#1a212b;
    --panel-hover:#222b37;

    --accent:#5fda8b;
    --accent-dark:#4bc97a;

    --text:#ffffff;
    --text-secondary:#98a6b7;

    --border:rgba(255,255,255,.06);

    --shadow:
        0 10px 30px rgba(0,0,0,.35);

    --radius:16px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Poppins',sans-serif;
    overflow:hidden;
}



.app{
    display:flex;
    width:100%;
    height:calc(100vh - 50px);
}


.logo-img{
    width:56px;
    height:56px;
    object-fit:contain;
    flex-shrink:0;
    border-radius:0;
    background:none;
    box-shadow:none;
}


.sidebar{
    width:280px;
    min-width:280px;

    background:linear-gradient(
        180deg,
        #10151c 0%,
        #141b24 100%
    );

    border-right:1px solid var(--border);

    padding:24px;

    overflow-y:auto;
}

.logo-box{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:35px;
}

.logo{
    width:60px;
    height:60px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        var(--accent),
        #37c86d
    );

    color:#111;
    font-size:22px;
    font-weight:700;

    box-shadow:
        0 10px 25px rgba(95,218,139,.2);
}

.logo-box h2{
    font-size:18px;
    font-weight:600;
}

.logo-box span{
    color:var(--text-secondary);
    font-size:13px;
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.menu-category{
    display:flex;
    flex-direction:column;
}

.menu-title{
    color:var(--accent);
    font-weight:600;
    margin-bottom:10px;
    padding-left:10px;
    font-size:14px;
}

.submenu{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.menu-btn{
    width:100%;

    border:none;
    background:transparent;

    color:var(--text-secondary);

    text-align:left;

    padding:12px 14px;

    border-radius:12px;

    cursor:pointer;

    transition:.2s;
}

.menu-btn:hover{
    background:rgba(255,255,255,.04);
    color:#fff;
    transform:translateX(4px);
}

.menu-btn.active{
    background:rgba(95,218,139,.12);
    border:1px solid rgba(95,218,139,.15);
    color:var(--accent);
}



.content{
    flex:1;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}


.topbar{
    height:90px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:20px 35px;

    background:#131922;

    border-bottom:1px solid var(--border);
}

.topbar h1{
    font-size:28px;
    margin-bottom:4px;
}

.topbar span{
    color:var(--text-secondary);
}

.search-box{
    width:340px;
}

.search-box input{
    width:100%;

    background:#1d2530;

    border:1px solid rgba(255,255,255,.05);

    color:white;

    padding:13px 16px;

    border-radius:12px;

    outline:none;

    transition:.2s;
}

.search-box input:focus{
    border-color:var(--accent);
    box-shadow:
        0 0 0 4px rgba(95,218,139,.12);
}



.page{
    display:none;
    flex:1;
    overflow-y:auto;
    padding:30px;
}

.page.active{
    display:block;
}



.dashboard-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fill,minmax(300px,1fr));
    gap:20px;
}

.dashboard-card{
    background:linear-gradient(
        180deg,
        #1b232d,
        #171d25
    );

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    padding:22px;

    display:flex;
    align-items:center;
    gap:18px;

    cursor:pointer;

    transition:.25s;
}

.dashboard-card:hover{
    transform:translateY(-6px);

    border-color:
        rgba(95,218,139,.18);

    box-shadow:
        0 15px 35px rgba(0,0,0,.25);
}

.card-icon{
    width:70px;
    height:70px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:16px;

    background:
        rgba(95,218,139,.12);

    font-size:32px;
}

.card-content h3{
    margin-bottom:6px;
}

.card-content p{
    color:var(--text-secondary);
    font-size:14px;
}



.info-card{
    background:linear-gradient(
        180deg,
        #1a212b,
        #161d26
    );

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    padding:24px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.15);
}



.tab-btn{
    border:none;
}

.tab-btn.active{
    background:var(--accent);
    color:#111;
}



.tuning-select{
    min-width:300px;

    background:#11161d;

    color:white;

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    padding:11px 14px;

    outline:none;

    transition:.2s;
}

.tuning-select:hover{
    border-color:var(--accent);
}

.tuning-select:focus{
    border-color:var(--accent);

    box-shadow:
        0 0 0 4px rgba(95,218,139,.12);
}

.tuning-summary{
    margin-top:25px;

    background:#11161d;

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    padding:20px;
}

.summary-header{
    margin-bottom:15px;
}

.summary-header h3{
    color:var(--accent);
}

.selected-build{
    max-height:130px;

    overflow-y:auto;

    background:#0f141a;

    border:1px solid rgba(255,255,255,.04);

    border-radius:12px;

    padding:12px;

    margin-bottom:15px;

    color:#c5d0dc;

    font-size:13px;

    line-height:1.6;
}

.summary-totals{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.summary-box{
    background:#0f141a;

    border-radius:14px;

    padding:16px;

    text-align:center;
}

.summary-label{
    color:var(--text-secondary);
    font-size:12px;
    margin-bottom:6px;
}

.summary-value{
    font-size:22px;
    font-weight:700;
}

.money .summary-value{
    color:#5fda8b;
}

.pp .summary-value{
    color:#4ea3ff;
}



.btn{
    border:none;

    background:var(--accent);

    color:#111;

    padding:12px 18px;

    border-radius:12px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;
}

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


::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0f141a;
}

::-webkit-scrollbar-thumb{
    background:#2c3644;
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:#3b4858;
}


@media(max-width:1000px){

    .sidebar{
        width:220px;
        min-width:220px;
    }

    .search-box{
        display:none;
    }

    .tuning-select{
        min-width:220px;
    }
}

@media(max-width:800px){

    body{
        overflow:auto;
    }

    .app{
        flex-direction:column;
        height:auto;
    }

    .sidebar{
        width:100%;
        min-width:100%;
    }

    .content{
        width:100%;
    }

    .page{
        padding:20px;
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }

    .summary-totals{
        grid-template-columns:1fr;
    }

    .tuning-select{
        min-width:160px;
    }
}



.vehicle-wrapper{
    background:linear-gradient(
        180deg,
        #1a212b,
        #161d26
    );

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    padding:24px;

    overflow:hidden;
}

.vehicle-search{
    width:100%;

    max-width:400px;

    background:#11161d;

    border:1px solid rgba(255,255,255,.08);

    color:white;

    padding:12px 16px;

    border-radius:12px;

    outline:none;

    margin-bottom:20px;
}

.vehicle-search:focus{
    border-color:var(--accent);

    box-shadow:
        0 0 0 4px rgba(95,218,139,.12);
}

.vehicle-table{
    width:100%;

    border-collapse:collapse;

    font-size:14px;
}

.vehicle-table thead{
    background:#151c24;
}

.vehicle-table th{
    padding:16px 12px;

    color:var(--text-secondary);

    font-weight:600;

    text-transform:uppercase;

    font-size:12px;

    border-bottom:1px solid rgba(255,255,255,.05);
}

.vehicle-table td{
    padding:16px 12px;

    text-align:center;

    border-bottom:1px solid rgba(255,255,255,.05);
}

.vehicle-table tbody tr{
    transition:.2s;
}

.vehicle-table tbody tr:hover{
    background:rgba(255,255,255,.03);
}

.vehicle-table tbody tr:hover td{
    color:white;
}

.brand-logo{
    width:42px;
    height:42px;

    object-fit:contain;

    display:block;

    margin:auto;
}

.price-money{
    color:#27ae60;
    font-weight:600;
}

.price-pp{
    color:#2980b9;
    font-weight:600;
}

.vehicle-name{
    font-weight:600;
}

.vehicle-money{
    color:#3cf2c3;
    font-weight:700;
}

.vehicle-pp{
    color:#4ea3ff;
    font-weight:700;
}

.vehicle-fuel{
    color:var(--accent);
    font-weight:600;
}

.vehicle-wrapper{
    overflow-x:auto;
}

@media(max-width:1200px){

    .vehicle-table{
        min-width:1000px;
    }

}


.footer{
    height:50px;

    background:#11161d;

    border-top:1px solid rgba(255,255,255,.05);

    display:flex;
    align-items:center;

    padding:0 25px;

    color:var(--text-secondary);

    font-size:13px;
}

.footer-content{
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.footer-right a{
    color:var(--accent);

    text-decoration:none;

    font-weight:600;
}

.footer-right a:hover{
    text-decoration:underline;
}



.antik-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.antik-item{
    background:#1a212b;
    border:1px solid rgba(255,255,255,.05);
    border-radius:10px;

    padding:8px 10px;

    display:grid;
    grid-template-columns:40px 1fr 120px 60px;
    align-items:center;

    gap:10px;

    transition:.15s;
}

.antik-item:hover{
    border-color:rgba(95,218,139,.15);
    background:#202937;
}

.antik-image{
    width:32px;
    height:32px;
    object-fit:contain;
}

.antik-name{
    font-size:14px;
    font-weight:600;
    color:white;
}

.antik-price{
    font-size:14px;
    font-weight:700;
    color:#5fda8b;
    text-align:right;
    white-space:nowrap;
}

.antik-input{
    width:55px;
    height:32px;

    background:#11161d;

    border:1px solid rgba(255,255,255,.08);

    border-radius:8px;

    color:white;

    text-align:center;

    outline:none;
}

.antik-input:focus{
    border-color:#5fda8b;
    box-shadow:
        0 0 0 3px rgba(95,218,139,.12);
}

.antik-bottom{
    margin-top:18px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.08);
}

.antik-percent{
    display:flex;
    align-items:center;
    gap:8px;
}

.antik-percent input{
    width:70px;
    height:34px;

    background:#11161d;

    border:1px solid rgba(255,255,255,.08);

    border-radius:8px;

    color:white;

    text-align:center;
}

.antik-summary{
    display:flex;
    gap:25px;

    font-size:15px;
    font-weight:600;
}

.antik-summary span{
    color:#5fda8b;
}

@media(max-width:1400px){

    .antik-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){

    .antik-grid{
        grid-template-columns:1fr;
    }

    .antik-bottom{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }
}


.commands-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(420px,1fr));
    gap:6px;
}

.command-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:8px 12px;
    background:#161d26;
    border:1px solid rgba(255,255,255,.04);
    border-radius:8px;
    transition:.15s;
}

.command-item:hover{
    border-color:rgba(95,218,139,.20);
    background:#1b232d;
}

.command-name{
    color:#5fda8b;
    font-weight:700;
    min-width:120px;
    font-family:Consolas,monospace;
    font-size:13px;
}

.command-desc{
    color:#c8d2dd;
    font-size:13px;
    flex:1;
}

.command-search{
    width:100%;
    background:#11161d;
    border:1px solid rgba(255,255,255,.05);
    color:white;
    padding:12px;
    border-radius:10px;
    margin-bottom:12px;
    outline:none;
}

.command-search:focus{
    border-color:#5fda8b;
}

.command-forum-btn{
    display:inline-block;
    padding:10px 14px;
    margin-bottom:12px;
    border-radius:10px;
    text-decoration:none;
    color:#5fda8b;
    background:rgba(95,218,139,.10);
    border:1px solid rgba(95,218,139,.15);
    font-size:13px;
    font-weight:600;
}
