/* ============================================================
   Aggroupe Premium Notification System (Toasts & Modals)
   ============================================================ */

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Base Toast Style */
.toast-premium {
    min-width: 300px;
    max-width: 450px;
    padding: 1rem 1.25rem;
    background: #ffffff; /* Totalement opaque */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 5px solid transparent;
}

.toast-premium.active {
    transform: translateX(0);
}

.toast-premium.success { border-left-color: #22c55e; }
.toast-premium.error { border-left-color: #ef4444; }
.toast-premium.info { border-left-color: #3b82f6; }
.toast-premium.warning { border-left-color: #f59e0b; }

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.success .toast-icon { color: #22c55e; }
.error .toast-icon { color: #ef4444; }
.info .toast-icon { color: #3b82f6; }
.warning .toast-icon { color: #f59e0b; }

.toast-content {
    flex-grow: 1;
}

.toast-content h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.toast-content p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.toast-close {
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #475569;
}

/* Dark Mode Adaptation */
[data-theme="dark"] .toast-premium,
body.dark-mode .toast-premium {
    background: #1e293b; /* Totalement opaque */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .toast-content h4,
body.dark-mode .toast-content h4 {
    color: #f8fafc;
}

[data-theme="dark"] .toast-content p,
body.dark-mode .toast-content p {
    color: #cbd5e1;
}

/* Custom Confirmation Modal */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-card {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.confirm-overlay.active .confirm-card {
    transform: scale(1);
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.confirm-card h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #F0F4FF;
}

.confirm-card p {
    color: #A8B2D8;
    margin: 0 0 2rem;
    line-height: 1.5;
}

.confirm-btn-group {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-btn.danger {
    background: #ef4444;
    color: white;
}

.confirm-btn.danger:hover { background: #dc2626; }

.confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #F0F4FF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive */
@media (max-width: 480px) {
    #toast-container {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .toast-premium {
        min-width: auto;
    }
}
