:root {
    --sidebar-width: 250px;
}

body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.bg-ingreso {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.bg-egreso {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.bg-balance {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.bg-cuentas {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.transaccion-row-ingreso {
    border-left: 4px solid #28a745;
}

.transaccion-row-egreso {
    border-left: 4px solid #dc3545;
}

.badge-ingreso {
    background-color: #d4edda;
    color: #155724;
}

.badge-egreso {
    background-color: #f8d7da;
    color: #721c24;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.filtros-section {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    .login-card {
        padding: 24px;
    }
}
