:root {
    --bg-preto: #0b0b0b;
    --card-dark: #161616;
    --fire-red: #FF0000;
    --text-white: #ffffff;
}

body {
    background-color: var(--bg-preto) !important;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    width: 260px;
    background-color: #000;
    border-right: 1px solid #222;
    padding: 20px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.nav-link {
    color: #888 !important;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 0, 0, 0.1);
    color: var(--fire-red) !important;
}

/* Conteúdo Principal */
main {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-preto);
}

.glass-panel {
    background: var(--card-dark);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Inputs e Botões */
.form-control, .form-select {
    background-color: #121212 !important;
    border: 1px solid #333 !important;
    color: white !important;
}

.btn-danger { background-color: var(--fire-red); border: none; font-weight: bold; }

/* Animação para estoque zerado */
.pulse-red {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { color: #fff; }
    50% { color: #ff0000; font-weight: bold; }
    100% { color: #fff; }
}

/* IMPRESSÃO TÉRMICA 80MM */
@media print {
    body * { visibility: hidden; }
    #print-area, #print-area * { visibility: visible; }
    #print-area {
        position: absolute; left: 0; top: 0;
        width: 80mm; padding: 5mm;
        color: #000 !important; background: #fff !important;
        font-family: monospace; font-size: 11px;
    }
    .via-loja { border-bottom: 2px dashed #000; padding-bottom: 20px; margin-bottom: 20px; }
}