/* Paleta Dark Fitness - MancuernApp */
body {
    background-color: #121214 !important;
    color: #F4F4F5 !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Tarjetas oscuras con borde fino */
.card {
    background-color: #18181B !important;
    border: 1px solid #27272A !important;
    color: #F4F4F5 !important;
    border-radius: 12px;
}

/* Botón principal estilo MancuernApp */
.btn-primary {
    background-color: #E50914 !important;
    border-color: #E50914 !important;
    font-weight: 600;
    border-radius: 8px;
}

    .btn-primary:hover, .btn-primary:active {
        background-color: #B80710 !important;
        border-color: #B80710 !important;
    }

/* Controles de formulario oscuros */
.form-control, .form-select {
    background-color: #27272A !important;
    border: 1px solid #3F3F46 !important;
    color: #FFFFFF !important;
    border-radius: 8px;
}

    .form-control:focus, .form-select:focus {
        border-color: #E50914 !important;
        box-shadow: 0 0 0 0.25rem rgba(229, 9, 20, 0.25) !important;
    }

/* Eliminar fondo violeta / azul predeterminado */
.sidebar, .sidebar .top-row, .nav-scrollable {
    background-color: #0A0A0C !important;
    background-image: none !important;
}

/* Enlaces del menú activo / inactivo */
.nav-item a {
    color: #A1A1AA !important;
}

    .nav-item a.active,
    .nav-item a:hover {
        background-color: #1F1F23 !important;
        color: #FFFFFF !important;
        border-left: 3px solid #E50914 !important;
    }

/* Estilo para botón Cerrar Sesión */
.btn-cerrar-sesion {
    color: #EF4444 !important;
    border: none !important;
    background: transparent !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-cerrar-sesion:hover {
        background-color: rgba(239, 68, 68, 0.1) !important;
        color: #F87171 !important;
        border-left: 3px solid #EF4444 !important;
    }

/* Tabla oscura con texto blanco para el Historial de Pagos */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: #F4F4F5 !important;
    color: #F4F4F5 !important;
}

    .table > :not(caption) > * > * {
        background-color: transparent !important;
        color: #F4F4F5 !important;
        border-bottom-color: #27272A !important;
    }

    .table thead th {
        background-color: #27272A !important;
        color: #FFFFFF !important;
        border-bottom: 2px solid #3F3F46 !important;
    }

    .table tbody tr td {
        color: #E4E4E7 !important;
    }

/* Manejo de la barra de error de Blazor */
#blazor-error-ui {
    background: #FFEBE9;
    color: #900;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none; /* OBLIGATORIO: Debe arrancar oculto */
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 10000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
