body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    /*min-height: 100vh;*/
    background-color: #f0f0f0;
}

/* Скрытие элемента */
.hidden {
    display: none !important;
}

/* Контейнер оверлея */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Затемнение фона */
    /*backdrop-filter: blur(4px);    !* Легкое размытие *!*/
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: sans-serif;
}

.loader-content {
    text-align: center;
    color: white;
}

/* Спиннер */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffffff; /* Цвет активной части */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Текст под спиннером */
.loader-content p {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

p {
    font-family: monospace;
    margin: 4px 0 6px 0;
    box-sizing: border-box;
    font-size: 14px;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    /*width: 100vw; !* Уменьшил ширину для удобства *!*/
    max-width: 1300px;
    /*width: 100%;*/
    height: 600px;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.wrapper-input-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    gap: 5px;
}

label {
    margin: 0;
    font-size: 14px;
}

.input-box {
    font-family: monospace;
    /*width: 400px;*/
    max-height: 505px;
    height: 100%; /* Фиксированная минимальная высота */
    padding: 10px;
    /*margin: 20px 0 0 0;*/
    border: 1px solid #ccc;
    /*resize: vertical; !* Позволяет изменять высоту *!*/
    resize: none;
    box-sizing: border-box;
    font-size: 14px;
    overflow: auto;
}

/* кнопки */
.button-group {
    display: flex;
    justify-content: center;
    max-height: 50px;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.send-button {
    flex: 1;
    min-height: 35px;
}

.send-button:hover {
    background-color: #45a049;
}

.wrapper_output-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    max-height: 560px;
}

.output-box {
    flex: 1;
    font-family: monospace;
    width: 100%;
    height: 100%; /* Минимальная высота для вывода JSON */

    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #f9f9f9;

    white-space: pre-wrap; /* Сохраняет форматирование JSON */
    overflow-x: auto; /* Горизонтальная прокрутка при необходимости */
    font-size: 14px;
    min-width: 0;
    /*resize: none; !* Запретить изменение размера *!*/
}
