/* Notification Toast System - Glassmorphism Style */
.notifications-container {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    pointer-events: none;
}

.notifications-container * {
    pointer-events: auto;
}

.toast {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 5px solid #6366f1;
    /* Initial indigo */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    transform: translateX(-125%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.4;
}

/* Status Variations */
.toast-success {
    border-right-color: #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-right-color: #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-right-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-right-color: #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* Update Flash Animation (DMA Style) */
@keyframes updated-flash {
    0% {
        background-color: rgba(16, 185, 129, 0.3);
        transform: scale(1.05);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.updated-flash {
    animation: updated-flash 1.5s ease-out;
    display: inline-block;
    border-radius: 6px;
    padding: 0 4px;
}

.notification-close {
    opacity: 0.4;
    transition: opacity 0.2s;
    padding: 5px;
}

.notification-close:hover {
    opacity: 1;
}

/* =========================================
   Custom SweetAlert2 Premium Styles 
   ========================================= */

/* 1. Base Popup Customizations */
.swal2-popup.premium-alert {
    border-radius: 24px !important;
    padding: 0 !important;
    /* Content will handle padding */
    overflow: hidden !important;
    border: none !important;
    font-family: 'Cairo', sans-serif !important;
}

/* 2. Red Alert (Expired) */
.swal2-popup.alert-expired {
    background: #ef4444 !important;
    /* Red-500 */
    color: #ffffff !important;
}

/* 3. Orange Alert (Quota Finished) */
.swal2-popup.alert-quota {
    background: #f97316 !important;
    /* Orange-500 */
    color: #ffffff !important;
}

/* 4. Yellow Alert (Low Data) */
.swal2-popup.alert-warning {
    background: #eab308 !important;
    /* Yellow-500 */
    color: #ffffff !important;
}

/* Common Text Styles */
.premium-alert .swal2-title {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
}

.premium-alert .swal2-html-container {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    margin: 0 20px 30px !important;
}

/* Premium Buttons */
.premium-btn-white {
    background: #ffffff !important;
    color: #333 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: transform 0.2s !important;
    text-decoration: none !important;
    margin: 5px !important;
    flex: 1;
}

.premium-btn-white:active {
    transform: scale(0.95) !important;
}

.premium-btn-glass {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: background 0.2s !important;
    text-decoration: none !important;
    margin: 5px !important;
    flex: 1;
}

.premium-btn-glass:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Subscription ID Badge (Optional if needed in future) */
.sub-id-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Close Button Override */
.premium-alert .swal2-close {
    color: rgba(255, 255, 255, 0.6) !important;
    outline: none !important;
    box-shadow: none !important;
}

.premium-alert .swal2-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Icon Customization */
.premium-alert .swal2-icon {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}