:root {
    /* Fondo Azul Medianoche Ligero (Menos agresivo que el negro) */
    --bg-dark: #1e293b;        
    /* Contenedores Blancos */
    --card-white: #ffffff;      
    /* Verde Éxito para botones y acentos */
    --accent: #22c55e;          
    --accent-hover: #16a34a; 
    /* Colores de texto */
    --text-dark: #0f172a;       /* Negro para los contenedores blancos */
    --text-muted: #64748b;      /* Gris para detalles */
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- TARJETAS BLANCAS --- */
.card {
    background-color: var(--card-white) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    color: var(--text-dark) !important;
    padding: 20px;
}

/* Títulos dentro de las tarjetas */
h1, h2, h3, h4, h5, h6, label {
    color: var(--text-dark) !important;
    font-weight: 700;
}

/* --- BOTONES (Se mantienen igual) --- */
.btn-primary {
    background-color: var(--accent) !important;
    border: none !important;
    color: #000000 !important; 
    font-weight: 800 !important;
    padding: 12px 25px !important;
    border-radius: 10px !important;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --- INPUTS (Fondo claro para que encajen con el card blanco) --- */
.form-control, .form-select {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text-dark) !important;
    padding: 12px !important;
}

.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

/* --- TABLAS (Legibles sobre blanco) --- */
.table {
    color: var(--text-dark) !important;
}

.table thead th {
    color: var(--text-dark) !important;
    border-bottom: 2px solid #f1f5f9 !important;
    font-weight: 700;
}

/* --- DISEÑO RESPONSIVE --- */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 15px;
        padding: 15px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .btn-primary {
        width: 100% !important; /* Botón completo en móvil */
    }
    
    /* Hacer tablas deslizables en móvil */
    .table-responsive {
        border: 0;
    }
}

/* --- CORRECCIÓN DE ICONOS EN REGISTRO/LOGIN --- */
.input-group-text {
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--text-dark) !important;
}