/**
 * Estilos para el Plugin de Verificador de Melate
 */

/* Contenedor principal */
.melate-container {
    max-width: 100%;
    margin-bottom: 0px !important;
    border-radius: 8px;
}

/* Estilos de formularios */
.melate-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Estilos para el botón "Ver más" */
.ver-mas-container {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.ver-mas-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ver-mas-btn:hover {
    background-color: #e9ecef;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ver-mas-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-left: 5px;
}

/* Animación para el icono */
.ver-mas-btn:hover .dashicons {
    transform: translateY(2px);
}

/* Para los elementos que se añaden dinámicamente */
.numero-chart-item {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Sombra suave al pasar el ratón sobre los ítems */
.numero-chart-item:hover {
    background-color: rgba(0,0,0,0.02);
    border-radius: 4px;
}

/* Destacar las barras al pasar el ratón */
.numero-chart-item:hover .numero-barra {
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Animación para las barras */
.numero-barra {
    transition: width 0.5s ease, box-shadow 0.3s ease;
}

.number-inputs {
    display: flex;
    gap: 10px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Botones */
.button {
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-primary {
	width:100% !important;
    background-color: #60a5fa !important;
    color: #ffffff !important;
}



/* Mensajes de alerta */
.melate-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.melate-message.success {
    background-color: #dff0d8;
    text-align: center;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.melate-message.error {
    background-color: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.melate-message.error strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.error-suggestion {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.error-suggestion p {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.error-suggestion ul {
    margin-left: 20px;
    color: #555;
}

.error-suggestion li {
    margin-bottom: 3px;
}

/* Animación suave para mensajes */
.melate-message {
    transition: all 0.3s ease;
    animation: fadeInMessage 0.4s ease-out;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Estilo para resaltar mensaje duplicado */
.duplicate-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 5px;
    position: relative;
    padding-left: 50px;
}

.duplicate-warning:before {
    content: "⚠️";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* Resultado de verificación - Estilo original */
.melate-resultado {
    margin-top: 30px;
    padding: 20px;
    border-radius: 4px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.resultado-verificacion {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.resultado-juego {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.melate-result {
    border-left: 4px solid #004cab;
}

.melate-result h3 {
    color: #004cab;
}

.revancha-result {
    border-left: 4px solid #f39c12;
}

.revancha-result h3 {
    color: #f39c12;
}

.revanchita-result {
    border-left: 4px solid #e74c3c;
}

.revanchita-result h3 {
    color: #e74c3c;
}

.resultado-ganador {
    padding: 15px;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    color: #3c763d;
}

.resultado-no-ganador {
    padding: 15px;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    border-radius: 4px;
    color: #a94442;
}

.premio {
    margin-top: 15px;
    padding: 15px;
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
    color: #8a6d3b;
    text-align: center;
}

.premio h4 {
    font-size: 20px;
    margin-top: 0;
    color: #3c763d;
}

/* Estilos para perfil y historial */
.melate-perfil-header,
.melate-historial-header {
    margin: 0px 20px;
    padding: 15px;
    background: linear-gradient(135deg, #004cab, #0067d3);
    border-radius: 12px;
    color: #ffffff;
}

.melate-perfil-header h3,
.melate-historial-header h3 {
    color: #ffffff;
    font-size: 28px !important;
    margin-top: 0;
    margin-bottom: 5px;
    word-break: break-all;
    overflow-wrap: break-word;
}

.melate-perfil-header p,
.melate-historial-header p {
    margin: 0;
    opacity: 0.9;
}

.melate-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.melate-stats,
.melate-registro-numeros,
.melate-historial {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.melate-stats h3,
.melate-registro-numeros h3,
.melate-historial h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.melate-back-link {
    margin-top: 20px;
}

/* Estilos específicos para el historial de usuario */
.melate-historial-page {
    font-family: 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 100%;
    margin: 30px auto;
}

.melate-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.melate-header-card {
    background: linear-gradient(135deg, #004cab, #0067d3);
    color: white;
}

.melate-title {
    margin-top: 0;
    margin-bottom: 0px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 35px;
}

.melate-user-details h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 20px;
    color: white;
}

.melate-user-details p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.melate-historial-container {
    min-height: auto;
}

.historial-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.melate-spinner {
    border: 4px solid rgba(0, 75, 171, 0.1);
    border-left-color: #004cab;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.melate-actions {
    display: none;
    justify-content: space-between;
    margin-top: 20px;
}

.melate-button {
	justify-content: center;
    width: 100%;
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

.melate-button-icon {
    margin-right: 8px;
    font-weight: bold;
}

.melate-button-primary {
    background-color: #004cab;
    color: white !important;
}

.melate-button-primary:hover {
    background-color: #0056c4;
    box-shadow: 0 4px 10px rgba(0, 76, 171, 0.25);
}

.melate-button-secondary {
   background-color: #004cab;
    color: white !important;
}

.melate-button-secondary:hover {
    background-color: #0056c4;
    box-shadow: 0 4px 10px rgba(0, 76, 171, 0.25);
}
/* Contenedor con scroll */
.tabla-container {
    width: 100%;
    overflow-x: auto;
}

/* Estilos para la tabla de historial */
.melate-historial-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 0px !important;
    font-size: 18px;
    white-space: nowrap;
    display: inline-table;
    overflow-x: auto;
}

.melate-historial-table th {
    background-color: #f5f7fa;
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}

.melate-historial-table td {
    padding: 12px;
    font-size: 16px !important;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.melate-historial-table tbody tr:hover {
    background-color: #f8fafc;
}

.melate-historial-table .pendiente {
    background-color: #fffbeb;
    color: #92400e;
    text-align: center;
    font-style: italic;
}

.numero-melate {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #eef2ff;
    color: #004cab;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    margin-right: 3px;
    font-weight: 600;
}

.complementario {
    background-color: #ffedd5;
    color: #c2410c;
}

.melate-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.melate-badge-success {
    background-color: #dcfce7;
    color: #15803d;
}

.melate-badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Estilos para errores y mensajes especiales */
.error {
    color: #a94442;
    background-color: #f2dede;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.historial-vacio,
.historial-error {
    text-align: center;
    padding: 30px 0;
}

.historial-vacio h3,
.historial-error h3 {
    color: #555;
    margin-bottom: 15px;
}

.reload-historial {
    margin-top: 15px;
}

.stat-loading {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.melate-date-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.description {
    color: #ffffff;
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

/* Eliminación de flechas en campos numéricos */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none !important; 
    margin: 0 !important; 
    opacity: 0 !important;
    pointer-events: none !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Para Firefox y otros navegadores */
@-moz-document url-prefix() {
    .number-inputs input[type="number"] {
        -moz-appearance: textfield !important;
    }
}

/* Estilos mejorados para estadísticas */
.melate-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    position: relative;
    padding: 10px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 4px 4px 6px 7px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.stat-box-primary {
    border-color: #004cab;
}

.stat-box-success {
    border-color: #10b981;
}

.stat-box-warning {
    border-color: #f59e0b;
}

.stat-icon {
    margin-right: 15px;
    min-width: 40px;
    height: 40px;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-box-primary .stat-icon {
    background: rgba(0, 76, 171, 0.1);
    color: #004cab;
}

.stat-box-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-box-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.stat-content {
    flex: 1;
}

.stat-box h4 {
    margin-bottom: 0px !important;
    font-size: 18px !important;
    color: #555;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.stat-box-primary .stat-value {
    color: #004cab;
}

.stat-box-success .stat-value {
    color: #10b981;
}

.stat-box-warning .stat-value {
    color: #f59e0b;
}
/* Secciones de números */
.melate-numeros-dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.numeros-seccion {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 3px 1px 4px 4px rgba(0,0,0,0.03);
    border-left: 4px solid #004cab;
}

.numeros-seccion-global {
    border-left-color: #10b981;
}

.numeros-seccion-acertados {
    border-left-color: #3498db;
}

.numeros-header {
    margin-bottom: 15px;
}

.numeros-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.numeros-descripcion {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.numeros-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.numero-chart-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.numero-valor {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    min-width: 36px;
}

.numero-complementario {
    background: #c2410c;
}

.barra-complementario {
	 background: #c2410c !important;
}

.numero-jugado {
    background: #004cab;
}

.numero-global {
    background: #10b981;
}

.numero-acertado {
    background: #3498db;
}

.numero-barra-container {
    flex: 1;
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.numero-barra {
    height: 100%;
    background: #004cab;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.barra-global {
    background: #10b981;
}

.barra-acertado {
    background: #3498db;
}

.numero-etiqueta {
    width: 70px;
    text-align: right;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* Media queries responsivas */
@media (min-width: 768px) {
    .melate-dashboard {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 1543px) {
    .melate-historial-table {
        width: 100%;
        min-width: 800px; /* Ancho mínimo para evitar que se comprima demasiado */
    }
}

@media screen and (max-width: 768px) {
    .melate-title {
        font-size: 22px;
    }
    
    .melate-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .melate-button {
        width: 100%;
        justify-content: center;
    }
    
    .melate-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .numeros-seccion {
        padding: 15px;
    }
}

/* Para móviles muy pequeños */
@media screen and (max-width: 480px) {
    .melate-modal-content {
        width: 95%;
        padding: 15px;
        max-height: 85vh;
    }
    
    .melate-title {
        font-size: 24px;
        text-align: center;
    }
    
    .melate-user-details h3 {
        font-size: 18px;
    }
    
    .numero-valor {
        width: 30px;
        height: 30px;
        font-size: 14px;
        min-width: 30px;
    }
    
    .numero-etiqueta {
        width: 60px;
        font-size: 12px;
    }
}

/* Layout mejorado para perfil */
.melate-perfil-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .melate-perfil-main {
        grid-template-columns: 3fr 2fr;
    }
}

.melate-stats-container {
    padding: 10px;
}

.melate-stats-column, 
.melate-actions-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.melate-action-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.melate-action-card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.melate-action-card p {
    padding-bottom: 15px;
    color: #555;
}

.sorteo-fecha {
    font-size: 18px;
    font-weight: bold;
    color: #004cab;
    margin-bottom: 15px;
    text-align: center;
}

.sorteo-contador {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
}

.countdown-value {
    font-size: 22px;
    font-weight: bold;
    color: #004cab;
}

.countdown-label {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.sorteo-registrar {
    text-align: center;
    margin-top: 15px;
}

.melate-tips-list {
    padding-left: 20px;
    margin-top: 10px;
}

.melate-tips-list li {
    margin-bottom: 10px;
    color: #555;
    position: relative;
}

.melate-button i {
    margin-right: 5px;
}
/* Estilos para el generador de números */
.generador-opciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.generador-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.numeros-generados-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.numeros-generados-titulo {
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.numeros-generados-lista {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.numero-generado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #004cab;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

.numero-generado-super {
    background-color: #c2410c;
}

.numeros-generados-acciones {
    margin-top: 15px;
}

/* NUEVOS ESTILOS PARA EL MODAL EXACTO AL MAILING - AISLADOS */
/* Estos estilos están completamente aislados y no afectan a nada más */
.melate-modal-exacto {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.melate-modal-content-exacto {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #eee;
    width: 100%;
    max-width: 330px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
    position: relative;
}

.melate-modal-close-exacto {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

/* Estilos para replicar exactamente el diseño del mailing */
.mailing-resultado {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

.mailing-fecha {
    font-size: 20px;
    text-align: center;
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    color: #004cab;
    font-weight: bold;
}

.mailing-tus-numeros {
    text-align: center;
    background-color: #f5f5f5;
    padding: 15px;
    position: relative;
}

.mailing-numeros-container {
    margin-top: 5px;
    text-align: center;
}

/* Círculos para números - igual que en el mailing */
.mailing-numero {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #e6f2ff;
    color: #004cab;
    border-radius: 50%;
    font-weight: bold;
    margin: 0 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mailing-numero.acertado {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #155724;
}

.mailing-complementario {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #ffedd5;
    color: #c2410c;
    border-radius: 50%;
    font-weight: bold;
    margin: 0 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mailing-complementario.acertado {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #155724;
}

.mailing-seccion-melate {
    text-align: center;
    background-color: #f1f8ff;
    padding: 25px;
    border-left: 4px solid #004cab;
}

.mailing-seccion-melate h3 {
    color: #004cab;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.mailing-seccion-revancha {
    text-align: center;
    background-color: #fffbea;
    padding: 25px;
    border-left: 4px solid #f39c12;
}

.mailing-seccion-revancha h3 {
    color: #f39c12;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.mailing-seccion-revanchita {
    text-align: center;
    background-color: #fef2f2;
    padding: 25px;
    border-left: 4px solid #e74c3c;
}

.mailing-seccion-revanchita h3 {
    color: #e74c3c;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.mailing-separador {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 10px 0;
}

.mailing-numeros-ganadores {
    text-align: center;
    margin: 20px 0;
}

.mailing-aciertos-info {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.mailing-aciertos-label {
    font-weight: bold;
}

.mailing-aciertos-valor {
    text-align: right;
}

.mailing-aciertos-valor.positivo {
    color: #28a745;
    font-weight: bold;
}

.mailing-aciertos-valor.negativo {
    color: #666;
}

.mailing-resultado-mensaje {
    color: red;
    letter-spacing: normal;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
}

.mailing-mensaje-final {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.melate-stats-column h3 {
    margin-left: 20px;
}

@media screen and (max-width: 767px) {
    .melate-perfil-header,
    .melate-historial-header {
        margin: 0px; /* padding para móviles */
    }
    
    .melate-stats-container {
        padding: 0px; /* padding para móviles */
    }
    
    .melate-stats-column h3 {
        font-size: 30px; 
    }
    
    .melate-card {
        padding: 0px; 
    }
}

/* Contenedor con indicador de scroll horizontal */
.scroll-indicator-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Tabla con scroll horizontal */
.scroll-indicator-content {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Para mejor desplazamiento en iOS */
}

/* Indicador visual de desplazamiento */
.scroll-indicator {
    display: none; /* Oculto por defecto en escritorio */
    position: inherit;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, 
        rgba(0,76,171,0.7) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(0,76,171,0.7) 100%);
    pointer-events: none; /* Para que no interfiera con el contenido */
    z-index: 10;
    opacity: 0.8;
    animation: scroll-hint 2s ease-in-out infinite;
}

/* Texto indicador */
.scroll-text {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    background-color: #ff6b3d;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Animación del indicador */
@keyframes scroll-hint {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Mostrar solo en dispositivos móviles */
@media screen and (max-width: 768px) {
    .scroll-indicator {
        display: block;
    }
    
    /* Asegurar que las tablas siempre muestren scroll en móvil */
    .melate-historial-table {
        min-width: 800px !important; /* Ancho mínimo para forzar scroll */
    }
}

.number-inputs input {
    aspect-ratio: 1 / 1;
    border-radius: 100% !important;
    max-width: 60px;
    padding: 5px !important;
    text-align: center !important;
}

#melate-complementario {
    height: 60px;
    border-radius: 100%;
    width: 60px;
    padding: 10px;
    text-align: center;
}

.numero-chart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    animation: fadeIn 0.5s ease;
}

/* Estilos base para PC - el correo estará en la misma línea que "Bienvenido," */
.melate-perfil-header h3 {
    margin: 0;
    font-size: 24px;
    color: white;
    font-weight: 600;
}

/* Para dispositivos móviles - forzar que el correo se muestre en línea separada */
@media screen and (max-width: 767px) {
    /* Añadir esta clase al elemento span que contiene el correo */
    .user-email-mobile {
        display: block;
        font-size: 16px;
        line-height: 1.3;
        margin-top: 5px;
        word-break: break-all;
    }
}

.volver {
    color: #ffffff !important;
}