/**
 * FlowX4 Notifications
 * ====================
 * Структура: .notification > .notification__header + .notification__body
 */

.notification__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-toast) - 1);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.notification__overlay--visible {
    opacity: 1;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: none;
    box-shadow: var(--shadow-xl);
    max-width: 420px;
    min-width: 260px;
    opacity: 0;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.notification--visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Шапка — тонкая цветная полоска */
.notification__header {
    height: 5px;
    background: var(--color-bg-tertiary);
}

/* Крестик — абсолютно в правом верхнем углу */
.notification__close {
    position: absolute;
    top: 10px;
    right: 6px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: #999;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notification__close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #555;
}

/* Тело — белый фон, текст по центру */
.notification__body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5) var(--space-6);
    min-height: 60px;
}

.notification__message {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    color: #1a1a1a;
    text-align: center;
}

/* Скрыта — иконки не нужны */
.notification__icon {
    display: none;
}

/* Типы — цвет шапки */

.notification--error .notification__header { background: var(--color-error); }
.notification--warning .notification__header { background: var(--color-warning); }
.notification--success .notification__header { background: var(--color-success); }
.notification--info .notification__header { background: var(--color-info); }
