/* ===============================================
   МОДАЛЬНЫЕ УВЕДОМЛЕНИЯ (вместо alert)
   =============================================== */

/* Overlay для уведомлений */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

/* Карточка уведомления */
.notification-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Иконка уведомления */
.notification-icon {
    width: 100%;
    padding: 40px 20px 20px;
    text-align: center;
    font-size: 64px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.notification-icon.success {
    color: #2ecc71;
}

.notification-icon.error {
    color: #e74c3c;
}

.notification-icon.warning {
    color: #f39c12;
}

.notification-icon.info {
    color: #3498db;
}

/* Контент уведомления */
.notification-content {
    padding: 20px 30px 30px;
    text-align: center;
}

.notification-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.4em;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.notification-message {
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Кнопки уведомления */
.notification-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notification-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-btn-primary {
    background: linear-gradient(135deg, #D9B86E, #C4A962);
    color: white;
    box-shadow: 0 4px 12px rgba(217, 184, 110, 0.3);
}

.notification-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 184, 110, 0.4);
}

.notification-btn-primary:active {
    transform: translateY(0);
}

.notification-btn-secondary {
    background: #f8f9fa;
    color: var(--primary-black);
    border: 2px solid #e0e0e0;
}

.notification-btn-secondary:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
}

.notification-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.notification-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Toast уведомления (краткие сообщения) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.toast-message {
    font-family: 'Lato', sans-serif;
    font-size: 0.85em;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

.toast.success {
    border-left: 4px solid #2ecc71;
}

.toast.success .toast-icon {
    color: #2ecc71;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.warning {
    border-left: 4px solid #f39c12;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast.info .toast-icon {
    color: #3498db;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .notification-card {
        width: 95%;
        max-width: none;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}
