:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e3a8a;
    --light-blue-bg: #f0f9ff;
    --border-blue: #60a5fa;
    --footer-bg: #1e293b;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Reduzido para aproximar dos cantos */
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    margin-left: 0; /* Colado no preenchimento da navbar */
    z-index: 10;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    text-decoration: none; /* Remove sublinhado dos links */
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.ui-lang-selector {
    margin-left: auto;
    z-index: 10;
}

.lang-select-sm {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.85rem;
    cursor: pointer;
}

.model-settings {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.model-settings label {
    font-weight: 600;
    color: var(--text-main);
}

.lang-select-main {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-blue);
    background: white;
    font-size: 1rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* AdSense Sidebars */
.ad-sidebar {
    position: fixed;
    top: 100px;
    width: 160px;
    height: 600px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    color: #94a3b8;
    font-size: 0.75rem;
    z-index: 50;
    border-radius: 8px;
}

.ad-left { left: 20px; }
.ad-right { right: 20px; }

@media (min-width: 1500px) {
    .ad-sidebar { display: flex; }
    .ad-left { left: calc(50% - 550px - 180px); }
    .ad-right { right: calc(50% - 550px - 180px); }
}

/* Hero Section */
.hero {
    background-color: var(--light-blue-bg);
    padding: 80px 20px;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Upload Card */
.upload-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.upload-area {
    border: 2px dashed var(--border-blue);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    background-color: #f8fafc;
    border-color: var(--primary-blue);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.btn-select {
    background: var(--white);
    border: 1px solid var(--border-blue);
    color: var(--primary-blue);
    padding: 8px 24px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 600;
    cursor: pointer;
}

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

.status-msg {
    margin: 15px 0;
    font-weight: 600;
    color: var(--primary-blue);
}

.process-actions {
    margin-top: 20px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Result Section */
.result-section {
    padding: 60px 0;
    background: white;
}

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

.transcription-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    min-height: 200px;
    font-size: 1.1rem;
    white-space: pre-wrap;
    line-height: 1.8;
}

.btn-copy {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Sections General */
.info-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--dark-blue);
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue-bg);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.features-section {
    padding: 80px 0;
    background: var(--light-blue-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
