/* modal-styles.css - Стили для модальных окон */

/* Базовые стили модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* Заголовок модального окна */
.modal-header {
    padding: 24px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    color: #003a69;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #f8f9fa;
    color: #003a69;
}

/* Тело модального окна */
.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #003a69;
}

.modal-message {
    font-size: 1.1rem;
    color: #212529;
    line-height: 1.5;
    margin-bottom: 10px;
}

.modal-submessage {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-top: 15px;
}

/* Футер модального окна */
.modal-footer {
    padding: 20px 30px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

/* Кнопки в стиле профиля */
.modal-btn-primary {
    background-color: #003a69;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.modal-btn-primary:hover {
    background-color: #002a50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 58, 105, 0.2);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

/* Дополнительные классы для разных типов сообщений */
.modal-info, .modal-warning {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    padding: 5px;
}

/* Адаптивность */
@media (max-width: 576px) {
    .modal-container {
        max-width: 100%;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-icon {
        font-size: 40px;
    }
    
    .modal-message {
        font-size: 1rem;
    }
}