﻿/* ========================================
   ESTILOS MUDBLAZOR PERSONALIZADOS
   ======================================== */

/* --- Estilos existentes --- */
.mud-select .mud-input-outlined-border {
    border-radius: 26px !important;
}

.mud-input .mud-input-outlined-border {
    border-radius: 26px !important;
}

@keyframes mud-input-pulse {
    0% {
        box-shadow: 0 0 8px 2px rgba(0, 222, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(0, 222, 255, 0.6);
    }
    100% {
        box-shadow: 0 0 8px 2px rgba(0, 222, 255, 0.2);
    }
}

.mud-input:focus-within .mud-input-outlined-border {
    animation: mud-input-pulse 2.5s ease-in-out infinite;
    transition: box-shadow 0.3s;
}

.mi-snackbar-mensaje {
    color: green; /* Cambia el color del texto */
}

.mud-input-numeric-spin {
    display: flex;
    justify-content: flex-start; /* Alinea los botones a la izquierda */
    align-items: center; /* Alinea los botones al centro verticalmente */
    margin: 0; /* Elimina cualquier margen que pueda estar afectando la alineación */
    padding: 0; /* Elimina cualquier padding que pueda estar afectando la alineación */
}

    .mud-input-numeric-spin .mud-button-root {
        margin-left: 10px; /* Ajusta este valor según sea necesario */
    }

.mud-input-numeric-spin {
    display: flex;
    justify-content: flex-start; /* Alinea los botones a la izquierda */
    align-items: center; /* Alinea los botones al centro verticalmente */
    margin: 0; /* Elimina cualquier margen que pueda estar afectando la alineación */
    padding: 0; /* Elimina cualquier padding que pueda estar afectando la alineación */
}

    .mud-input-numeric-spin .mud-button-root {
        margin-left: -46px; /* Ajusta este valor según sea necesario para mover las flechas a la izquierda */
    }

/*************************************************************************************************************************/

/*************************************************************************************************************************/

/* --- Estilos movidos desde Style.css --- */

/* ========== TABLAS MUDBLAZOR ========== */

/* Contenedor principal de la tabla */
.mud-table-container {
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mud-toolbar.mud-toolbar-gutters.mud-table-toolbar {
    border-radius: 15px !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

    /* Opcional: Si quieres bordes redondeados completos */
    .mud-toolbar.mud-toolbar-gutters.mud-table-toolbar.rounded-full {
        border-radius: 15px !important;
    }

/* Bordes redondeados para el contenedor completo de paginación */
.d-flex.flex-row[style*="background-color: rgb(43, 43, 52)"] {
    border-radius: 0 0 15px 15px !important;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}

/* Alternativa más específica para el div padre del toolbar de paginación */
div.d-flex.flex-row[style*="border-top:1px solid white"][style*="background-color: rgb(43, 43, 52)"] {
    border-radius: 0 0 15px 15px !important;
}

/* Otra alternativa dirigida al toolbar interno */
.mud-toolbar.mud-toolbar-gutters.mud-table-pagination-toolbar.mud-tablepager-left {
    border-radius: 0 0 15px 15px !important;
}

/* Si necesitas aplicarlo a todo el contenedor de paginación */
.mud-table-pagination .d-flex.flex-row {
    border-radius: 0 0 15px 15px !important;
}

.mud-table-page-number-information {
    font-family: Calibri;
    border: 1px solid rgba(65, 147, 16);
    background-color: rgba(65, 147, 169,.4);
    border-radius: 5px;
    padding: 2px 4px;
    color: white;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    margin-right: auto;
}

.mud-table-pagination-information {
    font-family: Calibri;
    border: 1px solid rgb(140, 3, 69);
    background-color: rgba(153, 31, 90,.5);
    border-radius: 5px;
    padding: 2px 4px;
    color: white;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    margin-right: auto;
}

/* ========== APPBAR Y TOOLBAR ========== */

.mud-appbar .mud-toolbar-appbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== INPUTS Y FORMS ========== */

/*FONDO DE LAS LABEL DE LOS TEXTFIELD*/
.mud-input-label {
    background-color: #1E1E24;
}

/*ES EL MARGIN QUE TIENE EN EL FILTRAR DE LAS TABLAS CUANDO ESTAN EN XS*/
.mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 0;
}

.selected > td .mud-input {
    color: white !important;
    background-color: #00E4F2 !important;
}

/* ========== OVERLAYS Y MODALES ========== */

.mud-overlay {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/*FONDO DE LAS LABEL DE LOS TEXTFIELD Y DATEPICKER*/
.mud-input-label {
    background-color: rgba(30, 30, 36, 0.95) !important;
    padding: 0 4px !important;
    z-index: 1 !important;
}

/* ========== DATEPICKER Y COMPONENTES PICKER ========== */

/* Mejorar el fondo de los DatePicker y otros componentes de MudBlazor */
.mud-picker-inline-paper {
    background-color: rgba(30, 30, 36, 0.95) !important;
}

.mud-picker-paper {
    background-color: rgba(30, 30, 36, 0.95) !important;
}

.mud-picker-container {
    background-color: rgba(30, 30, 36, 0.95) !important;
}

.mud-picker-toolbar {
    background-color: rgba(55, 55, 64, 0.95) !important;
}

.mud-picker-calendar-header {
    background-color: rgba(55, 55, 64, 0.95) !important;
}

.mud-picker-calendar-container {
    background-color: rgba(30, 30, 36, 0.95) !important;
}

.mud-picker-year-container {
    background-color: rgba(30, 30, 36, 0.95) !important;
}

.mud-picker-month-container {
    background-color: rgba(30, 30, 36, 0.95) !important;
}

/* ========== MUDSELECT Y LISTAS ========== */

/* --- MudSelect Solo Lista Luminosa --- */

/* Dropdown del select con efectos luminosos intensos - SOLO LA LISTA */
.mud-popover .mud-list {
    background: rgba(20, 20, 30, 0.98) !important;
    border-radius: 12px !important;
    border: 2px solid rgba(0, 220, 220, 0.6) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), 
                0 0 30px rgba(0, 255, 255, 0.4), 
                0 0 60px rgba(0, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px) !important;
}

/* Items de la lista con efectos luminosos */
.mud-list-item {
    color: #f0f0f0 !important;
    font-size: 1rem !important;
    border-bottom: 1px solid rgba(0, 220, 220, 0.3) !important;
    transition: all 0.3s ease !important;
    background-color: transparent !important;
    padding: 14px 18px !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2) !important;
}

.mud-list-item:hover {
    background: rgba(35, 35, 50, 0.9) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.3), 
                0 0 15px rgba(0, 255, 255, 0.2) !important;
    border-left: 4px solid rgba(0, 255, 255, 0.8) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6) !important;
    transform: translateX(2px) !important;
}

.mud-list-item.mud-selected {
    background: rgba(0, 220, 220, 0.25) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left: 4px solid rgba(0, 255, 255, 1) !important;
    box-shadow: inset 0 0 25px rgba(0, 255, 255, 0.4), 
                0 0 20px rgba(0, 255, 255, 0.3) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}

/* Animación para pulsación luminosa en la lista */
@keyframes listGlow {
    0% {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), 
                    0 0 20px rgba(0, 255, 255, 0.2), 
                    0 0 40px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), 
                    0 0 40px rgba(0, 255, 255, 0.5), 
                    0 0 80px rgba(0, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8), 
                    0 0 20px rgba(0, 255, 255, 0.2), 
                    0 0 40px rgba(0, 255, 255, 0.1);
    }
}

/* Aplicar animación cuando la lista está abierta */
.mud-popover.mud-popover-open .mud-list {
    animation: listGlow 3s ease-in-out infinite !important;
}

.luminosidad-borde:hover {
    border-color: rgba(0, 255, 255, 0.7) !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), inset 0 0 15px rgba(0, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* --- Fin MudSelect Solo Lista Luminosa --- */

/* ========== CLASES HELPER PARA MUDBLAZOR ========== */

/* Estilos para MudPaper específicos */
.mudpaper-datos-cliente-sin-app {
    height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 12px
}

.mudpaper-datos-cliente-con-app {
    height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 12px;
}

.mudpaper-plan-sin-app {
    height: 250px;
    border-radius: 5px;
}

.mudpaper-plan-con-app {
    height: 230px;
    border-radius: 5px;
}

.mudpaper-billetera-sin-app {
    display: flex;
    align-items: center;
    height: 130px;
    border-radius: 5px;
}

.mudpaper-billetera-con-app {
    display: flex;
    align-items: center;
    height: 100px;
    border-radius: 5px;
}

.mudpaper-matricula-sin-app {
    display: flex;
    align-items: center;
    height: 130px;
    border-radius: 5px;
}

.mudpaper-matricula-con-app {
    display: flex;
    align-items: center;
    height: 100px;
    border-radius: 5px;
}

.mudtd {
    text-align: center;
    text-transform: uppercase;
}

/* Clases de escalado para componentes MudBlazor */
.scale-mudfab {
    transform: scale(1);
    transition: transform .1s linear;
}

    .scale-mudfab:hover {
        transform: scale(1.15);
        transition: transform .1s linear;
        cursor: pointer;
    }

/* ========== RESPONSIVE MUDBLAZOR ========== */

@media(max-width:500px) {
    .mud-table-pagination-information {
        display: none;
    }
}

@media (max-width:600px) {
    .mudtd {
        color: white !important;
    }

    .mud-table-toolbar {
        background-color: rgb(43,43,52) !important;
        border-bottom: 1px solid white;
    }

    .mud-xs-table .mud-table-smalldevices-sortselect {
        padding: 0px 8px;
    }

    .mud-table .mud-table-pagination .mud-table-pagination-toolbar {
        min-height: auto;
        height: auto !important;
        padding: 0px
    }
}

