/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #333333;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #444444;
    --hover-color: #4a4a4a;
    --accent-green: #4CAF50;
    --accent-blue: #2196F3;
    --accent-orange: #FF9800;
    --accent-purple: #9C27B0;
    --accent-red: #f44336;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: -2px;
}

.redirect-btn {
    background: linear-gradient(135deg, var(--accent-blue), #1976D2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #1976D2, #0d47a1);
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    padding: 30px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(76, 175, 80, 0.1));
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.page-title h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title h1 i {
    color: var(--accent-blue);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Principal */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Seções */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-blue);
}

.input-section,
.results-section {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Inputs */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-group label i {
    color: var(--accent-blue);
    width: 20px;
}

.input-group input[type="text"],
.input-group input[type="number"] {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.input-group input[type="text"]:focus,
.input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    padding-left: 30px;
}

/* Avisos de Taxa */
.rate-warning {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--accent-orange);
    border-radius: var(--border-radius);
    color: var(--accent-orange);
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
}

.rate-warning.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.sync-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: var(--border-radius);
    color: var(--accent-blue);
    font-size: 0.85rem;
    line-height: 1.4;
    display: none;
}

.sync-info.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Aviso Jurídico */
.legal-warning {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

/* Taxa Efetiva */
.effective-rate {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: rgba(156, 39, 176, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: var(--border-radius);
    color: var(--accent-purple);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Dicas Rápidas */
.input-tips {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
}

.input-tips h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

.input-tips ul {
    list-style: none;
    padding-left: 0;
}

.input-tips li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.input-tips li:last-child {
    border-bottom: none;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    padding-left: 30px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-option input[type="radio"] {
    accent-color: var(--accent-blue);
    width: 18px;
    height: 18px;
}

.radio-option label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Cache Info */
.cache-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: var(--border-radius);
    margin: 25px 0;
    font-size: 0.9rem;
}

.cache-info i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

/* Botão Calcular */
.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-blue), #1976D2);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #1976D2, #0d47a1);
}

/* Resultados */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

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

.result-card {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.result-card.highlight {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(76, 175, 80, 0.15));
    border-color: var(--accent-blue);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.result-header i {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.result-header h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-green);
    margin: 5px 0;
    line-height: 1.2;
}

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

/* Summary */
.investment-summary {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.investment-summary h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.investment-summary h3 i {
    color: var(--accent-orange);
}

.summary-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.summary-content span {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--accent-green);
    font-style: italic;
}

/* Seção do Gráfico */
.graph-section {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

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

.graph-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 8px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.control-btn:hover {
    background-color: var(--hover-color);
}

.control-btn:nth-child(1):hover {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.control-btn:nth-child(2):hover {
    background-color: rgba(156, 39, 176, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Controles do Gráfico (Checkboxes) */
.graph-controls-checkbox {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.graph-control-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background-color: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: var(--transition);
}

.graph-control-checkbox:hover {
    background-color: var(--hover-color);
}

.graph-control-checkbox input[type="checkbox"] {
    display: none;
}

.graph-control-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.graph-control-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.graph-control-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Container do Gráfico */
.graph-container {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
}

/* Legenda do Gráfico */
.graph-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-tertiary);
    border: 1px solid transparent;
}

.legend-item:hover {
    background-color: var(--hover-color);
}

.legend-item.active {
    background-color: rgba(33, 150, 243, 0.1);
    border-color: var(--accent-blue);
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-value {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: 5px;
}

/* Canvas do Gráfico */
.graph-wrapper {
    position: relative;
    height: 450px;
    margin-bottom: 20px;
    overflow: hidden;
}

#investmentChart {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    display: block;
}

/* Tooltip Corrigido */
.tooltip {
    position: fixed;
    background-color: rgba(26, 26, 26, 0.98);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    color: var(--text-primary);
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    max-width: 300px;
    backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--border-color);
}

.tooltip-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.tooltip-header strong {
    color: var(--accent-blue);
    font-size: 1rem;
    display: block;
}

.tooltip-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.tooltip-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.tooltip-label {
    color: var(--text-secondary);
    flex-grow: 1;
    font-size: 0.9rem;
}

.tooltip-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    flex-shrink: 0;
}

.tooltip-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

/* Graph Info */
.graph-info {
    padding: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Tabela de Crescimento */
.table-section {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

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

.table-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.pagination-info span {
    color: var(--text-primary);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.pagination-btn {
    padding: 8px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--hover-color);
    border-color: var(--accent-blue);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

#growthTable {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
}

#growthTable thead {
    background-color: var(--bg-tertiary);
    position: sticky;
    top: 0;
}

#growthTable th {
    padding: 15px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

#growthTable td {
    padding: 12px 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

#growthTable tbody tr:hover {
    background-color: var(--hover-color);
}

#growthTable td:nth-child(3),
#growthTable td:nth-child(5),
#growthTable td:nth-child(6) {
    color: var(--text-primary);
    font-weight: 500;
}

#growthTable td:nth-child(4) {
    color: var(--accent-green);
    font-weight: 500;
}

#growthTable td:nth-child(7) {
    color: var(--accent-orange);
    font-weight: 500;
}

.table-summary {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.summary-item i {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-top: 2px;
}

.summary-item h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.summary-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.summary-item span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Seção Educacional */
.educational-section {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.educational-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.educational-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .educational-main {
        grid-template-columns: 1fr;
    }
}

.educational-card {
    background-color: var(--bg-tertiary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.educational-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.educational-card h3 i {
    color: var(--accent-blue);
}

.educational-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.educational-card strong {
    color: var(--text-primary);
}

.educational-formula {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(33, 150, 243, 0.1));
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-purple);
}

.educational-formula h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.educational-formula h4 i {
    color: var(--accent-purple);
}

.formula-box {
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.formula-box p {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.formula-explanation {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.formula-explanation p {
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

/* Exemplos Práticos */
.educational-examples {
    background-color: var(--bg-tertiary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.educational-examples h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.educational-examples h3 i {
    color: var(--accent-green);
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.example-card {
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.example-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.example-card h4 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.example-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.example-card ul {
    list-style: none;
    padding-left: 0;
}

.example-card li {
    color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.example-card li:last-child {
    border-bottom: none;
    color: var(--accent-green);
    font-weight: 600;
}

/* Dicas */
.educational-tips {
    background-color: var(--bg-tertiary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.educational-tips h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.educational-tips h3 i {
    color: var(--accent-orange);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.tip-card {
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-blue);
}

.tip-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.tip-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Comparação */
.educational-comparison {
    background-color: var(--bg-tertiary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.educational-comparison h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.educational-comparison h3 i {
    color: var(--accent-purple);
}

.comparison-table {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    background-color: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
    padding: 12px 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: var(--hover-color);
}

.comparison-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-table td:nth-child(2) {
    color: #f44336; /* Vermelho para juros simples */
}

.comparison-table td:nth-child(3) {
    color: var(--accent-green); /* Verde para juros compostos */
}

/* Final */
.educational-final {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-green);
}

.final-card {
    text-align: center;
}

.final-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.final-card h3 i {
    color: var(--accent-green);
}

.final-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.highlight-text {
    color: var(--accent-green) !important;
    font-weight: 600;
    font-size: 1.2rem !important;
    font-style: italic;
    margin-top: 20px;
}

/* Seções Colapsáveis */
.collapsible-section {
    margin-bottom: 20px;
}

.collapsible-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.collapsible-btn:hover {
    background-color: var(--hover-color);
    border-color: var(--accent-blue);
}

.collapsible-btn i {
    transition: transform 0.3s ease;
}

.collapsible-btn.active i {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.collapsible-content.expanded {
    max-height: 5000px;
}

/* FAQ */
.faq-section {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.faq-item {
    background-color: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent-blue);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3:before {
    content: 'Q:';
    color: var(--accent-blue);
    font-weight: bold;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.footer-note {
    font-size: 0.85rem !important;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 10px;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--accent-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    text-align: left;
}

.footer-btn:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.footer-btn:nth-child(2):hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.footer-btn:nth-child(3):hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 0.8rem !important;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 10px;
    max-width: 300px;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .redirect-btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-title h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .input-section,
    .results-section,
    .graph-section,
    .table-section,
    .educational-section,
    .faq-section {
        padding: 20px;
    }
    
    .graph-header,
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .graph-controls,
    .table-controls {
        justify-content: center;
    }
    
    .graph-wrapper {
        height: 350px;
    }
    
    .graph-controls-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-right {
        text-align: center;
        width: 100%;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-btn {
        justify-content: center;
    }
    
    .footer-info {
        width: 100%;
    }
    
    .disclaimer {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .graph-legend {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .legend-item {
        justify-content: flex-start;
    }
    
    .graph-wrapper {
        height: 300px;
    }
    
    .example-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease;
}

/* Estados de loading */
.calculating {
    opacity: 0.7;
    pointer-events: none;
}

.calculating::after {
    content: 'Calculando...';
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--accent-blue);
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}