:root {
    --bg: #0f1419;
    --panel: #1a1f27;
    --accent: #14e1b4;
    --accent2: #00d4ff;
    --text: #fff;
}

/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

/* ===== AUTH PAGES ===== */
.auth {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #0f1419;
    color: #fff;
}

.auth-card {
    width: 380px;
}

/* ===== INPUTS ===== */
.input,
.select,
.file {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2a3240;
    background: #222b35;
    color: #fff;
    margin: 6px 0;
}

/* ===== BUTTONS ===== */
.btn {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border: 0;
    color: #000;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn.full {
    width: 100%;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: #12161c;
    padding: 20px;
    border-right: 1px solid #202735;
}

.sidebar .brand {
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar nav a {
    display: block;
    color: #d3dde7;
    text-decoration: none;
    padding: 8px 0;
}

.sidebar nav a:hover {
    color: #fff;
}

/* ===== CONTENT ===== */
.content {
    margin-left: 240px;
    padding: 24px;
}

/* ===== CARDS ===== */
.card {
    background: #1a1f27;
    border: 1px solid #202735;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

/* ===== TABLE ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border-bottom: 1px solid #223042;
    padding: 10px;
    text-align: left;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ===== COMPONENTS ===== */
.flash {
    padding: 10px 12px;
    border-radius: 8px;
    margin: 8px 0;
    background: #243042;
}

.saldo {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.muted {
    color: #9aa4af;
    font-size: 12px;
}

.row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== BADGES ===== */
.badge {
    padding: 2px 8px;
    border-radius: 20px;
    background: #243042;
    font-size: 12px;
}

.badge.ok {
    background: #123f2e;
    color: #21e38a;
}

.badge.warn {
    background: #3a3212;
    color: #f2c84b;
}

.badge.err {
    background: #3f1212;
    color: #ff6b6b;
}

/* ===== BUTTON DANGER SMALL ===== */
.btn-small.danger {
    background: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.btn-small.danger:hover {
    opacity: 0.85;
}
