:root {
    --primary: #1e3a8a;
    --secondary: #3b82f6;
    --background: #f1f5f9;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background-color: var(--background); color: var(--text); padding-bottom: 80px; }

.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }

.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; width: 100%; }
.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; }
.form-control:focus { outline: none; border-color: var(--secondary); }

.progress-bar { background: #e2e8f0; border-radius: 99px; height: 12px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; border-radius: 99px; transition: width 0.3s ease; }

.status-badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.status-success { background: #d1fae5; color: #065f46; }
.status-warning { background: #fef3c7; color: #92400e; }
.status-danger { background: #fee2e2; color: #991b1b; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); display: flex; justify-content: space-around; padding: 12px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 100; }
.nav-item { text-align: center; color: var(--text-light); text-decoration: none; font-size: 0.75rem; flex: 1; }
.nav-item.active { color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .btn { width: auto; }
    body { padding-bottom: 0; }
    .bottom-nav { display: none; } /* Desktop usa sidebar/menu superior */
}