/* ==========================================
   WebOS Desktop Notification System CSS
   ========================================== */
@import url('glass-system.css');

#notification-container {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: var(--z-notification);
    pointer-events: none;
}

.notification-toast {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.notification-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.notification-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.notification-close-btn:hover {
    color: var(--text-primary);
}

.notification-body {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.notification-message {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-action {
    align-self: flex-end;
    margin-top: 0.25rem;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}
