#ai-suggestions {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestion-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.suggestion-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.original-text, .suggested-text {
    margin: 10px 0;
}

.original-text p {
    color: #666;
}

.suggested-text p {
    color: #28a745;
}

.suggestion-reason {
    margin: 10px 0;
    font-size: 14px;
    color: #6c757d;
}

.suggestion-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-apply, .btn-discard {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-apply {
    background: #28a745;
    color: white;
}

.btn-apply:hover {
    background: #218838;
}

.btn-apply.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.btn-discard {
    background: #dc3545;
    color: white;
}

.btn-discard:hover {
    background: #c82333;
}

.btn-discard.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

#ai-loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    text-align: center;
    min-width: 200px;
}

#ai-loader p {
    margin-top: 20px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1em;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

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

/* Animaciones para sugerencias */
@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.slide-out-right {
    animation: slideOutRight 0.3s ease-out forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.3s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease-in forwards;
}

.shake {
    animation: shake 0.6s ease-in-out;
}

/* Estilos para Toastify */
.toast-success {
    background: linear-gradient(to right, #28a745, #218838) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.toast-error {
    background: linear-gradient(to right, #dc3545, #c82333) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.toast-info {
    background: linear-gradient(to right, #2c3e50, #2c3e50) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}
