/* public/css/notifications.css - Premium Glassmorphic Edition */
:root {
    --notification-primary: #86BC25;
    --notification-success: #86BC25;
    --notification-error: #FF4E4E;
    --notification-warning: #FFB020;
    --notification-info: #00D1FF;
    --notification-bg: rgba(15, 23, 42, 0.75);
    --notification-bg-glass: rgba(15, 23, 42, 0.85);
    --notification-border: rgba(255, 255, 255, 0.1);
    --notification-text: #F8FAF8;
    --notification-text-muted: #94A3B8;
    --notification-blur: 25px;
    --notification-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    --notification-radius: 24px;
}

/* Toast Container */
#notification-toast-container {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 64px);
}

@media (max-width: 600px) {
    #notification-toast-container {
        top: auto;
        bottom: 32px;
        right: 32px;
    }
}

/* Base Toast */
.premium-toast {
    pointer-events: auto;
    background: var(--notification-bg-glass);
    backdrop-filter: blur(var(--notification-blur));
    -webkit-backdrop-filter: blur(var(--notification-blur));
    border: 1px solid var(--notification-border);
    border-radius: var(--notification-radius);
    padding: 18px 24px;
    box-shadow: var(--notification-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(100px) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    color: var(--notification-text);
}

.premium-toast.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.premium-toast.hide {
    transform: translateX(50px) scale(0.9);
    opacity: 0;
}

.premium-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--notification-primary), transparent);
}

.premium-toast-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-toast-content {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.premium-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--notification-primary), rgba(255,255,255,0.2));
    width: 0%;
    transition: width linear;
}

/* Toast Types */
.premium-toast-success::before { background: linear-gradient(to bottom, var(--notification-success), transparent); }
.premium-toast-success .premium-toast-icon { color: var(--notification-success); background: rgba(134, 188, 37, 0.1); }
.premium-toast-success .premium-toast-progress { background: var(--notification-success); }

.premium-toast-error::before { background: linear-gradient(to bottom, var(--notification-error), transparent); }
.premium-toast-error .premium-toast-icon { color: var(--notification-error); background: rgba(255, 78, 78, 0.1); }
.premium-toast-error .premium-toast-progress { background: var(--notification-error); }

.premium-toast-warning::before { background: linear-gradient(to bottom, var(--notification-warning), transparent); }
.premium-toast-warning .premium-toast-icon { color: var(--notification-warning); background: rgba(255, 176, 32, 0.1); }
.premium-toast-warning .premium-toast-progress { background: var(--notification-warning); }

.premium-toast-info::before { background: linear-gradient(to bottom, var(--notification-info), transparent); }
.premium-toast-info .premium-toast-icon { color: var(--notification-info); background: rgba(0, 209, 255, 0.1); }
.premium-toast-info .premium-toast-progress { background: var(--notification-info); }

/* Modal System */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-modal-overlay.show { opacity: 1; }

.premium-modal {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(var(--notification-blur));
    -webkit-backdrop-filter: blur(var(--notification-blur));
    border: 1px solid var(--notification-border);
    border-radius: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    transform: scale(0.85) translateY(40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.premium-modal-overlay.show .premium-modal {
    transform: scale(1) translateY(0);
}

.premium-modal-header {
    padding: 32px 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.premium-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--notification-text);
    letter-spacing: -0.02em;
}

.premium-modal-body {
    padding: 0 32px 32px;
    font-size: 1.1rem;
    color: var(--notification-text-muted);
    line-height: 1.7;
    text-align: center;
}

.premium-modal-footer {
    padding: 16px 32px 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Buttons */
.premium-btn {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: inherit;
}

.premium-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.premium-btn-primary {
    background: var(--notification-primary);
    color: #0F172A;
    box-shadow: 0 10px 25px -5px rgba(134, 188, 37, 0.4);
}

.premium-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(134, 188, 37, 0.6);
    filter: brightness(1.1);
}

/* Loading Spinner */
.premium-loader {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(255, 255, 255, 0.05);
    border-top: 5px solid var(--notification-primary);
    border-radius: 50%;
    animation: premium-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(134, 188, 37, 0.2);
}

@keyframes premium-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Real-time pulse */
.pulse-info {
    position: relative;
}
.pulse-info::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: var(--notification-info);
    border-radius: 50%;
    animation: premium-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 15px var(--notification-info);
}

@keyframes premium-pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

[dir="rtl"] #notification-toast-container {
    right: auto;
    left: 32px;
}

[dir="rtl"] .premium-toast {
    transform: translateX(-100px) scale(0.9);
}

[dir="rtl"] .premium-toast.show {
    transform: translateX(0) scale(1);
}
