/* Styles pour les actions IA proposées dans le chat */

.ai-actions-container {
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ai-actions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.ai-actions-header i {
    width: 18px;
    height: 18px;
}

.ai-action-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.ai-action-card:last-child {
    margin-bottom: 0;
}

.ai-action-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.action-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons button {
    padding: 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-buttons button i {
    width: 16px;
    height: 16px;
}

.btn-accept {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-reject {
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: #EF4444;
}

/* Animation d'apparition */
.ai-actions-container {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode */
body.dark-mode .ai-actions-container {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark-mode .ai-action-card {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(75, 85, 99, 0.5);
}

body.dark-mode .ai-action-card:hover {
    border-color: var(--primary);
    background: rgba(31, 41, 55, 1);
}
