/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    pointer-events: none;
}

/* Individual Notification */
.notification {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    transition: all 0.3s ease;
}

.notification:hover {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
    from {
        transform: translateX(420px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(420px);
        opacity: 0;
    }
}

/* Notification Content */
.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
}

/* Icon */
.notification-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-icon svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Success Notification */
.notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.96) 0%, rgba(16, 185, 129, 0.96) 100%);
    border-color: rgba(34, 197, 94, 0.35);
}

.notification-success .notification-icon {
    color: #ffffff;
}

.notification-success .notification-title,
.notification-success .notification-message {
    color: #ffffff;
}

/* Error Notification */
.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.96) 0%, rgba(220, 38, 38, 0.96) 100%);
    border-color: rgba(239, 68, 68, 0.35);
}

.notification-error .notification-icon {
    color: #ffffff;
}

.notification-error .notification-title,
.notification-error .notification-message {
    color: #ffffff;
}

/* Warning Notification */
.notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.96) 0%, rgba(217, 119, 6, 0.96) 100%);
    border-color: rgba(245, 158, 11, 0.35);
}

.notification-warning .notification-icon {
    color: #ffffff;
}

.notification-warning .notification-title,
.notification-warning .notification-message {
    color: #ffffff;
}

/* Info Notification */
.notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.96) 0%, rgba(37, 99, 235, 0.96) 100%);
    border-color: rgba(59, 130, 246, 0.35);
}

.notification-info .notification-icon {
    color: #ffffff;
}

.notification-info .notification-title,
.notification-info .notification-message {
    color: #ffffff;
}

/* Body */
.notification-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

/* Title */
.notification-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* Message */
.notification-message {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.92;
}

/* Close Button */
.notification-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: inherit;
    opacity: 0.5;
    margin-top: 2px;
}

.notification-close:hover {
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.08);
}

.notification-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Progress Bar */
.notification-progress {
    height: 2.5px;
    background: rgba(0, 0, 0, 0.15);
    animation: progress linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .notification {
        background: rgba(45, 45, 48, 0.96);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .notification:hover {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.3),
            0 12px 32px rgba(0, 0, 0, 0.4);
    }

    .notification-success {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.90) 0%, rgba(16, 185, 129, 0.90) 100%);
    }

    .notification-error {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.90) 0%, rgba(220, 38, 38, 0.90) 100%);
    }

    .notification-warning {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.90) 0%, rgba(217, 119, 6, 0.90) 100%);
    }

    .notification-info {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.90) 0%, rgba(37, 99, 235, 0.90) 100%);
    }

    .notification-close:hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .notification-progress {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .notification-container {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
        gap: 8px;
    }

    .notification {
        box-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.1),
            0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .notification-content {
        padding: 14px 16px;
        gap: 12px;
    }

    .notification-title {
        font-size: 13px;
    }

    .notification-message {
        font-size: 12px;
    }

    .notification-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .notification-close {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }

    .notification-close svg {
        width: 14px;
        height: 14px;
    }
}
