:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --primary: #0056b3;
    --header-bg: #2c3e50;
    --header-text: #ecf0f1;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.top-bar {
    height: 60px;
    background-color: var(--header-bg);
    color: var(--header-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar h1 {
    font-size: 1.2rem;
    margin: 0;
}

.actions button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: background 0.2s;
}

.actions button:hover {
    background-color: #004494;
}

.split-container {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

.pane {
    flex: 1 1 50%;
    max-width: 50%;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.left-pane {
    border-right: 2px solid var(--border-color);
    background-color: #ffffff;
}

.right-pane {
    background-color: #f4f6f8;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos para o HTML extraído (Esquerda) */
#original-content h1, #original-content h2, #original-content h3 {
    margin-top: 2rem;
    color: #1a252f;
}

#original-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

#original-content img, #translation-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 1rem auto;
    box-sizing: border-box;
}

/* Destaque visual do bloco ativo */
.block-active {
    background-color: #e8f4fd;
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* Espelhamento de Estilos para o HTML da Tradução (Direita) */
#translation-content h1, #translation-content h2, #translation-content h3 {
    margin-top: 2rem;
    color: #1a252f;
}

#translation-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Sync Scroll indicators */
.sync-highlight {
    outline: 2px solid var(--primary);
}
