.notify-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    will-change: transform;
}

.notify-container.top-right {
    top: 24px;
    right: 24px;
}

.notify-container.top-left {
    top: 24px;
    left: 24px;
}

.notify-container.bottom-right {
    bottom: 24px;
    right: 24px;
}

.notify-container.bottom-left {
    bottom: 24px;
    left: 24px;
}

.notify-toast {
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(24px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.notify-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    pointer-events: none;
}

.notify-toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    position: relative;
    z-index: 2;
}

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

.notify-toast.remove {
    opacity: 0;
    transform: translateX(24px) scale(0.95);
}

.notify-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    animation: iconBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% {
        transform: scale(0.3) rotate(-30deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.notify-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.notify-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notify-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.notify-message {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.75;
    font-weight: 400;
}

.notify-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin: -2px -2px 0 0;
    opacity: 0.4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.notify-close:hover {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.08);
    transform: rotate(90deg) scale(1.1);
}

.notify-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Progress Bar */
.notify-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    z-index: 1;
}

.notify-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, currentColor 0%, currentColor 100%);
    border-radius: 0 0 14px 0;
    transform-origin: left;
    animation: progressReduce linear forwards;
}

@keyframes progressReduce {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Success */
.notify-success {
    color: #047857;
}

.notify-success .notify-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-top: 0;
}

.notify-success .notify-progress-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* Error */
.notify-error {
    color: #991b1b;
}

.notify-error .notify-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.62);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-top: 0;
}

.notify-error .notify-progress-bar {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Warning */
.notify-warning {
    color: #b45309;
}

.notify-warning .notify-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-top: 0;
}

.notify-warning .notify-progress-bar {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* Info */
.notify-info {
    color: #1e40af;
}

.notify-info .notify-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-top: 0;
}

.notify-info .notify-progress-bar {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

/* Hover Effects */
.notify-toast:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18),
    0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.notify-toast:hover .notify-progress-bar {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 480px) {
    .notify-container {
        gap: 8px;
    }

    .notify-container.top-right,
    .notify-container.bottom-right {
        right: 12px;
    }

    .notify-container.top-left,
    .notify-container.bottom-left {
        left: 12px;
    }

    .notify-toast {
        min-width: 280px;
        max-width: calc(100vw - 24px);
        border-radius: 12px;
    }

    .notify-toast-inner {
        padding: 12px 14px;
        gap: 10px;
    }

    .notify-icon {
        width: 20px;
        height: 20px;
    }

    .notify-icon.notify-success,
    .notify-icon.notify-error,
    .notify-icon.notify-warning,
    .notify-icon.notify-info {
        width: 28px;
        height: 28px;
    }

    .notify-close {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .notify-title {
        font-size: 16px;
    }

    .notify-message {
        font-size: 15px;
    }

    .notify-progress {
        height: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notify-toast {
        background: #1f2937;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .notify-success {
        color: #6ee7b7;
    }

    .notify-success .notify-icon {
        color: #10b981;
        background: rgba(16, 185, 129, 0.15);
    }

    .notify-error {
        color: #fca5a5;
    }

    .notify-error .notify-icon {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.15);
    }

    .notify-warning {
        color: #fcd34d;
    }

    .notify-warning .notify-icon {
        color: #f59e0b;
        background: rgba(245, 158, 11, 0.15);
    }

    .notify-info {
        color: #93c5fd;
    }

    .notify-info .notify-icon {
        color: #3b82f6;
        background: rgba(59, 130, 246, 0.15);
    }

    .notify-progress {
        background: rgba(255, 255, 255, 0.1);
    }

    .notify-close {
        opacity: 0.5;
    }

    .notify-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}
