@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --bg-dark: #050a11;
    --bg-cobalt: #0D1B2A;
    --bg-card: rgba(13, 27, 42, 0.8);
    --accent-cyan: #00D4FF;
    --accent-glow: rgba(0, 212, 255, 0.4);
    --text-ice: #E0E1DD;
    --text-muted: #8b9bb4;
    --border-glass: rgba(224, 225, 221, 0.1);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --sidebar-width: 260px;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-ice);
    font-family: var(--font-body);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-cobalt);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: fixed;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent-cyan), #0056b3);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu li a:hover, .nav-menu li a.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px 40px;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

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

/* Dashboard Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.kpi-title {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.kpi-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

/* Charts & Tables */
.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
}

.panel h3 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.placeholder-chart {
    height: 250px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    border-radius: 8px;
    border-bottom: 1px solid var(--accent-cyan);
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 14px;
}

th {
    color: var(--text-muted);
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-concluida { background: rgba(16, 185, 129, 0.1); color: var(--success); }
