/* Стили для сервиса проверки орфографии */

/* Переопределение стилей для текстовых блоков */
.text-input {
    width: 100% !important;
    height: 500px;
    resize: none;
    border: 1px solid #EAEAEA;
    box-sizing: border-box;
    box-shadow: 0px 5px 10px rgba(168, 168, 168, 0.15);
    border-radius: 2px;
    padding: 10px;
    font-size: 16px;
    overflow-y: auto;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Контейнер для текстовых форм */
.text-input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Заголовок текстовой формы */
.text-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.text-input-title {
    font-weight: bold;
    font-size: 18px;
}

/* Ряд с текстовыми формами */
.text-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    justify-content: space-between;
}

/* Колонка с текстовой формой */
.text-input-column {
    width: 45%;
    min-width: 300px;
}

/* Стиль для выходного текста */
.text-output {
    background-color: #f8f8f8;
    white-space: pre-wrap;
}

/* Стиль для выделения исправленного текста */
.corrected {
    background-color: #FFFF00;
    padding: 0 2px;
    border-radius: 2px;
    display: inline-block;
    margin: 0 1px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    position: relative;
    font-weight: bold;
    border-bottom: 1px dashed #FF9900;
}

.corrected:hover {
    background-color: #FFCC00;
    cursor: help;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

/* Стили для индикатора загрузки */
.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0163D2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

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

/* Стили для сообщений о статусе */
.status-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.status-message.error {
    background-color: #ffcccc;
    color: #cc0000;
}

.status-message.success {
    background-color: #ccffcc;
    color: #006600;
}

/* Адаптивные стили */
@media screen and (max-width: 1240px) {
    .text-input-row {
        flex-direction: column;
    }
    
    .text-input-column {
        width: 100%;
    }
    
    .input-wrapper {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .text-input {
        height: 350px;
    }
}

/* Переопределение стилей для кнопок */
.btn {
    background: #0163D2;
    border-radius: 2px;
    color: #fff;
    height: 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clean {
    width: 95px;
    height: 40px;
    background: #5F5F5F;
    border-radius: 2px;
    color: #fff;
}

.row-button {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.row-button button + button {
    margin-left: 10px;
}
