/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Estilos para el contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para las tarjetas */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
    background-color: #007bff;
    color: white;
    border-bottom: 1px solid #007bff;
}

.card-body {
    padding: 30px;
}

/* Estilos para los formularios */
.form-section {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.form-control, .form-select {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
}

/* ==================== */
/* SECCIÓN DE IDIOMAS */
/* ==================== */

.idiomas-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.idioma-row {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.idioma-row:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.idioma-row .form-group {
    margin-bottom: 0;
}

/* Contenedor del slider mejorado */
.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin: 0;
    width: 100%;
}

.slider-container .slider-rating {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 10px;
    background: #dee2e6;
    outline: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-container .slider-rating::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.slider-container .slider-rating::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-container .slider-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    text-align: center;
    font-weight: bold;
    color: white;
    background-color: #007bff;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botones de eliminar */
.remove-idioma {
    white-space: nowrap;
    padding: 8px 12px !important;
    align-self: center;
}

/* ==================== */
/* SECCIÓN DE SOFTWARE */
/* ==================== */

.software-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.software-row {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.software-row:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.software-row .form-group {
    margin-bottom: 0;
}

/* Slider para software con color diferente */
.software-row .slider-rating::-webkit-slider-thumb {
    background: #28a745;
}

.software-row .slider-rating::-moz-range-thumb {
    background: #28a745;
}

.software-row .slider-value {
    background-color: #28a745;
}

/* Botones de eliminar */
.remove-software {
    white-space: nowrap;
    padding: 8px 12px !important;
    align-self: center;
}

/* ======================= */
/* ESTILOS ADICIONALES */
/* ======================= */

/* Estilos para la tabla de candidatos */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 5px !important;
}

table.dataTable thead th {
    background-color: #e9ecef;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

table.dataTable tbody td {
    border-bottom: 1px solid #e9ecef;
}

/* Estilos para los tooltips */
.tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: 5px;
    background-color: #343a40;
}

/* Estilos para la barra de navegación */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para los campos condicionales */
.conditional-field {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para el footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para los badges de estatus */
.badge {
    padding: 6px 10px;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 4px;
}

.badge-primary {
    background-color: #0d6efd;
}

.badge-success {
    background-color: #198754;
}

.badge-info {
    background-color: #0dcaf0;
}

.badge-danger {
    background-color: #dc3545;
}

/* Estilos para input con iconos */
.input-group-text {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-right: none;
    padding: 0.5rem 0.75rem;
    border-radius: 5px 0 0 5px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 5px 5px 0;
}

.input-group .form-control:focus {
    border-left: 1px solid #80bdff;
}

.input-group {
    margin-bottom: 1rem;
}

/* Estilos para el rating de estrellas */
.star-rating {
    font-size: 24px;
    display: inline-block;
}

.star-rating .fa-star {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating .fa-star.checked,
.star-rating .fa-star:hover {
    color: #ffc107;
}

.star-rating .fa-star:hover ~ .fa-star {
    color: #ddd;
}

/* Estilos para secciones dinámicas */
.dynamic-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.remove-btn {
    margin-top: 10px;
}

/* Botones de añadir */
.add-btn {
    margin-top: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
}

/* ======================= */
/* MEDIA QUERIES RESPONSIVE */
/* ======================= */

@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .navbar-brand img {
        height: 25px;
    }
    
    /* Ajustes para idiomas y software en móvil */
    .idioma-row, .software-row {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .slider-rating {
        width: 100%;
    }
    
    .slider-value {
        align-self: center;
    }
    
    .remove-idioma, .remove-software {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Slider general */
    .slider-container .slider {
        height: 6px;
    }
    
    .slider-container .slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
}

/* Estilos para la vista de impresión (PDF) */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    .card {
        box-shadow: none;
        border: none;
    }
    
    .slider-value {
        color: black;
        background: none;
        box-shadow: none;
    }
    
    .idioma-row, .software-row {
        page-break-inside: avoid;
    }
}

/* styles.css - Agregar estas reglas */
/* Estilos minimalistas para checkboxes */
/* Estilos para grupos de checkboxes */
#deportes_checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 20px;
    padding: 10px 0;
}

#deportes_checkboxes .form-check {
    margin: 0;
    padding: 3px 0;
}

#deportes_checkboxes .form-check-input {
    margin-right: 8px;
}

#deporte_otro_group {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    #deportes_checkboxes {
        grid-template-columns: 1fr;
    }
}


