/* ========================================
   ADVANCED NOTIFICATION & ALERT SYSTEM
   ======================================== */

:root {
    --notif-success: #10b981;
    --notif-error: #ef4444;
    --notif-warning: #f59e0b;
    --notif-info: #3b82f6;
    --notif-glass: rgba(15, 23, 42, 0.85);
    --notif-border: rgba(255, 255, 255, 0.1);
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 40px);
}

@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Toast Item */
.toast-item {
    pointer-events: auto;
    background: var(--notif-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--notif-border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.toast-item.success {
    border-left: 4px solid var(--notif-success);
}

.toast-item.error {
    border-left: 4px solid var(--notif-error);
}

.toast-item.warning {
    border-left: 4px solid var(--notif-warning);
}

.toast-item.info {
    border-left: 4px solid var(--notif-info);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.success .toast-icon {
    color: var(--notif-success);
}

.error .toast-icon {
    color: var(--notif-error);
}

.warning .toast-icon {
    color: var(--notif-warning);
}

.info .toast-icon {
    color: var(--notif-info);
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.toast-close {
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 0.8rem;
}

.toast-close:hover {
    opacity: 1;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    opacity: 0.3;
}

.success .toast-progress {
    background: var(--notif-success);
}

.error .toast-progress {
    background: var(--notif-error);
}

.warning .toast-progress {
    background: var(--notif-warning);
}

.info .toast-progress {
    background: var(--notif-info);
}

/* --- PREMIUM ALERTS (Modals) --- */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.alert-modal {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
}

.alert-header {
    margin-bottom: 20px;
}

.alert-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.alert-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.alert-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.alert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.alert-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    flex: 1;
}

.alert-btn-confirm {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.alert-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.alert-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}