/* chat-advanced-styles.css - Styles pour fonctionnalités avancées messaging */
/* Version 2.0 - Design moderne orange */

/* Bouton actions - Style moderne */
.btn-actions {
    position: relative !important;
    z-index: 100;
}

.btn-actions::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.4s, height 0.4s;
}

.btn-actions:active::before {
    width: 120%;
    height: 120%;
}

/* Menu d'actions - Design moderne */
.actions-menu {
    padding: 0.5rem 0;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.action-btn {
    width: 100%;
    text-align: left;
    padding: 0.9rem 1.2rem;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.action-btn:hover {
    background: linear-gradient(90deg, #fff5f0 0%, #ffffff 100%);
    padding-left: 1.5rem;
    color: #ff6b35;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn.danger {
    color: #ef4444;
}

.action-btn.danger:hover {
    background: linear-gradient(90deg, #fef2f2 0%, #ffffff 100%);
    color: #dc2626;
}

/* Séparateur dans le menu */
.actions-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #f3f4f6;
}

/* Modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    animation: fadeIn 0.2s;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-content h4 {
    color: #374151;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Boutons généraux */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    .modal-content.large {
        max-width: 95%;
    }
    
    .btn-actions {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .actions-menu {
        right: 5px !important;
        min-width: 200px;
    }
}

/* Scrollbar personnalisé pour modales */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #f7931e;
}
