:root{
    --bg:#f3f6fb;
    --card:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --primary:#2563eb;
    --primary-soft:#dbeafe;
    --sidebar:#020617;
    --sidebar-light:#0f172a;
    --border:#e2e8f0;
    --green:#16a34a;
    --red:#dc2626;
    --yellow:#f59e0b;
    --radius:22px;
    --shadow:0 20px 45px rgba(15,23,42,.08);
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Inter, Arial, Helvetica, sans-serif;
    color:var(--text);
    background:var(--bg);
}

.app-body{
    min-height:100vh;
    display:block !important;
    height:auto !important;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 35%),
        radial-gradient(circle at bottom right, rgba(14,165,233,.10), transparent 35%),
        var(--bg);
}

.layout{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:280px;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    padding:26px 18px;
    background:linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color:white;
    display:flex;
    flex-direction:column;
    border-right:1px solid rgba(255,255,255,.08);
}

.sidebar h2{
    font-size:22px;
    margin:0 0 32px;
    letter-spacing:-.6px;
}

.sidebar a,
.sidebar button{
    width:100%;
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    margin-bottom:8px;
    border-radius:16px;
    border:none;
    background:transparent;
    color:#cbd5e1;
    text-align:left;
    text-decoration:none;
    font-size:15px;
    cursor:pointer;
    transition:.2s ease;
}

.sidebar a:hover,
.sidebar button:hover{
    background:rgba(255,255,255,.08);
    color:white;
    transform:translateX(3px);
}

.sidebar a.active{
    background:linear-gradient(135deg, #2563eb, #0ea5e9);
    color:white;
    box-shadow:0 12px 30px rgba(37,99,235,.35);
}

.spacer{
    flex:1;
}

/* CONTENT */

.content{
    margin-left:280px;
    width:calc(100% - 280px);
    padding:42px;
}

.content h1{
    font-size:42px;
    line-height:1;
    margin:0 0 10px;
    letter-spacing:-1.4px;
}

.subtitle{
    color:var(--muted);
    margin-bottom:28px;
}

/* CARD GLOBALI */

.card,
.calculator-card,
.result-card,
.summary-card,
.inventory-card,
.latest-card{
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(12px);
    border:1px solid rgba(226,232,240,.9);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.calculator-card,
.result-card{
    padding:30px;
}

.result-card{
    margin-bottom:24px;
}

/* FORM */

label{
    display:block;
    font-weight:700;
    margin-bottom:8px;
    color:#1e293b;
}

input,
select{
    width:100%;
    padding:15px 16px;
    margin-bottom:20px;
    border:1px solid var(--border);
    border-radius:15px;
    font-size:16px;
    background:white;
    outline:none;
    transition:.2s;
}

input:focus,
select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

/* BUTTONS */

button,
.confirm-btn,
.danger-btn{
    font-weight:700;
    transition:.2s ease;
}

button:active,
.confirm-btn:active,
.danger-btn:active{
    transform:scale(.98);
}

.confirm-btn{
    margin-top:18px;
    width:100%;
    padding:15px;
    border:none;
    border-radius:15px;
    background:linear-gradient(135deg, #16a34a, #22c55e);
    color:white;
    font-size:16px;
    cursor:pointer;
}

.confirm-btn:hover{
    filter:brightness(.96);
}

.danger-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:15px;
    background:linear-gradient(135deg, #dc2626, #ef4444);
    color:white;
    font-size:16px;
    cursor:pointer;
    margin-top:14px;
}

/* STATUS */

.ok{
    color:var(--green);
    font-weight:800;
}

.missing{
    color:var(--red);
    font-weight:800;
}

.warning-text{
    color:var(--yellow);
    font-weight:800;
}

.hidden{
    display:none !important;
}

/* ROWS */

.result-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:15px 0;
    border-bottom:1px solid var(--border);
}

.result-row:last-child{
    border-bottom:none;
}

/* MOBILE */

@media(max-width:900px){
    .layout{
        flex-direction:column;
    }

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .content{
        margin-left:0;
        width:100%;
        padding:24px;
    }

    .content h1{
        font-size:34px;
    }
}
.brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:34px;
}

.brand-logo{
    width:48px;
    height:48px;
    border-radius:16px;
    background:linear-gradient(135deg, #2563eb, #0ea5e9);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:24px;
    font-weight:900;
    box-shadow:0 12px 28px rgba(37,99,235,.38);
}

.brand h2{
    margin:0;
    font-size:22px;
    letter-spacing:-.8px;
}

.brand p{
    margin-top:3px;
    color:#94a3b8;
    font-size:13px;
}