/**
 * modal.css
 * Стили для модальных окон приложения
 */

/* Базовый стиль модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

/* Содержимое модального окна */
.modal-content {
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0;
    width: 90%;
    max-width: 500px;
    margin: 30px auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: fadeIn 0.3s ease forwards;
}

/* Заголовок модального окна */
.modal-header {
    padding: 20px;
    background-color: rgba(227, 6, 19, 0.8);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Тело модального окна */
.modal-body {
    padding: 25px;
    color: #FFFFFF;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Кнопка закрытия модального окна */
.close-modal {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

/* Модальное окно подтверждения */
.confirm-modal .modal-content {
    max-width: 400px;
}

.confirm-modal .modal-body {
    text-align: center;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.confirm-buttons button {
    min-width: 100px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 70vh;
    }
}

/* Содержимое модального окна для карт */
.card-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-height: 90vh;
    width: auto;
    max-width: 90%;
    margin: auto;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
} 