/* NotificationComponent.css */

:root {
    --notify-bg: var(--text);
    --notify-text: var(--text-muted);
    --notify-shadow: 0 10px 30px rgba(0,0,0,0.16);
    --notify-radius: 12px;
    --notify-border: var(--text);

    --notify-info: var(--c-prim);
    --notify-success: var(--c-ok);
    --notify-alert: var(--c-warn);
    --notify-critical: var(--c-err);
}

.notify-container {
    position: fixed;
    z-index: 2800;  /* above dialogs (2700): a message raised from a dialog stays visible */
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    max-width: 420px;
}

.notify-container[data-position="top-left"] {
    top: 0; left: 0;
}

.notify-container[data-position="top-right"] {
    top: 0; right: 0;
}

.notify-container[data-position="bottom-left"] {
    bottom: 0; left: 0;
}

.notify-container[data-position="bottom-right"] {
    bottom: 0; right: 0;
}

.notify-toast {
    background: var(--notify-bg);
    color: var(--notify-text);
    border: 1px solid var(--notify-border);
    border-left: 6px solid var(--notify-info);
    border-radius: var(--notify-radius);
    box-shadow: var(--notify-shadow);
    padding: 12px 14px 12px 12px;
    position: relative;
    min-width: 260px;
}

.notify-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.notify-message {
    line-height: 1.4;
}

.notify-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.notify-info { border-left-color: var(--notify-info); }
.notify-success { border-left-color: var(--notify-success); }
.notify-alert { border-left-color: var(--notify-alert); }
.notify-critical { border-left-color: var(--notify-critical); }

.notify-info .notify-title { color: var(--notify-info); }
.notify-success .notify-title { color: var(--notify-success); }
.notify-alert .notify-title { color: var(--notify-alert); }
.notify-critical .notify-title { color: var(--notify-critical); }

.notify-toast.is-entering {
    transform: translateY(-6px);
    opacity: 0;
}

.notify-toast.is-leaving {
    transform: translateY(-6px);
    opacity: 0;
    transition: all 0.18s ease;
}

.notify-toast {
    transition: all 0.16s ease;
}

@media (max-width: 600px) {
    .notify-container { max-width: 100%; }
    .notify-toast { min-width: 0; }
}
