/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Header e navegação */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: var(--bg-secondary);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

.logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-container img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

.logo-container:hover {
    opacity: 0.9;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    display: block;
    padding: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s;
}

.nav-menu a:hover {
    background-color: var(--hover-color);
}

.nav-menu a.active {
    color: var(--accent-color);
}

.theme-toggle {
    display: flex;
    align-items: center;
}

#themeToggle {
    height: 24px;
    width: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle button {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    transition: background-color 0.3s;
}

.theme-toggle button:hover {
    background-color: var(--hover-color);
}

.theme-toggle select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
    height: 32px;
    min-width: 70px;
}

.theme-toggle select:hover {
    background-color: var(--hover-color);
}

.language-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}

.language-button {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.125rem 0.375rem;
    background: transparent;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: background 0.2s ease;
    height: 24px;
    min-width: 88px;
    justify-content: space-between;
}

.language-button .fas {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 0.125rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 0.125rem;
    margin-top: 0.125rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    min-width: 48px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    padding: 0.125rem 0.25rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-align: center;
}

.language-option:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    transform: translateX(2px);
}

.language-option.active {
    background: var(--bg-accent);
    color: var(--primary-color);
}

/* Container principal */
main {
    margin-top: 70px;
    padding: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tool-container {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

/* Elementos de formulário */
textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.action-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

/* Resultados */
.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-box {
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Espaços para anúncios */
.ad-space {
    min-height: 100px;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

/* Estilos para o divisor de texto */
.input-controls {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.split-options, .split-method, .split-size {
    margin: 0.5rem 0;
}

.split-options label, .split-method label {
    margin-right: 1rem;
    cursor: pointer;
}

.split-size {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.split-size input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.split-results {
    margin-top: 2rem;
}

.result-part {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.result-part h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.copy-part {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-part:hover {
    opacity: 0.9;
}

.copy-all-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem;
}

.copy-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.copy-all-btn:hover {
    background-color: #1557b0;
}

.copy-all-btn.copied {
    background-color: #34a853;
}

.copy-all-btn.copied:hover {
    background-color: #2d8d47;
}

.copy-all-btn .copy-icon {
    font-size: 1.2rem;
}

/* Estilos para o removedor de espaços */
.cleaning-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.custom-chars {
    margin-top: 0.5rem;
}

.custom-chars input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.text-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.text-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-column h3 {
    color: var(--accent-color);
}

.text-column textarea {
    height: 300px;
    resize: vertical;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.stats span {
    color: var(--text-secondary);
}

.stats span span {
    color: var(--accent-color);
    font-weight: bold;
}

/* Seção informativa para SEO */
.info-section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.info-section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-content {
    color: var(--text-primary);
}

.info-content p {
    margin: 1rem 0;
    line-height: 1.6;
}

.info-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.info-content li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.info-content strong {
    color: var(--accent-color);
}

.seo-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.seo-tags p {
    margin: 0;
    font-style: italic;
}

/* Estilos para o calculador de juros */
.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: var(--text-primary);
    font-weight: 500;
}

.input-group input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.result-box {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.result-box textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    min-height: 150px;
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #1557b0;
}

.copy-btn.copied {
    background-color: #34a853;
}

.copy-btn.copied:hover {
    background-color: #2d8d47;
}

.copy-btn .copy-icon {
    font-size: 1.1rem;
}

.result-box h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.result-box p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

#chartContainer {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 300px;
}

/* Animação para os resultados */
@keyframes numberChange {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.result-box p.updated {
    animation: numberChange 0.3s ease-in-out;
}

/* Estilos para o modificador de parágrafos */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-group input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input[type="text"]:focus {
    border-color: var(--accent-color);
    outline: none;
}

.action-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 1.5rem 0;
}

.action-button:hover {
    background-color: #1557b0;
}

.result-section {
    margin-top: 2rem;
}

.result-section h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Estilos para o comparador de textos */
.comparison-container {
    margin-top: 2rem;
}

.text-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .text-inputs {
        grid-template-columns: 1fr;
    }
}

.comparison-options {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-container:last-child {
    margin-bottom: 0;
}

.checkbox-text {
    margin-left: 0.5rem;
    color: var(--text-primary);
}

.similarity-meter {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.meter-label {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.meter {
    background-color: var(--bg-primary);
    height: 3rem;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meter-bar {
    height: 100%;
    width: 0;
    background-color: #1a73e8;
    transition: all 0.5s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.differences-section,
.differences-container,
.difference-item,
.difference-removed,
.difference-added {
    display: none;
}

.text-preview {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: monospace;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.text-preview .match {
    background-color: rgba(76, 175, 80, 0.2);
    border-radius: 2px;
}

.text-preview .diff {
    background-color: rgba(244, 67, 54, 0.2);
    border-radius: 2px;
    text-decoration: line-through;
}

.text-preview .add {
    background-color: rgba(76, 175, 80, 0.2);
    border-radius: 2px;
    border-bottom: 2px solid #4caf50;
}

.input-group textarea {
    margin-bottom: 0;
}

.text-inputs .input-group {
    display: flex;
    flex-direction: column;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
    }

    .logo-container {
        order: 2;
        margin: 0 auto;
    }

    .nav-wrapper {
        order: 1;
        flex-grow: 0;
    }

    .menu-toggle {
        display: flex;
        margin-right: 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        padding: 1rem;
        background-color: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.8rem;
    }

    .results {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar .logo-container {
        position: absolute;
        left: 50px;
        top: auto;
        transform: none;
    }
    
    .navbar .logo-container img {
        max-width: 160px;  /* Largura máxima desejada */
        height: auto;      /* Mantém a proporção */
    }
}

/* Utilitários */
.instructions {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* Estilos para o transformador de texto */
.transform-container {
    margin-top: 2rem;
}

.transform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.transform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transform-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.transform-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transform-btn.active {
    background-color: #34a853;
}

.transform-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .transform-buttons {
        grid-template-columns: 1fr;
    }
}

/* Estilos para o inversor de texto */
.inverter-container {
    margin-top: 2rem;
}

.invert-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.invert-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.invert-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.invert-btn:active {
    transform: translateY(0);
}

.invert-btn.active {
    background-color: #34a853;
}

.invert-icon {
    font-size: 1.5rem;
}

.invert-btn .example {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: pre-line;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .invert-options {
        grid-template-columns: 1fr;
    }

    .invert-btn {
        padding: 1rem;
    }
}

/* Estilos para a calculadora de tijolos */
.brick-calculator {
    margin-top: 2rem;
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brick-type-selector {
    margin-bottom: 2rem;
}

.brick-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brick-select:hover {
    border-color: var(--primary-color);
}

.brick-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dimension-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dimension-input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}

.dimension-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.calculate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #34a853;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculate-btn:hover {
    background-color: #2d9249;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calc-icon {
    font-size: 1.4rem;
}

.result-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.result-label {
    color: var(--text-secondary);
    font-weight: bold;
}

.result-value {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.result-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-details p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .brick-calculator {
        padding: 1rem;
    }

    .brick-dimensions {
        grid-template-columns: 1fr;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Estilos para a calculadora de paredes */
.wall-calculator {
    margin-top: 2rem;
}

.rooms-section,
.walls-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rooms-header,
.walls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.wall-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #34a853;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background-color: #2d9249;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.add-btn:active {
    transform: translateY(0);
}

.room-select {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 200px;
}

.wall-item,
.room-item {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wall-item:hover,
.room-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.wall-header,
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wall-name,
.room-name {
    font-size: 1.1rem;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: transparent;
    color: var(--text-primary);
    width: 60%;
}

.wall-name:focus,
.room-name:focus {
    border-color: var(--primary-color);
    outline: none;
    background-color: var(--bg-secondary);
}

.wall-controls,
.room-controls {
    display: flex;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover,
.delete-btn:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.wall-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dimension-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dimension-group input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
}

.dimension-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.wall-area,
.room-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    font-weight: bold;
}

.area-value {
    color: var(--primary-color);
}

.results-section {
    margin-top: 3rem;
}

.result-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.total-area {
    text-align: center;
}

.total-value {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 1rem;
}

.rooms-summary {
    margin-top: 2rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.export-btn,
.clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn {
    background-color: #1a73e8;
    color: white;
}

.clear-btn {
    background-color: #dc3545;
    color: white;
}

.export-btn:hover,
.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .rooms-header,
    .walls-header,
    .wall-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .wall-dimensions {
        grid-template-columns: 1fr;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Estilos para a calculadora de escadas */
.stairs-calculator {
    margin-top: 2rem;
}

.stair-type-selector {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stair-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stair-select:hover {
    border-color: var(--primary-color);
}

.stair-preview {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    overflow: hidden;
}

.preview-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#stairCanvas {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    border-radius: 4px;
}

.main-dimensions {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dimension-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.input-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: block;
}

.specific-params {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculate-section {
    text-align: center;
    margin: 2rem 0;
}

.calculate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #34a853;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculate-btn:hover {
    background-color: #2d9249;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.result-item {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-value {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.additional-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.result-notes {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-notes p {
    margin: 0.5rem 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.export-btn,
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn {
    background-color: #1a73e8;
    color: white;
}

.print-btn {
    background-color: #5f6368;
    color: white;
}

.export-btn:hover,
.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .dimension-inputs {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .stair-preview {
        aspect-ratio: 1/1;
    }
}

/* Estilos para o conversor de legendas */
.subtitle-converter {
    margin-top: 2rem;
}

.timing-settings {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.timing-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timing-group input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.timing-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.text-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.input-area,
.output-area {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-areas textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.text-areas textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.text-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.success-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 180px;
    justify-content: center;
    height: 40px;
    line-height: 20px;
}

/* Botão Converter (azul) */
.primary-btn {
    background: linear-gradient(145deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(145deg, #1e88e5, #1565c0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Botão Copiar (verde) */
.secondary-btn {
    background: linear-gradient(145deg, #4caf50, #388e3c);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.secondary-btn:hover {
    background: linear-gradient(145deg, #43a047, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Botão Baixar (roxo) */
.success-btn {
    background: linear-gradient(145deg, #9c27b0, #7b1fa2);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.success-btn:hover {
    background: linear-gradient(145deg, #8e24aa, #6a1b9a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

/* Botão Limpar (vermelho) */
.danger-btn {
    background: linear-gradient(145deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.danger-btn:hover {
    background: linear-gradient(145deg, #e53935, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Estado desabilitado para todos os botões */
.primary-btn:disabled,
.secondary-btn:disabled,
.success-btn:disabled,
.danger-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Efeito de clique */
.primary-btn:active,
.secondary-btn:active,
.success-btn:active,
.danger-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.advanced-options {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .text-areas {
        grid-template-columns: 1fr;
    }

    .timing-grid,
    .options-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/* Estilos para o Transcritor de Áudio */
.transcription-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-setup {
    padding: 1.5rem;
    background: var(--surface-alt-color);
    border-radius: 8px;
}

.api-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.api-key-input {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    background: var(--input-bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.api-key-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.api-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-key-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
}

.api-key-link a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s;
}

.api-key-link a:hover {
    color: #63b3ed;
}

.info-icon {
    cursor: help;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.info-icon:hover {
    opacity: 1;
}

.api-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.api-link:hover {
    text-decoration: underline;
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    cursor: help;
    color: var(--text-muted);
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem;
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    border-radius: 6px;
    font-size: 0.85rem;
    width: 250px;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip:hover .tooltip-text {
    display: block;
}

.file-upload-section {
    padding: 1.5rem;
    background: var(--surface-alt-color);
    border-radius: 8px;
}

.upload-container {
    position: relative;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--input-bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-container:hover,
.upload-container.drag-over {
    border-color: var(--primary-color);
    background: var(--hover-bg-color);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.upload-icon {
    font-size: 2.5rem;
}

.upload-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: var(--surface-color);
    border-radius: 6px;
}

.file-name {
    flex: 1;
    font-weight: 500;
}

.file-size {
    color: var(--text-muted);
}

.remove-file {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: var(--danger-bg);
}

.transcription-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.segment-controls {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 20px;
    margin: 10px 0;
    display: none;
}

.segment-option {
    display: grid;
    gap: 8px;
}

.segment-option label {
    color: #e0e0e0;
    font-size: 14px;
}

.number-input {
    width: 100px;
    padding: 5px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
}

.number-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}

.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

.checkbox-option {
    margin-top: 5px;
}

/* Mostrar/ocultar controles de segmentação */
#segmentControls {
    display: none;
}

#autoSegment:checked ~ #segmentControls {
    display: grid;
}

.progress-section {
    padding: 1.5rem;
    background: var(--surface-alt-color);
    border-radius: 8px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-status {
    font-size: 0.9rem;
    color: var(--text-color);
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.time-remaining {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cancel-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: var(--danger-bg);
}

.result-section {
    padding: 1.5rem;
    background: var(--surface-alt-color);
    border-radius: 8px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-preview {
    margin: 1rem 0;
}

#srtPreview {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-bg-color);
    color: var(--text-color);
    font-family: monospace;
    resize: vertical;
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.main-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .result-actions,
    .main-actions {
        flex-direction: column;
    }

    .result-header {
        flex-direction: column;
        gap: 1rem;
    }

    .result-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Estilos para o seletor de idioma */
.model-info {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-bottom: 5px;
}

.form-select:hover {
    border-color: #999;
}

.form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}

.option {
    margin-bottom: 15px;
}

.option label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

/* Estilos para controles de segmentação */
.segment-controls {
    display: grid;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin: 10px 0;
}

.segment-option {
    display: grid;
    gap: 8px;
}

.segment-option label {
    color: #e0e0e0;
    font-size: 14px;
}

.number-input {
    width: 100px;
    padding: 5px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
    font-size: 14px;
}

.number-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}

.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

.checkbox-option {
    margin-top: 5px;
}

/* Mostrar/ocultar controles de segmentação */
#segmentControls {
    display: none;
}

#autoSegment:checked ~ #segmentControls {
    display: grid;
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.download-options {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.continuous-mode {
    background-color: #2c5282 !important;
}

.continuous-mode:hover {
    background-color: #2a4365 !important;
}

.download-buttons {
    display: flex;
    gap: 10px;
}

.download-buttons button {
    flex: 1;
}

/* Estilos para o seletor de idioma */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem;
    margin-top: 0.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    min-width: 80px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    padding: 0.25rem 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s ease;
    text-align: center;
}

.language-option:hover {
    background: var(--bg-hover);
}

.language-option.active {
    background: var(--bg-accent);
    color: var(--primary-color);
}

/* Progress Bar Styles */
.progress-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.progress-status {
    flex: 1;
}

#statusText {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4299e1, #63b3ed);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: pulse 2s infinite;
}

.progress-percentage {
    min-width: 45px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Estado indeterminado (quando não sabemos o progresso exato) */
.progress-bar.indeterminate .progress-bar-fill {
    width: 50%;
    animation: progress-indeterminate 1.5s infinite linear;
}

@keyframes progress-indeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Download section */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 15px 0;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    width: 100%;
}

.download-buttons button {
    width: 100%;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    white-space: nowrap;
}

.download-options {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.option-text {
    color: var(--text-primary);
    font-size: 0.9em;
}

.option-info {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-left: 4px;
}

/* Botões principais */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.action-buttons button {
    width: 100%;
}

/* Media queries para ajustes responsivos */
@media (min-width: 768px) {
    .download-section {
        flex-direction: row;
        align-items: center;
    }

    .download-buttons {
        flex: 1;
    }

    .download-options {
        flex: 1;
        margin-left: 10px;
    }
}

@media (max-width: 767px) {
    .download-buttons button {
        width: 100%;
    }
    
    .download-options {
        margin-top: 10px;
    }
}

/* Download section */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 15px 0;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.download-buttons button {
    flex: 1;
    min-width: 200px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    white-space: nowrap;
}

.download-options {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
}

/* Botões principais */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.action-buttons button {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

/* Media queries para ajustes responsivos */
@media (max-width: 767px) {
    .download-buttons button {
        width: 100%;
        flex: none;
    }
    
    .download-options {
        margin-top: 10px;
    }

    .action-buttons button {
        width: 100%;
        max-width: none;
    }
}

/* Estilos específicos para a página da Lousa Digital */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.benefit-item i {
    color: var(--success-color);
    font-size: 1.5rem;
}

.benefit-item p {
    margin: 0;
    color: var(--text-color);
}

.cta {
    text-align: center;
    padding: 4rem 0;
    background: var(--bg-accent);
    border-radius: 10px;
    margin: 3rem 0;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.cta-button i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 2rem 1rem;
    }
}

/* Estilos do botão principal */
.button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background-color: #2196F3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
    background-color: #1976D2;
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
    background-color: #1565C0;
}

.primary-button i {
    font-size: 1.2rem;
}

/* Estilos para a página inicial */
.welcome-section {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--welcome-bg);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

:root {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-hover: #f0f2f5;
    --bg-accent: #a6b5c6;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --primary-color: #4d9fff;
    --hover-color: #3d8df0;
    --icon-color: #66b2ff;
}

[data-theme=".dark-theme"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-hover: #333333;
    --bg-accent: #2c3b4d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --primary-color: #4d9fff;
    --hover-color: #3d8df0;
    --icon-color: #66b2ff;
}

.tools-grid {
    display: grid;
    gap: 3rem;
    padding: 2rem 0;
}

.tool-category {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tool-category h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 200px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tool-card i {
    font-size: 2.5rem;
    color: var(--icon-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.tool-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--icon-color);
}

.tool-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tools-container {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: 2rem 1rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }
}

/* Estilos para o seletor de idioma */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem;
    margin-top: 0.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    min-width: 10px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    padding: 0.25rem 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s ease;
    text-align: center;
}

.language-option:hover {
    background: var(--bg-hover);
}

.language-option.active {
    background: var(--bg-accent);
    color: var(--primary-color);
}

.select-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.select-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.select-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}

.result-part {
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.result-part h3 {
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: normal;
}

/* Period Toggle Styles */
.period-input-container {
    display: flex;
    align-items: center;
    gap: 0;
}

#period {
    max-width: 150px;
}

#periodUnit {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--bg-secondary);r 
    font-size: 1rem;
    height: 45.5px;
    min-width: 100px;
    appearance: none;
    outline: none;
}
