/* /home/bot/telegram-crm/landing-page/css/notifications.css */
/* Système de notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.notification.error {
    background: rgba(239, 68, 68, 0.95);
    border-color: rgba(239, 68, 68, 0.3);
    color: white;
}

.notification.success {
    background: rgba(16, 185, 129, 0.95);
    border-color: rgba(16, 185, 129, 0.3);
    color: white;
}

.notification.info {
    background: rgba(24, 119, 242, 0.95);
    border-color: rgba(24, 119, 242, 0.3);
    color: white;
}

.notification svg {
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.notification-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

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

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

.notification.closing {
    animation: slideOut 0.3s ease-in forwards;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease-out;
    overflow-y: auto;
}

/* 🔥 Bloquer le scroll de la page quand modal ouvert */
body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: #0f1419;
    border: 1px solid rgba(24, 119, 242, 0.3);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease-out;
    margin: 20px 0;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(24, 119, 242, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 24px;
    color: white;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #8b95a8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1877F2;
}

.modal-body {
    padding: 32px;
}

.modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body label {
    font-weight: 600;
    font-size: 14px;
    color: #E5E9F0;
}

.modal-body input {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(24, 119, 242, 0.2);
    border-radius: 10px;
    color: #E5E9F0;
    font-size: 16px;
    transition: all 0.3s;
}

.modal-body input:focus {
    outline: none;
    border-color: #1877F2;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.modal-body input::placeholder {
    color: #6b7280;
}

.modal-footer {
    padding: 20px 32px 24px;
    border-top: 1px solid rgba(24, 119, 242, 0.2);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel, .btn-confirm {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #E5E9F0;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-confirm {
    background: #1877F2;
    color: white;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-confirm:hover {
    background: #1565D8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.warning-box svg {
    color: #ef4444;
    margin-bottom: 12px;
}

.warning-box p {
    color: #E5E9F0;
    margin: 8px 0;
    line-height: 1.6;
}

.warning-box strong {
    color: #ef4444;
}

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

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

@media (max-width: 640px) {
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px 0;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

/* Notifications centrées en haut */
.notification-container.centered {
    top: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.notification-container.centered .notification {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}