/* === ALERT WINDOW === */
.custom-alert-window {
    background: linear-gradient(160deg, #0f2027, #203a43, #2c5364);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInScale 0.3s ease;
    overflow: hidden;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* === ICONO === */
.alert-icon i {
    font-size: 42px;
    color: #3498db;
    animation: pulseIcon 1.8s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); color: #3498db; }
    50% { transform: scale(1.15); color: #5dade2; }
}

/* === MENSAJE === */
.alert-message {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50; /* gris oscuro */
    line-height: 1.6em;
    white-space: normal;
    word-break: break-word;
    overflow-y: auto;
    max-height: 250px; /* limita en pantallas pequeñas */
}

/* === FOOTER === */
.alert-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    padding: 14px 18px;
}

/* === BOTONES === */
.alert-btn {
    border-radius: 30px !important;
    padding: 9px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    border: none !important;
    transition: all 0.3s ease;
}

/* Botón aceptar */
.alert-btn-accept {
    background: linear-gradient(145deg, #27ae60, #2ecc71);
    color: #fff !important;
}
.alert-btn-accept:hover {
    background: linear-gradient(145deg, #1e8449, #229954);
    transform: translateY(-2px);
}

/* Botón cancelar */
.alert-btn-cancel {
    background: linear-gradient(145deg, #c0392b, #e74c3c);
    color: #fff !important;
}
.alert-btn-cancel:hover {
    background: linear-gradient(145deg, #922b21, #a93226);
    transform: translateY(-2px);
}


/* ===========================
   Window principal
   =========================== */
.asignar-window {
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(3, 37, 76, 0.15) !important;
    background: #ffffff !important;
}

.combo-estudiante .x-form-item-label {
    font-weight: 600;
    color: #1e88e5;
}

.combo-estudiante .x-form-field {
    border-radius: 10px !important;
    padding: 8px;
    border: 1px solid #d7e6f4;
}

/* Barra inferior */
.asignar-bbar {
    border-top: 1px solid rgba(30,136,229,0.1);
}

/* Botones */
.btn-asignar {
    background: linear-gradient(135deg, #1e88e5, #1565c0) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600;
}
.btn-cerrar {
    background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600;
}

/* Toasts */
.toast-success {
    background: #43a047 !important;
    color: #fff !important;
}
.toast-warning {
    background: #f57c00 !important;
    color: #fff !important;
}

/* ===========================
   Confirm Window
   =========================== */
.custom-confirm {
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(3, 37, 76, 0.15) !important;
    background: #fff !important;
}

.confirm-icon i {
    font-size: 46px;
    color: #1e88e5;
}

.confirm-message {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

/* Botones confirm */
.btn-continue {
    background: linear-gradient(135deg, #1e88e5, #1565c0) !important;
    color: #fff !important;
    border-radius: 18px !important;
    padding: 6px 12px !important;
    font-weight: 600;
}
.btn-cancel {
    background: #9e9e9e !important;
    color: #fff !important;
    border-radius: 18px !important;
    padding: 6px 12px !important;
    font-weight: 600;
}




/* ===========================
   Masiva Confirm Window
   =========================== */

.masiva-confirm {
    border-radius: 14px !important;
    box-shadow: 0 14px 40px rgba(3, 37, 76, 0.14) !important;
    background: #ffffff !important;
    text-align: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.masiva-icon i {
    font-size: 48px;
    color: #1e88e5;
    display: inline-block;
}

.masiva-message {
    font-size: 16px;
    color: #222;
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 0 10px;
}

/* Botones */
.btn-masiva-continue {
    background: linear-gradient(135deg, #1e88e5, #1565c0) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600;
}

.btn-masiva-cancel {
    background: linear-gradient(135deg, #9e9e9e, #757575) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-weight: 600;
}

/* Barra inferior */
.masiva-bbar {
    border-top: 1px solid rgba(30,136,229,0.1);
}

/* Responsive */
@media (max-width: 480px) {
    .masiva-icon i { font-size: 36px; }
    .masiva-message { font-size: 14px; line-height: 1.4; }
    .btn-masiva-continue, .btn-masiva-cancel { font-size: 13px; padding: 5px 12px; }
}


/* === CARD WIDGET === */
.card-widget {
    position: relative; /* Necesario para posicionar el LED */
    border-radius: 16px;
    background: linear-gradient(160deg, #0a1a2f, #153b66, #1e5289);
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease-in-out;
    cursor: default;
    border: 1px solid rgba(255,255,255,0.08);
    font-family: "Cormorant Garamond", serif;
    color: #f0f6ff;
}

.card-widget:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
    transform: translateY(-4px);
}

/* === TITULO === */
.card-title-text {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #e8f2ff;
    text-align: center;
    line-height: 1.4em;
    letter-spacing: 0.5px;

    /* multilinea con ellipsis */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

/* === DESCRIPCION === */
.card-desc {
    font-size: 18px;
    line-height: 1.6em;
    color: #d6e8ff;
    margin: 10px 0 16px;
    text-align: center;
    
    /* multilinea con ellipsis (máx. 2 líneas) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

/* === IMAGEN PRINCIPAL === */
.card-main-image {
    border-radius: 12px;
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    margin: 12px auto;
    display: block;
    border: 2px solid rgba(180,200,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* === BOTONES DE ACCION === */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 16px 0;
}

.card-widget .x-btn {
    background: linear-gradient(145deg, #1b2a49, #2e4c7a);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* centrado del ícono */
.card-widget .x-btn-icon-el {
    position: static !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #7abaff !important; /* azul acero */
    transition: transform 0.2s ease, color 0.3s ease;
}

.card-widget .x-btn:hover {
    background: linear-gradient(145deg, #355c9a, #4a7fc5);
    box-shadow: 0 0 14px rgba(74,127,197,0.6), 0 0 22px rgba(74,127,197,0.5);
    transform: scale(1.12);
}

.card-widget .x-btn:hover .x-btn-icon-el {
    transform: rotate(-10deg);
    color: #cce4ff !important;
}

/* === MINI ICONOS + VALORES === */

/* Contenedor de stats */
.card-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 28px;
}

/* Botón de stat */
.card-stats-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 6px !important;
    color: rgba(210,225,255,0.85) !important;
    font-family: "Raleway", sans-serif;
    font-size: 14px !important;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Ícono dentro del botón */
.card-stats-item .x-btn-icon-el {
    font-size: 18px !important;
    line-height: 1 !important;
    margin-right: 6px !important;
    color: #80c1ff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease, color 0.3s ease;
}

/* Texto del stat */
.card-stats-item .x-btn-inner {
    font-size: 14px !important;
    font-weight: 500;
    color: rgba(230,240,255,0.95);
    display: inline-flex !important;
    align-items: center !important;
}

/* Hover */
.card-stats-item:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}
.card-stats-item:hover .x-btn-icon-el {
    color: #cce4ff !important;
    transform: scale(1.2);
}



/* LED */
.led-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.6);
}
.led-on {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50, 0 0 20px rgba(76, 175, 80, 0.6);
}
.led-off {
    background: #B71C1C;
    box-shadow: 0 0 10px #B71C1C, 0 0 20px rgba(183, 28, 28, 0.6);
}


/* Íconos de esfuerzo con azul sobrio */
.strength-indicator .strength-icon i {
    font-size: 16px;
    color: #2c6ebf;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);

    /* Ajustes para que no se corten */
    line-height: 1 !important;   /* evita que se descuadre */
    vertical-align: middle !important;
    position: relative;    

    transition: transform 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
    cursor: pointer;
}

/* Hover */
.strength-indicator .strength-icon i:hover {
    transform: scale(1.15);
    color: #3d82d1;
    text-shadow: 0 3px 8px rgba(61,130,209,0.25);
}

/* Active */
.strength-indicator .strength-icon i:active {
    transform: scale(0.95);
}


/* Panel principal */
.promedios-panel {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: transparent;
}

/* Botón Cerrar */
.btn-cerrar {
    background: linear-gradient(135deg, #d90429, #9d0208) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-weight: bold;
    font-size: 14px !important;
    padding: 8px 18px;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cerrar:hover {
    background: linear-gradient(135deg, #9d0208, #6a0000) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-cerrar .fa {
    font-size: 16px;
    margin-right: 6px;
}

/* Grid */
.grid-promedios {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Multilinea */
.grid-promedios .grid-multiline {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3;
    text-align: center;
    padding: 4px 8px;
}

/* Centrado de celdas */
.grid-promedios .x-grid-cell-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}


/* Panel */
.checkgrid-panel {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: transparent;
}

/* Botón Cerrar */
.btn-cerrar {
    background: linear-gradient(135deg, #d90429, #9d0208) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-weight: bold;
    font-size: 14px !important;
    padding: 8px 18px;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cerrar:hover {
    background: linear-gradient(135deg, #9d0208, #6a0000) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-cerrar .fa {
    font-size: 16px;
    margin-right: 6px;
}

/* Grid */
.grid-check {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Multilinea */
.grid-check .grid-multiline {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3;
    text-align: center;
    padding: 4px 8px;
}

/* Centrar contenido en celdas */
.grid-check .x-grid-cell-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* CheckColumn personalizado */
.grid-check .x-grid-checkcolumn {
    cursor: pointer;
}



/* === FORMULARIO ELEGANTE (SIN COLORES FIJOS) === */

/* Contenedor principal */
.indicador-form {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 20px;
    background: transparent; /* no definimos color */
}

/* Labels */
.indicador-field .x-form-item-label {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

/* Campos de texto, combos y textarea */
.indicador-field .x-form-text,
.indicador-field .x-form-textarea,
.indicador-field .x-form-trigger-wrap {
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Efecto al enfocar */
.indicador-field .x-form-text:focus,
.indicador-field .x-form-textarea:focus,
.indicador-field .x-form-trigger-wrap-focus {
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    transform: scale(1.01);
}

/* Checkboxes */
.indicador-field .x-form-cb-wrap {
    margin-top: 6px;
}

/* Botón Guardar */
.btn-guardar {
    background: linear-gradient(135deg, #0077b6, #0096c7) !important;
    border-radius: 20px !important;
    color: #ffffff !important;            /* asegura texto blanco */
    font-weight: bold;
    font-size: 14px !important;
    padding: 8px 22px;
    border: none !important;
    text-shadow: none !important;         /* quita sombra que oscurece texto */
    opacity: 1 !important;                /* asegura visibilidad */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-guardar:hover {
    background: linear-gradient(135deg, #023e8a, #0077b6) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Botón Cancelar */
.btn-cancelar {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border-radius: 20px !important;
    color: #ffffff !important;           /* asegura texto blanco */
    font-weight: bold;
    font-size: 14px !important;
    padding: 8px 22px;
    border: none !important;
    text-shadow: none !important;        /* quita sombra */
    opacity: 1 !important;               /* asegura visibilidad */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cancelar:hover {
    background: linear-gradient(135deg, #495057, #343a40) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}



/* Ventana */
.indicador-window {
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    overflow: hidden;
}

/* Encabezado de ventana */
.indicador-window .x-window-header {
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 16px 16px 0 0 !important;
}

/* Botón de cerrar */
.indicador-window .x-tool-close {
    border-radius: 50%;
    transition: background 0.2s ease;
}

.indicador-window .x-tool-close:hover {
    background: rgba(0,0,0,0.1);
}



/* ==============================
   Historial Insignias Responsive
   ============================== */
/*********************************************
 * 🧾 Encabezado del grid (color más suave)
 *********************************************/

/* Classic Toolkit */
.historial-grid .x-grid-header-ct,
.historial-grid .x-grid-header-ct .x-column-header {
    background: linear-gradient(180deg, #f7f8fa, #f0f2f5) !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: center !important;
    border: none !important;
    border-bottom: 1px solid #d0d4da !important;
}

/* Modern Toolkit */
.historial-grid .x-gridcolumn {
    background: linear-gradient(180deg, #f7f8fa, #f0f2f5) !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: center !important;
    border-bottom: 1px solid #d0d4da !important;
}

/*********************************************
 * 📋 Filas del grid (igual que antes)
 *********************************************/
.historial-grid .x-grid-item,
.historial-grid .x-gridrow {
    font-size: 13px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    transition: background-color 0.2s ease;
}
.historial-grid .x-grid-item:hover,
.historial-grid .x-gridrow:hover {
    background-color: #f7f9fb !important;
}

/*********************************************
 * 🔤 Celdas
 *********************************************/
.historial-grid .x-grid-cell,
.historial-grid .x-gridcell,
.x-grid-cell-inner {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 10px 8px !important;
    line-height: 1.5 !important;
}

/*********************************************
 * 🧾 Celdas multilínea
 *********************************************/
.multiline-cell {
    white-space: normal !important;
    line-height: 1.4 !important;
    text-align: center !important;
    word-break: break-word !important;
}

/*********************************************
 * ⭐ Iconos de acción
 *********************************************/
.action-revoke {
    color: #e53935 !important;
    font-size: 18px !important;
    margin: 0 6px;
    cursor: pointer;
}
.action-revoke:hover { color: #c62828 !important; }

.action-resend {
    color: #1e88e5 !important;
    font-size: 18px !important;
    margin: 0 6px;
    cursor: pointer;
}
.action-resend:hover { color: #1565c0 !important; }

.action-download {
    color: #43a047 !important;
    font-size: 18px !important;
    margin: 0 6px;
    cursor: pointer;
}
.action-download:hover { color: #2e7d32 !important; }

.action-create {
    color: #ff9800 !important;
    font-size: 18px !important;
    margin: 0 6px;
    cursor: pointer;
}
.action-create:hover { color: #ef6c00 !important; }

/*********************************************
 * ⚙️ Toolbar superior (buscador)
 *********************************************/
.historial-grid .x-toolbar,
.historial-grid .x-toolbar-default,
.historial-grid .x-toolbar.x-docked-top {
    background: #fafbfc !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.historial-grid .x-form-field,
.historial-grid .x-input-el {
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
}

/*********************************************
 * 📦 Barra inferior
 *********************************************/
.historial-bbar,
.x-toolbar-docked-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 8px 12px !important;
    background-color: #fafafa !important;
}

/*********************************************
 * ❌ Botón de cerrar
 *********************************************/
.btn-cerrar-window,
.x-button.btn-cerrar-window {
    background: linear-gradient(135deg, #4a90e2, #357abd) !important;
    color: #fff !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    transition: all 0.2s ease-in-out;
}
.btn-cerrar-window:hover {
    background: linear-gradient(135deg, #357abd, #2c5fa8) !important;
    transform: translateY(-1px);
}






/* === Estilos del Window === */
.revocacion-window {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* === Estilos de la Grid === */
.revocacion-grid .x-grid-cell {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #2c3e50;
  text-align: center;
  vertical-align: middle;
  padding: 10px;
}

.revocacion-grid .multiline-cell {
  white-space: normal !important;
  line-height: 1.4em;
  text-align: center;
}

/* === Columnas de acción === */
.revocacion-grid .x-action-col-cell .fa {
  font-size: 16px;
  margin: 0 6px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}

.revocacion-grid .x-action-col-cell .fa:hover {
  transform: scale(1.2);
}

.action-revoke { color: #e74c3c; }
.action-resend { color: #3498db; }

/* === Barra inferior === */
.revocacion-bbar {
  background: #f5f9ff;
  padding: 10px;
  border-top: 1px solid #dce6f7;
}

.btn-cerrar-window {
  background: #2980b9;
  color: #fff !important;
  font-weight: bold;
  border-radius: 8px;
  padding: 6px 14px;
  transition: background 0.3s ease;
}

.btn-cerrar-window:hover {
  background: #1f6391;
}



/* Panel principal */
.unidades-panel {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: transparent;
}

/* Botón Adicionar */
.btn-adicionar {
    background: linear-gradient(135deg, #0077b6, #0096c7) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-weight: bold;
    padding: 8px 22px;
    border: none !important;
    text-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-adicionar:hover {
    background: linear-gradient(135deg, #023e8a, #0077b6) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* Botón Cerrar */
.btn-cerrar {
    background: linear-gradient(135deg, #d90429, #9d0208) !important; /* rojo elegante */
    color: #ffffff !important;
    border-radius: 20px !important;
    font-weight: bold;
    font-size: 14px !important;
    padding: 8px 18px;
    border: none !important;
    text-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cerrar:hover {
    background: linear-gradient(135deg, #9d0208, #6a0000) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Ajuste de iconos de botones */
.btn-adicionar .fa,
.btn-cerrar .fa {
    font-size: 16px;
    margin-right: 6px;
}


/* Grid */
.grid-unidades {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Columnas de grid */
.grid-unidades .x-grid-header-ct .x-column-header {
    font-weight: 600;
}

/* Action icons */
.grid-unidades .x-action-col-icon {
    font-size: 16px;
    color: #0077b6;
    transition: transform 0.2s ease;
}

.grid-unidades .x-action-col-icon:hover {
    transform: scale(1.2);
    color: #023e8a;
}


/* Permitir que la columna Nombre sea multilinea */
.grid-unidades .grid-multiline {
    display: flex !important;
    align-items: center;               /* centra vertical */
    justify-content: center;           /* centra horizontal */
    white-space: normal !important;    /* permite multilinea */
    word-break: break-word;            /* rompe palabras largas */
    line-height: 1.3;
    text-align: center;
    padding: 4px 8px;

}

/* Panel principal */
.estandares-panel {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: transparent;
}

/* Botón Adicionar */
.btn-adicionar {
    background: linear-gradient(135deg, #0077b6, #0096c7) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-weight: bold;
    font-size: 14px !important;
    padding: 8px 22px;
    border: none !important;
    text-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-adicionar:hover {
    background: linear-gradient(135deg, #023e8a, #0077b6) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Botón Cerrar */
.btn-cerrar {
    background: linear-gradient(135deg, #d90429, #9d0208) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    font-weight: bold;
    font-size: 14px !important;
    padding: 8px 18px;
    border: none !important;
    text-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cerrar:hover {
    background: linear-gradient(135deg, #9d0208, #6a0000) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Ajuste iconos de botones */
.btn-adicionar .fa,
.btn-cerrar .fa {
    font-size: 16px;
    margin-right: 6px;
}

/* Grid */
.grid-estandares {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Columnas multilinea */
.grid-estandares .grid-multiline {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3;
    text-align: center;
    padding: 4px 8px;
}

/* Centrado en todas las celdas */
.grid-estandares .x-grid-cell-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Action icons */
.grid-estandares .x-action-col-icon {
    font-size: 16px;
    color: #0077b6;
    transition: transform 0.2s ease;
}
.grid-estandares .x-action-col-icon:hover {
    transform: scale(1.2);
    color: #023e8a;
}



/* === Contenedor general assertion === */
.card-widget-horizontal-assertion {
    max-width: 380px;
    height: 250px;
    background: linear-gradient(160deg, #0a1a2f, #153b66, #1e5289);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: all 0.3s ease;
    color: #e8f2ff;
}
.card-widget-horizontal-assertion:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.7);
}

.id-label-assertion {
    font-size: 14px;
    color: #e8f2ff;
    font-weight: 600;
    margin-top: 2px;
}

.card-title-assertion h2 {
    font-size: 18px;
    font-weight: 700;
    color: #e8f2ff;
    line-height: 1.2em;
    margin: 0;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* límite de 2 líneas */
    -webkit-box-orient: vertical;
}

.person-program-assertion span {
    font-size: 9px;
    font-weight: 500;
    color: #cce4ff;
    line-height: 1.2em;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* límite de 1 línea */
    -webkit-box-orient: vertical;
}

.person-name-assertion span {
    font-size: 13px;
    font-weight: 500;
    color: #cce4ff;
    line-height: 1.2em;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* límite de 1 línea */
    -webkit-box-orient: vertical;
}

.auto-resize-text {
    transition: font-size 0.2s ease;
}

.card-dates-assertion { font-size: 12px; color: #d6e8ff; }
.card-dates-assertion i { margin-right: 6px; color: #80c1ff; }

.card-main-image-assertion {
    border-radius: 12px;
    border: 2px solid rgba(180,200,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.strength-indicator-assertion i { font-size: 16px; color: #2c6ebf; margin: 0 2px; transition: all 0.2s; }
.strength-indicator-assertion i:hover { transform: scale(1.2); color: #3d82d1; }

.stars-indicator-assertion i { font-size: 16px; color: #ffc107; margin: 0 2px; transition: all 0.2s; }
.stars-indicator-assertion i:hover { transform: scale(1.2); color: #ffeb3b; }



.status-badge-assertion { padding: 6px 12px; border-radius: 20px; font-weight: 600; font-size: 13px; text-transform: uppercase; color: #fff; } 
.otorgado-assertion { background: #2e7d32; }
.vencido-assertion { background: #b71c1c; }
.revocado-assertion { background: #6a1b1b; }




.pdf-btn-assertion {
    background: linear-gradient(145deg, #1b2a49, #2e4c7a) !important;
    border-radius: 50% !important;
    width: 44px !important; height: 44px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: all 0.25s ease; border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.pdf-btn-assertion .x-btn-icon-el { color: #7abaff !important; font-size: 20px !important; }
.pdf-btn-assertion:hover {
    transform: scale(1.15);
    background: linear-gradient(145deg, #355c9a, #4a7fc5) !important;
    box-shadow: 0 0 14px rgba(74,127,197,0.6);
}

.validator-btn-assertion {
    background: linear-gradient(145deg, #1b2a49, #2e4c7a) !important;
    border-radius: 50% !important;
    width: 44px !important; height: 44px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: all 0.25s ease; border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.validator-btn-assertion .x-btn-icon-el { color: #7abaff !important; font-size: 20px !important; }
.validator-btn-assertion:hover {
    transform: scale(1.15);
    background: linear-gradient(145deg, #355c9a, #4a7fc5) !important;
    box-shadow: 0 0 14px rgba(74,127,197,0.6);
}

.share-btn-assertion {
    background: linear-gradient(145deg, #1b2a49, #2e4c7a) !important;
    border-radius: 50% !important;
    width: 44px !important; height: 44px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: all 0.25s ease; border: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.share-btn-assertion .x-btn-icon-el { color: #7abaff !important; font-size: 20px !important; }
.share-btn-assertion:hover {
    transform: scale(1.15);
    background: linear-gradient(145deg, #355c9a, #4a7fc5) !important;
    box-shadow: 0 0 14px rgba(74,127,197,0.6);
}





/* ===== Formulario premium ===== */
.emisorform-premium {
    background: #f9fbfd;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    padding: 20px;
}

/* Labels */
.emisorform-premium .x-form-item-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Inputs y textarea */
.emisorform-premium .x-form-text,
.emisorform-premium .x-form-textarea {
    border-radius: 8px;
    border: 1px solid #d0d7df;
    padding: 8px 12px;
    font-size: 14px;
    transition: border 0.3s, box-shadow 0.3s;
}

.emisorform-premium .x-form-text:focus,
.emisorform-premium .x-form-textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.2);
}

/* Filefield button */
.emisorform-btn-download {
    border-radius: 8px;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    background: #fff;
    padding: 6px 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.emisorform-btn-download:hover {
    background: #4a90e2;
    color: #fff;
}

/* Footer buttons */
.emisorform-footer {
    margin-top: 15px;
    border-top: 1px solid #d0d7df;
    background: #fff;
    padding: 10px 0;
}

.emisorform-btn-cancel {
    background: #f0f0f0;
    color: #555;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.emisorform-btn-cancel:hover {
    background: #e0e0e0;
}

.emisorform-btn-save {
    background: #4a90e2;
    color: #fff;
    border-radius: 8px;
    border: none;
}

.emisorform-btn-save:hover {
    background: #357abd;
}

/* ===== Checkbox toggle moderno ===== */
.emisorform-checkbox-modern {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #1a1a1a;
}

.emisorform-checkbox-modern .x-form-cb-label {
    margin-left: 10px;
    font-size: 14px;
}

.emisorform-checkbox-modern .x-form-cb-input {
    position: relative;
    width: 40px;
    height: 20px;
    -webkit-appearance: none;
    background: #e0e0e0;
    outline: none;
    border-radius: 12px;
    transition: background 0.3s;
    cursor: pointer;
}

.emisorform-checkbox-modern .x-form-cb-input:checked {
    background: #4a90e2;
}

.emisorform-checkbox-modern .x-form-cb-input::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.emisorform-checkbox-modern .x-form-cb-input:checked::before {
    transform: translateX(20px);
}



.standaresdeaprendizaje-form-premium {
    background: #f5f9ff;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    color: #1a2b4c;
}

.standaresdeaprendizaje-form-premium .x-form-item-label-top {
    font-weight: 600;
    color: #1b3a8a;
    margin-bottom: 4px;
}

.standaresdeaprendizaje-checkbox .x-form-cb-label {
    font-weight: 500;
    color: #1a2b4c;
    margin-left: 4px;
}

.standaresdeaprendizaje-textarea .x-form-text {
    border-radius: 6px;
    border: 1px solid #aac4f5;
    background-color: #ffffff;
    padding: 6px;
}

.standaresdeaprendizaje-combobox .x-form-text {
    border-radius: 6px;
    border: 1px solid #aac4f5;
    background-color: #ffffff;
    padding: 5px;
}

.standaresdeaprendizaje-btn-cerrar {
    background: #f87171;
    color: #fff;
    border-radius: 6px;
}

.standaresdeaprendizaje-btn-guardar {
    background: #3b82f6;
    color: #fff;
    border-radius: 6px;
}

.standaresdeaprendizaje-footer {
    background: #eef3fc;
    border-top: 1px solid #c3d2f2;
    padding: 10px 0;
}


/* 🌟 Contenedor principal estilo dashboard */
.assertions-grid-container-collection {
    background: linear-gradient(135deg, #f9fbff, #eef4fa);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 20px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* 🌟 Toolbar elegante arriba */
.assertions-grid-container-collection .x-toolbar {
    background: transparent !important;
    border: none !important;
    margin-bottom: 15px;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.assertions-grid-container-collection .x-toolbar .x-form-field {
    border-radius: 12px;
    border: 1px solid #d0e3f7;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border 0.25s, box-shadow 0.25s;
    padding: 6px 12px;
}

.assertions-grid-container-collection .x-toolbar .x-form-field:focus,
.assertions-grid-container-collection .x-toolbar .x-form-field.x-form-focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}

.cards-grid-responsive {
  display: grid !important;
  grid-auto-rows: auto;
  gap: 10px; /* igual que lo que me indicaste */
  justify-content: center; /* centra el grid cuando no ocupa todo */
  align-items: start;
  padding: 12px;
  box-sizing: border-box;
}




/* 🎨 PANEL PRINCIPAL */
.main-panel-bankInsignias .x-panel-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.main-panel-bankInsignias .x-panel-header-title-default {
    color: #1d4ed8 !important; /* Azul elegante */
    font-weight: 600;
    font-size: 14px;
}


/* 🎨 TOOLBAR CENTRAL (sin fondo) */
.main-panel-bankInsignias .x-toolbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 8px !important;
}

.main-panel-bankInsignias .x-toolbar .x-form-text-default {
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 4px 10px !important;
    font-size: 13px;
    color: #334155 !important;
    transition: border 0.2s ease-in-out;
}

.main-panel-bankInsignias .x-toolbar .x-form-text-default:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}


/* 🎨 BOTÓN "Nueva Insignia" CIRCULAR */
.main-panel-bankInsignias .x-toolbar .x-btn {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background: #2563eb !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    display: flex !important;           /* ⬅️ usamos flex */
    align-items: center !important;     /* ⬅️ centrado vertical */
    justify-content: center !important; /* ⬅️ centrado horizontal */
    transition: all 0.2s ease-in-out;
}

.main-panel-bankInsignias .x-toolbar .x-btn .x-btn-icon-el {
    font-size: 18px !important;
    color: #ffffff !important;
    margin: 0 !important;   /* quitamos offset lateral */
    line-height: 1 !important;
}


.main-panel-bankInsignias .x-toolbar .x-btn:hover {
    background: #1d4ed8 !important;
    transform: scale(1.05);
}


/* 🎨 GRID LATERAL (zona izquierda) */
.grid-dependencias-bankInsignias {
    background: #ffffff !important;
    border-right: 1px solid #e5e7eb !important;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
    padding: 0 !important; /* 🚫 sin bodyPadding */
}

.grid-dependencias-bankInsignias .x-grid-header-ct {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.grid-dependencias-bankInsignias .x-column-header {
    font-weight: 600;
    font-size: 13px;
    color: #1d4ed8 !important; /* Azul elegante */
}

.grid-dependencias-bankInsignias .x-grid-item {
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px;
}

.grid-dependencias-bankInsignias .x-grid-item:hover {
    background: #f1f5f9 !important;
    cursor: pointer;
}


.restricted-panel {
    background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.restricted-icon {
    font-size: 60px;
    color: #ff4d4f;
    margin-bottom: 20px;
}

.restricted-title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.restricted-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.5em;
}


/* Para los encabezados de grupo */
.group-header-wrap {
    white-space: normal !important;   /* Permite salto de línea */
    line-height: 1.4em;
    word-break: break-word;           /* Corta palabras largas si no caben */
    padding: 4px 6px;
}

/* Para las celdas del grid */
.x-grid-cell-inner {
    white-space: normal !important;
    line-height: 1.4em;
    word-break: break-word;
}


.medal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.medal-svg {
  width: 64px;
  height: 64px;
  transform-origin: center;
  animation: medalShine 2s infinite ease-in-out,
             medalFlip 3s ease-in-out 2;
  cursor: pointer;
  backface-visibility: hidden;
  perspective: 1000px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover */
.medal-svg:hover {
  transform: scale(1.2) rotateY(360deg);
  filter: drop-shadow(0 0 10px #ffd600);
}

/* Pulso brillante */
@keyframes medalShine {
  0%, 100% {
    filter: drop-shadow(0 0 4px #fff176);
  }
  50% {
    filter: drop-shadow(0 0 10px #ffeb3b);
  }
}

/* Giro 3D */
@keyframes medalFlip {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(720deg); }
}


/* ==========================================
   ESTILOS PARA ESTADO ESTUDIANTE Y SU GRID
   ========================================== */

/* ====== ESTILO DE LA VENTANA ====== */
.windowestadoestudiante-panel {
    background: #f8faff;
    border-radius: 18px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Encabezado de la ventana */
.windowestadoestudiante-panel .x-window-header {
    background: linear-gradient(90deg, #4f6ef7, #7b9dfc);
    border-radius: 18px 18px 0 0;
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
}

.windowestadoestudiante-panel .x-window-header-title-default > .x-title-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #fff;
}

.windowestadoestudiante-panel .x-tool {
    color: #fff;
}

/* ====== PANEL INTERIOR ====== */
.estadoestudianteaplicar-panel {
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ====== GRID INTERNO ====== */
.gridestadosestudiante-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Encabezado del grid */
.gridestadosestudiante-panel .x-column-header {
    background: linear-gradient(180deg, #5a78f0, #3d56d8);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.4px;
}

.gridestadosestudiante-panel .x-column-header-over {
    background: linear-gradient(180deg, #7089ff, #5466e0);
}

/* Filas */
.gridestadosestudiante-panel .x-grid-item:nth-child(odd) .x-grid-cell {
    background-color: #f9faff;
}

.gridestadosestudiante-panel .x-grid-item:nth-child(even) .x-grid-cell {
    background-color: #ffffff;
}

/* Hover fila */
.gridestadosestudiante-panel .x-grid-item-over .x-grid-cell {
    background-color: #eef2ff;
}

/* Selección */
.gridestadosestudiante-panel .x-grid-item-selected .x-grid-cell {
    background-color: #dbe4ff !important;
    color: #1e3a8a;
}

/* Texto celdas */
.gridestadosestudiante-panel .x-grid-cell-inner {
    font-size: 14px;
    color: #333;
    padding: 6px 10px;
}

/* Checkboxes */
.gridestadosestudiante-panel .x-grid-cell-inner-checkcolumn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gridestadosestudiante-panel .x-grid-checkcolumn .x-grid-checkcolumn-checked {
    background-color: #4f6ef7 !important;
    border-color: #4f6ef7 !important;
    border-radius: 6px;
}

/* Número consecutivo */
.gridestadosestudiante-panel .x-rownumberer-cell .x-grid-cell-inner {
    font-weight: 600;
    color: #111827;
    text-align: center;
}

/* Sin registros */
.gridestadosestudiante-panel .x-grid-empty {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 16px;
}

.estadoestudianteaplicar-toolbar {
    background-color: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 10px 16px;
    border-radius: 0 0 14px 14px;
}

/* Botón Guardar */
.btn-guardar-estado {
    background: linear-gradient(90deg, #4f6ef7, #6a8bff);
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 16px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-guardar-estado:hover {
    background: linear-gradient(90deg, #5c7cff, #7c9aff);
    transform: translateY(-1px);
}

/* Botón Cancelar */
.btn-cancelar-estado {
    background: #ffffff;
    color: #374151 !important;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 16px;
    margin-left: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-cancelar-estado:hover {
    background: #f9fafb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ajuste de celdas multilínea */
.gridestadosestudiante-panel .x-grid-cell-inner {
    white-space: normal !important; /* 🔹 Permite salto de línea */
    line-height: 1.4em;
    padding-top: 6px;
    padding-bottom: 6px;
}


/* 🌐 Fondo general con glass effect */
.panel-criterio-modern {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-in-out;
}

/* ✨ Ventanas */
.window-criterio-modern,
.window-editar-modern {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 255, 0.8));
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 🧠 Grid moderno */
.grid-criterio-modern .x-grid-item {
    font-size: 14px;
    transition: background-color 0.2s;
}

.grid-criterio-modern .x-grid-item:hover {
    background-color: rgba(0, 140, 255, 0.07);
}

/* ✏️ Acciones */
.action-edit {
    color: #2196F3;
    transition: transform 0.2s, color 0.2s;
}
.action-edit:hover {
    transform: scale(1.2);
    color: #0b7dda;
}

.action-delete {
    color: #f44336;
    transition: transform 0.2s, color 0.2s;
}
.action-delete:hover {
    transform: scale(1.2);
    color: #b71c1c;
}

/* 🎛️ Botones Modernos */
.btn-modern {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    border: none;
    transition: all 0.25s ease-in-out;
    padding: 6px 14px !important;
    color: #fff !important;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Colores personalizados */
.btn-green {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.btn-red {
    background: linear-gradient(135deg, #f44336, #b71c1c);
}
.btn-blue {
    background: linear-gradient(135deg, #2196F3, #0d47a1);
}
.btn-gray {
    background: linear-gradient(135deg, #9E9E9E, #616161);
}

/* 🌀 Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}



.copiado-anim {
    animation: flash-green 0.6s ease-in-out;
}

@keyframes flash-green {
    0% { background-color: transparent; }
    25% { background-color: #4ade80; } /* verde claro */
    50% { background-color: #22c55e; } /* verde intenso */
    75% { background-color: #4ade80; }
    100% { background-color: transparent; }
}



.single-assertion-card-container {
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    border-radius: 20px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6),
                0 4px 20px rgba(0,0,0,0.08);
}

.single-assertion-card-container > .x-scroll-scroller {
    display: flex !important;
    justify-content: center;
}


.shadow-panel {
    transition: all 0.3s ease;
}

.shadow-panel:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.single-assertion-card-container > .x-scroll-scroller {
    display: flex !important;
    justify-content: center;
}

.fade-in-card {
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
