/* ============================================
   УВЕДОМЛЕНИЯ (NOTIFICATIONS)
   ============================================ */

/* Модальное окно (оверлей) */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.notification-overlay.show {
    display: flex;
}

/* Блок уведомления */
.notification-block {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #155724;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px;
    animation: notificationFadeIn 0.3s ease;
}

/* Успешное уведомление (зелёное) */
.notification-block.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Ошибка (красное) */
.notification-block.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Предупреждение (жёлтое) */
.notification-block.warning {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* Информационное уведомление (синее) */
.notification-block.info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Анимация появления */
@keyframes notificationFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   СООБЩЕНИЯ ОБ ОШИБКАХ ФОРМ
   ============================================ */

.error-message {
    color: red;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.success-message {
    color: green;
    margin-bottom: 15px;
    padding: 10px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

/* ============================================
   ПОЛЯ С ОШИБКАМИ ВАЛИДАЦИИ
   ============================================ */

.error-field {
    border-color: #e74c3c !important;
    background-color: #fff5f5;
}

.field-error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ============================================
   УВЕДОМЛЕНИЕ В ЦЕНТРЕ СТРАНИЦЫ (для AJAX форм)
   ============================================ */

.notification-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #28a745;
    color: #fff;
    padding: 30px 50px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: none;
    animation: notificationCenterFadeIn 0.4s ease;
    max-width: 90%;
}

.notification-center.error {
    background-color: #dc3545;
}

.notification-center.success {
    background-color: #28a745;
}

.notification-center.warning {
    background-color: #ffc107;
    color: #333;
}

.notification-center.show {
    display: block;
}

.notification-center-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999998;
    backdrop-filter: blur(2px);
}

.notification-center-overlay.show {
    display: block;
}

@keyframes notificationCenterFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ============================================
   АДАПТИВНОСТЬ УВЕДОМЛЕНИЙ
   ============================================ */

@media (max-width: 480px) {
    .notification-block {
        padding: 20px;
        font-size: 16px;
        max-width: 90%;
        margin: 10px;
    }

    .notification-center {
        padding: 20px 30px;
        font-size: 1rem;
        max-width: 95%;
    }
}
