/* novelcast/static/css/components/notifications.css */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: var(--z-notification);
    pointer-events: none;
}

.notification {
    width: 280px;
    background: rgba(30, 30, 30, 0.92);
    color: white;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: start;

    animation: slideIn 0.25s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.notification.success {
    border-left: 4px solid #2ecc71;
}
.notification.error {
    border-left: 4px solid #e74c3c;
}
.notification.info {
    border-left: 4px solid #3498db;
}

.notification-content {
    font-size: 13px;
    line-height: 1.3;
    padding-right: 10px;
}

.notification-close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    font-size: 14px;
    line-height: 1;
    padding: 2px;
}

.notification-close:hover {
    opacity: 1;
}

.notification-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    opacity: 1;
}

.notification-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.notification-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: inherit;
    transition: width 0.2s ease;
}

.notification-progress-bar.indeterminate {
    width: 50%;
    transform: translateX(-100%);
    animation: progressIndeterminate 1.2s infinite ease;
}

@keyframes progressIndeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
