/* === УВЕДОМЛЕНИЯ (ncf) — интеграция в дизайн сайта === */

/* Контейнер — позиционирование */
.ncf-container {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    position: fixed;
    z-index: 999999;
    max-width: calc(100% - 24px);
}

/* Позиции */
.ncf-container.nfc-top-left {
    top: 12px;
    left: 12px;
    flex-direction: column;
}

.ncf-container.nfc-top-right {
    top: 12px;
    right: 12px;
    flex-direction: column;
}

.ncf-container.nfc-bottom-right {
    bottom: 12px;
    right: 12px;
    flex-direction: column-reverse;
}

.ncf-container.nfc-bottom-left {
    bottom: 12px;
    left: 12px;
    flex-direction: column-reverse;
}

/* Мобильная адаптация — центрирование */
@media (max-width: 767px) {
    .ncf-container {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        bottom: 12px !important;
        top: auto !important;
        right: auto !important;
    }
}

/* Уведомление — общий стиль */
.ncf-container .ncf {
    background: #000000B2;
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    width: 320px;
    max-width: 100%;
    margin: 8px 0;
    opacity: 0.95;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ховер — плавное усиление */
.ncf-container .ncf:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    cursor: pointer;
}

/* Заголовок */
.ncf-container .ncf .ncf-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color: #fff;
    word-break: break-word;
}

/* Сообщение */
.ncf-container .ncf .nfc-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
    word-break: break-word;
    color: #FFFFFFCC;
}

/* Темы — в стиле сайта */

/* Success — зелёный, как в .btn_green */
.ncf-container .success {
    background: linear-gradient(135deg, #3A814D, #2E6A3D);
    border: 1px solid #197026;
    color: #fff;
}

/* Info — фиолетовый, как кнопки и заголовки */
.ncf-container .info {
    background: linear-gradient(135deg, #6452F6, #3F4796);
    border: 1px solid #5a6abf;
    color: #fff;
}

/* Warning — оранжевый, как .btn_orange */
.ncf-container .warning {
    background: linear-gradient(135deg, #915A1B, #FF6A00);
    border: 1px solid #FF6A00;
    color: #fff;
}

/* Error — красный, как .btn_red */
.ncf-container .error {
    background: linear-gradient(135deg, #911B24, #A30000);
    border: 1px solid #A30000;
    color: #fff;
}

/* Кнопка закрытия — в стиле сайта */
.ncf-container button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.ncf-container button:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
    border-color: #fff;
}

/* Отключение выделения текста */
.ncf-container .ncf {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Анимация появления */
@keyframes ncfFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 0.95;
        transform: translateY(0) scale(1);
    }
}
.ncf-container .ncf {
    animation: ncfFadeIn 0.3s ease forwards;
}