/* Estilos generales */
body {
    padding-top: 0px;
    background-color: #f8f9fa;
}

.card {

    border: none;
    border-radius: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 50px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
}

/* Card colors */
.bg-primary {
    background-color: #4361ee !important;
}

.bg-success {
    background-color: #4cc9f0 !important;
}

.bg-warning {
    background-color: #f8961e !important;
}

/* Estilos adicionales para la página de asignación */
.avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Estilos para el modal de asignación */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-footer {
    border-top: 1px solid #eee;
}

/* Checkbox personalizado */
.form-check-input:checked {
    background-color: #4361ee;
    border-color: #4361ee;
}

/* Efecto para filas seleccionadas */
.table tbody tr.selected {
    background-color: rgba(67, 97, 238, 0.05);
}

/* Estilos para la página de estatus */
.card.border-start {
    transition: all 0.3s ease;
}

.card.border-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Colores para estados */
.badge.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.badge.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Progress bars */
.progress {
    border-radius: 3px;
}

.progress-bar {
    border-radius: 3px;
}

/* Avatar en tablas */
.avatar span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Dropdown actions */
.dropdown-menu {
    min-width: 180px;
}

.dropdown-item {
    padding: 0.375rem 1rem;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    margin-right: 8px;
}

/* Estilos específicos para reclutador */
.navbar-recruiter {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    padding: 0.2rem 0.35rem;
}

.cursor-pointer {
    cursor: pointer;
    transition: background-color 0.2s;
}

.cursor-pointer:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Cards con borde lateral */
.card-border-left {
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}

.card-border-left:hover {
    transform: translateY(-3px);
}

/* Modal de notificaciones */
.list-group-item-action:focus, 
.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Responsive para acciones rápidas */
@media (max-width: 576px) {
    .flex-wrap {
        justify-content: center;
    }
    
    .flex-wrap .btn {
        flex: 1 0 45%;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Estilos para el detalle del candidato */
.avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    font-weight: 500;
}

/* Proceso de reclutamiento */
.recruitment-process {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-bottom: 20px;
}

.recruitment-process::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e9ecef;
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.process-step .step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 1.25rem;
}

.process-step.completed .step-icon {
    background-color: #4cc9f0;
    color: white;
}

.process-step.active .step-icon {
    background-color: #4361ee;
    color: white;
    transform: scale(1.1);
}

.process-step .step-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.process-step.completed .step-label,
.process-step.active .step-label {
    color: #212529;
}

.process-step .step-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.process-step.completed::before,
.process-step.active::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4cc9f0;
    z-index: -1;
}

.process-step.active::before {
    background-color: #4361ee;
}

/* Tabs personalizadas */
.nav-tabs .nav-link {
    border: none;
    padding: 0.75rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #4361ee;
    background-color: transparent;
    border-bottom: 3px solid #4361ee;
}

/* Responsivo */
@media (max-width: 768px) {
    .recruitment-process {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recruitment-process::before {
        display: none;
    }
    
    .process-step {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        text-align: left;
        width: 100%;
    }
    
    .process-step .step-icon {
        margin: 0 1rem 0 0;
        flex-shrink: 0;
    }
    
    .process-step::before {
        display: none;
    }
}

/* Estilos para el formulario de aplicación */
#applicationForm .form-control, 
#applicationForm .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

#applicationForm .was-validated .form-control:invalid,
#applicationForm .was-validated .form-select:invalid,
#applicationForm .was-validated .form-check-input:invalid {
    border-color: #dc3545;
}

#applicationForm .was-validated .form-control:valid,
#applicationForm .was-validated .form-select:valid,
#applicationForm .was-validated .form-check-input:valid {
    border-color: #28a745;
}

#applicationForm .invalid-feedback {
    font-size: 0.8rem;
}

.skills-container {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-check-inline {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Estilo para select deshabilitado */
select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Estilo para el placeholder del teléfono */
input::placeholder {
    color: #6c757d;
    opacity: 0.6;
}

/* Responsivo */
@media (max-width: 768px) {
    #applicationForm .col-md-4,
    #applicationForm .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .form-check-inline {
        display: block;
        margin-right: 0;
    }
}

/* Estilos para el logo de la empresa */
.company-logo {
    height: auto; /* Mantiene la proporción */
    max-height: 800px; /* Altura máxima */
    width: auto; /* Ancho automático según proporción */
    max-width: 550px; /* Ancho máximo */
    object-fit: contain; /* Asegura que la imagen no se distorsione */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* Sombra sutil */
    transition: all 0.3s ease; /* Transición suave para efectos hover */
    margin-top: none;
    margin-bottom: 1.5rem !important; /* Espaciado inferior */
}

/* Efecto hover para el logo */
.company-logo:hover {
    transform: scale(1.05); /* Ligero aumento al pasar el mouse */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)); /* Sombra más pronunciada */
}

/* Versión responsive para móviles */
@media (max-width: 468px) {
    .company-logo {
        max-height: 160px;
        max-width: 400px;
    }
}

/* Estilos para la página de éxito */
.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Animación para el ícono de éxito */
@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon i {
    animation: checkmark 0.6s ease-in-out;
}

/* Estilos para el resumen de aplicación */
#applicationSummary p {
    margin-bottom: 0.5rem;
}

/* Mejoras para validación de formulario */
.was-validated .form-control:invalid,
.was-validated .form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.was-validated .form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


/* Campos dinámicos */
.education-item, .experience-item {
    position: relative;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.education-item:hover, .experience-item:hover {
    background-color: #e9ecef;
}

.remove-education, .remove-experience {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.remove-education:hover, .remove-experience:hover {
    opacity: 1;
}

/* Mejoras para selects */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Mejoras para file input */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

.form-control[type="file"]::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    margin-right: 0.75rem;
    background-color: #e9ecef;
    border: 0;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: #dee2e6;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #4498f3;
}

.btn-secondary {
    background-color: #db3737;
    color: white;
    margin-top: 1%;
}

.btn-secondary:hover {
    background-color: #5a6268;
}