/* Estilos principales del plugin Aspirantes */
.aspirantes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Header con búsquedas */
.aspirantes-header {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-section {
    display: flex;
    gap: 40px;
    justify-content: space-around;
}

.search-ficha, .search-salon {
    flex: 1;
    text-align: center;
}

.search-ficha h3, .search-salon h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.search-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.nav-button {
    background: #007cba;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background: #005a87;
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#ficha-input {
    width: 120px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
}

#ficha-input:focus {
    border-color: #007cba;
    outline: none;
}

#salon-select {
    width: 150px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

#salon-select:focus {
    border-color: #007cba;
    outline: none;
}

/* Área de datos del estudiante */
.student-data {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    min-height: 400px;
}

.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #666;
    font-size: 18px;
}

.data-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.data-row:nth-child(even) {
    background-color: #f9f9f9;
}

.data-row:nth-child(odd) {
    background-color: #ffffff;
}

/* Efecto visual para filas copiadas */
.data-row.copied:nth-child(even) {
    background-color: #e8f4f8 !important;
}

.data-row.copied:nth-child(odd) {
    background-color: #f0f8ff !important;
}

/* Fila del grupo con color distintivo */
.grupo-row {
    background-color: #e1f5fe !important;
    font-weight: bold;
}

.grupo-row.copied {
    background-color: #b3e5fc !important;
}

.field-label {
    flex: 0 0 200px;
    font-weight: bold;
    color: #333;
}

.field-value {
    flex: 1;
    padding: 0 15px;
    color: #555;
}

.copy-icon {
    flex: 0 0 30px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    transition: transform 0.2s;
    user-select: none;
}

.copy-icon:hover {
    transform: scale(1.2);
}

.copy-icon.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.copy-icon.disabled:hover {
    transform: none;
}

/* Botón capturado */
.capture-section {
    text-align: center;
    margin-bottom: 30px;
}

.btn-capturado {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-capturado:hover:not(:disabled) {
    background: #218838;
}

.btn-capturado:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Grid de progreso */
.progress-section {
    margin-top: 40px;
}

.progress-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.grid-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.color-box.cargado {
    background-color: #28a745;
}

.color-box.sin-cargar {
    background-color: #dc3545;
}

.color-box.vacio {
    background-color: #f8f9fa;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    gap: 2px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.grid-cell {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.grid-cell:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

.grid-cell.cargado {
    background-color: #28a745;
    color: white;
}

.grid-cell.sin-cargar {
    background-color: #dc3545;
    color: white;
}

.grid-cell.vacio {
    background-color: #f8f9fa;
    color: #666;
}

/* Modal de confirmación */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}

.confirmation-data {
    margin-bottom: 30px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.data-item:last-child {
    border-bottom: none;
}

.data-item strong {
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-modal {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-no {
    background: #6c757d;
    color: white;
}

.btn-no:hover {
    background: #545b62;
}

.btn-si {
    background: #28a745;
    color: white;
}

.btn-si:hover {
    background: #218838;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsividad */
@media (max-width: 768px) {
    .search-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .field-label {
        flex: 0 0 120px;
        font-size: 14px;
    }
    
    .field-value {
        font-size: 14px;
    }
    
    .progress-grid {
        grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
    }
    
    .grid-cell {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }
}

/* Efectos de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}