/* ============================================
   TOAST-УВЕДОМЛЕНИЯ И МОДАЛКА CONFIRM
   ============================================ */

.notification-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 40px);
}

.notification {
    pointer-events: auto;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    min-width: 260px;
}

.notification.show    { transform: translateX(0); opacity: 1; }
.notification.closing { transform: translateX(120%); opacity: 0; }

.notification > i:first-child {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}

.notification-text {
    flex: 1;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.notification-text i {
    font-size: 14px;
    vertical-align: -2px;
    margin: 0 2px;
    color: var(--accent);
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.notification-close:hover { color: var(--alert); }

/* Типы */
.notification.success {
    border-color: rgba(0, 255, 136, 0.4);
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.06), var(--bg-2) 60%);
}
.notification.success > i:first-child { color: var(--ok); }

.notification.error {
    border-color: rgba(255, 111, 97, 0.45);
    background: linear-gradient(180deg, rgba(255, 111, 97, 0.06), var(--bg-2) 60%);
}
.notification.error > i:first-child { color: var(--alert); }

.notification.warning {
    border-color: rgba(255, 181, 71, 0.4);
    background: linear-gradient(180deg, rgba(255, 181, 71, 0.05), var(--bg-2) 60%);
}
.notification.warning > i:first-child { color: #ffb547; }

.notification.info {
    border-color: rgba(124, 196, 255, 0.4);
    background: linear-gradient(180deg, rgba(124, 196, 255, 0.05), var(--bg-2) 60%);
}
.notification.info > i:first-child { color: var(--info); }

.notification.loading {
    border-color: rgba(251, 209, 87, 0.4);
    background: linear-gradient(180deg, rgba(251, 209, 87, 0.05), var(--bg-2) 60%);
}
.notification.loading > i:first-child {
    color: var(--accent);
    animation: spin 1s linear infinite;
}

/* ───── Модалка confirm ───── */
.confirm-overlay { z-index: 600; }
.confirm-modal   { max-width: 460px; }

.confirm-message {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.btn-danger {
    background: var(--alert);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 111, 97, 0.3);
}
.btn-danger:hover:not(:disabled) {
    background: #e85a4d;
    box-shadow: 0 0 30px rgba(255, 111, 97, 0.5);
}

@media (max-width: 600px) {
    .notification-container {
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}