:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h1 { margin-bottom: 0.5rem; color: var(--primary); }
.login-card p { color: var(--text-muted); margin-bottom: 2rem; }

.form-group { text-align: left; margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }

.alert {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.alert-danger { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }

/* Dashboard Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #1e293b; color: white; padding: 1.5rem; }
.main { flex: 1; padding: 2rem; }

.nav-links { list-style: none; margin-top: 2rem; }
.nav-links li { margin-bottom: 0.5rem; }
.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: #334155; color: white; }

.card {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 1.5rem;
}

/* Tabelas */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th { text-align: left; padding: 1rem; border-bottom: 2px solid var(--border); font-size: 0.875rem; color: var(--text-muted); }
td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.alert-success, .badge-success { background: #dcfce7; color: #166534; }
.alert-warning, .badge-warning { background: #fef3c7; color: #92400e; }
.alert-danger, .badge-danger { background: #fee2e2; color: #991b1b; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; min-height: 100px; }

/* Utils */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.btn-small { 
    padding: 0.5rem 1rem; 
    font-size: 0.875rem; 
    text-decoration: none; 
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-small:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.btn-secondary { background: #64748b; color: white; }
.btn-success { background: var(--success); color: white; }

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 1.5rem;
}

.stat-item { background: #f1f5f9; padding: 1rem; border-radius: 0.5rem; text-align: center; }
.stat-item strong { display: block; font-size: 0.75rem; color: var(--text-muted); }
.stat-item span { font-size: 1.25rem; font-weight: bold; }

