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

* {
    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-group { flex-grow: 1; }

.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: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.top-actions { display: flex; align-items: center; }

.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;
}

/* ── STATS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

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

.stat-card:hover { transform: translateY(-5px); border-color: var(--stark-cyan); }

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

.stat-icon {
    width: 45px;
    height: 45px;
    background: var(--stark-cyan-dim);
    color: var(--stark-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-value { font-size: 2rem; font-weight: 800; margin-bottom: 5px; }

.stat-label { color: var(--text-secondary); font-size: 0.85rem; }

/* ── DASHBOARD GRID ── */
.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);
}

.section-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 25px; }

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

.modal-content {
    background: var(--sidebar-bg);
    width: 90%;
    max-width: 600px;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--stark-cyan);
}

input, select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.btn-stark {
    background: var(--stark-cyan);
    color: black;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

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