/* ==========================================
   Notification Toast
   ========================================== */

.notification-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.notification {
    min-width: 350px;
    max-width: 440px;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08), 
                0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
}

.notification.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.notification.hide {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
}

.notification-icon {
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.notification-content {
    flex: 1;
    padding-right: 10px;
}

.notification-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #94a3b8;
    padding: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.notification-close:hover {
    color: #475569;
    transform: scale(1.1);
}

/* Progress bar at the bottom */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: shrink-progress linear forwards;
}

@keyframes shrink-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Success State */
.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
    color: #10b981;
}

.notification-success .notification-progress {
    background: #10b981;
}

/* Error State */
.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-error .notification-progress {
    background: #ef4444;
}

/* Warning State */
.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-warning .notification-icon {
    color: #f59e0b;
}

.notification-warning .notification-progress {
    background: #f59e0b;
}

/* Info State */
.notification-info {
    border-left: 4px solid var(--orange);
}

.notification-info .notification-icon {
    color: var(--orange);
}

.notification-info .notification-progress {
    background: var(--orange);
}

@media(max-width: 768px) {
    .notification-container {
        left: 20px;
        right: 20px;
        top: 20px;
    }
    
    .notification {
        min-width: 100%;
        max-width: 100%;
    }
}