:root {
    --bg-color: #030508;
    --sidebar-bg: #080a12;
    --card-bg: rgba(12, 16, 26, 0.8);
    --stark-cyan: #00f2ff;
    --stark-cyan-dim: rgba(0, 242, 255, 0.15);
    --text-primary: #e0f7fa;
    --text-secondary: #8b949e;
    --border-color: #1a237e;
    --stark-yellow: #f1e05a;
    --stark-green: #3fb950;
    --stark-red: #ff0055;
}

/* ── SCROLLBAR PERSONALIZADA ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; border: 2px solid var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background: var(--stark-cyan); }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

/* ── SIDEBAR ── */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
}

.logo-section { padding: 0 25px 40px; display: flex; align-items: center; gap: 12px; }

.logo-hexagon {
    width: 32px; height: 32px;
    background-color: var(--stark-cyan);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 15px var(--stark-cyan);
}

.logo-text { font-weight: 800; font-size: 1.2rem; color: white; }
.logo-text span { color: var(--stark-cyan); }

.nav-item {
    padding: 15px 25px; display: flex; align-items: center; gap: 15px;
    color: var(--text-secondary); text-decoration: none; cursor: pointer; transition: 0.2s;
}

.nav-item:hover, .nav-item.active { color: var(--stark-cyan); background: var(--stark-cyan-dim); }

/* ── MAIN DASHBOARD ── */
.main-dashboard { flex-grow: 1; overflow-y: auto; padding: 30px 40px; }

header {
    display: flex; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-profile {
    display: flex; align-items: center; gap: 15px;
    background: var(--card-bg); padding: 10px 20px;
    border-radius: 50px; border: 1px solid var(--border-color);
}

.avatar {
    width: 35px; height: 35px; background: var(--stark-cyan);
    color: black; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: bold;
}

.dashboard-grid { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 25px; }

.chart-container, .calendar-container {
    background: var(--card-bg); padding: 30px; border-radius: 25px;
    border: 1px solid var(--border-color); backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ── MODAL & SCANNER ── */
#orcamento-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
}

.modal-content {
    background: var(--sidebar-bg); width: 95%; max-width: 700px;
    max-height: 90vh; padding: 35px; border-radius: 30px;
    border: 1px solid var(--stark-cyan);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15);
    display: flex; flex-direction: column;
}

.modal-body-scroll { overflow-y: auto; padding-right: 10px; }
.modal-body-scroll::-webkit-scrollbar { width: 5px; }
.modal-body-scroll::-webkit-scrollbar-thumb { background: var(--stark-cyan); border-radius: 10px; }

.scanner-container {
    position: relative; width: 100%; height: 180px;
    background: rgba(0, 242, 255, 0.05); border: 2px dashed var(--stark-cyan);
    border-radius: 20px; overflow: hidden; margin-bottom: 25px;
}

.photo-upload-label {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    color: var(--stark-cyan); font-weight: bold; font-size: 0.8rem;
}

.scanner-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--stark-cyan); box-shadow: 0 0 15px var(--stark-cyan);
    z-index: 5; display: none;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 10px; }
.form-grid-3 { display: grid; grid-template-columns: 1.5fr 1.2fr 0.8fr; gap: 20px; margin-bottom: 10px; }

label { display: block; font-size: 0.75rem; color: var(--stark-cyan); margin-bottom: 5px; font-weight: bold; }

input, select {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color); color: white;
    padding: 12px; border-radius: 12px; font-size: 0.9rem;
    color-scheme: dark; /* Força o navegador a usar o tema escuro nos dropdowns nativos */
}

input:focus, select:focus { border-color: var(--stark-cyan); outline: none; background: rgba(0, 242, 255, 0.05); }

select option {
    background: #080a12; 
    color: white;
}

.upsell-row {
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: 15px;
    display: flex; gap: 25px; margin: 15px 0;
}

.upsell-row label { display: flex; align-items: center; gap: 10px; margin: 0; color: white; font-size: 0.85rem; }
.upsell-row input { width: auto; margin: 0; }

.btn-stark {
    background: var(--stark-cyan); color: black; padding: 15px;
    border: none; border-radius: 15px; font-weight: 800; cursor: pointer;
    width: 100%; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
}

.btn-stark:hover { background: white; box-shadow: 0 0 30px var(--stark-cyan); }

/* ── RESULTS ── */
.result-box {
    margin-top: 30px; padding: 25px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), transparent);
    border: 1px solid var(--stark-cyan); border-style: dashed;
}

.res-label { font-size: 0.75rem; color: var(--stark-cyan); letter-spacing: 2px; margin-bottom: 5px; }
#res-total { font-size: 2.2rem; font-weight: 900; color: white; }

.btn-copy {
    background: var(--stark-cyan-dim); color: var(--stark-cyan);
    border: 1px solid var(--stark-cyan); padding: 8px 15px; border-radius: 50px;
    font-size: 0.75rem; font-weight: bold; cursor: pointer; transition: 0.2s;
    margin-top: 10px;
}

.btn-copy:hover { background: var(--stark-cyan); color: black; }

.stat-card {
    background: var(--card-bg); padding: 25px; border-radius: 20px;
    border: 1px solid var(--border-color); transition: 0.3s;
}
