/* IAST транслитерация стили */
.iast-content {
    font-family: 'Times New Roman', 'Liberation Serif', serif;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.iast-content p {
    font-size: 1.1em;
    color: #4a5568;
}

/* Переключатели */
#toggleDevanagari,
#toggleIast,
#toggleTranslation {
    transition: all 0.3s ease;
}

#toggleDevanagari:hover,
#toggleIast:hover,
#toggleTranslation:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Активные состояния кнопок */
.bg-blue-800 {
    background-color: rgb(30, 64, 175) !important;
}

/* Flex контейнер для текстовых панелей */
.flex-container {
    display: flex;
    gap: 1.5rem;
    flex-direction: row;
    align-items: stretch;
}

.text-panel {
    flex: 1;
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
}

.text-panel.hidden {
    display: none;
}

/* Адаптивность только для мобильных */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }
    
    .text-panel {
        min-height: auto;
    }
}

/* IAST текст стили */
.iast-text {
    font-family: 'Times New Roman', 'Liberation Serif', serif;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* Анимация переключения */
.devanagari-content,
.iast-content,
.translation-content,
.right-iast-content,
.right-devanagari-content {
    transition: opacity 0.3s ease-in-out;
}

.devanagari-content.hidden,
.iast-content.hidden,
.translation-content.hidden,
.right-iast-content.hidden,
.right-devanagari-content.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Правая панель стили */
.right-panel {
    min-height: 200px;
}

.right-iast-content,
.right-devanagari-content {
    font-size: inherit;
}

.right-iast-content {
    font-family: 'Times New Roman', 'Liberation Serif', serif;
    font-style: italic;
}

/* Улучшенная типографика для IAST */
.iast-content .text-justify {
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.1em;
}

/* Специальные символы IAST */
.iast-content {
    font-feature-settings: "liga" 1, "dlig" 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .iast-content {
        font-size: 0.95em;
        line-height: 1.5;
    }
    
    #toggleScript {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}