/* Estilos para el modal de empleado */

.modal-avatar {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    font-size: inherit;
}

/* Estilos para el modal de imagen alternativa */
#modalImagen {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Estilos para las notificaciones toast */
#toast-notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Estilos para los botones de acción del modal */
.btn-foto-action {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-foto-action:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-foto-action i {
    color: #333;
    font-size: 1.1rem;
}

/* Estilos para el overlay de la foto */
.modal-foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.modal-empleado-foto:hover .modal-foto-overlay {
    opacity: 1;
}

.modal-foto-overlay i {
    color: white;
    font-size: 2rem;
}

/* Estilos para los datos del empleado */
.modal-dato {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.modal-dato:hover {
    background-color: #f8f9fa;
}

.modal-dato i {
    color: #6c757d;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.modal-dato-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.modal-value {
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.modal-copy-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-copy-btn:hover {
    background-color: #e9ecef;
    color: #495057;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-avatar {
        width: 120px !important;
        height: 168px !important;
    }
    
    .avatar-fallback {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .modal-avatar {
        width: 100px !important;
        height: 140px !important;
    }
    
    .avatar-fallback {
        font-size: 1.2rem !important;
    }
}
