/* ===================================
   ESTILOS PROFISSIONAIS - POUPANÇA
   =================================== */

/* Container principal */
.poupanca-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.resultado-poupanca-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===============================
   HEADER PROFISSIONAL
   =============================== */
.resultado-header.professional {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    font-size: 2rem;
}

.header-text {
    flex: 1;
}

.resultado-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.resultado-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.header-badge {
    align-self: flex-start;
}

.status-badge {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid rgba(46, 204, 113, 0.3);
}

/* ===============================
   DASHBOARD DE MÉTRICAS
   =============================== */
.metrics-dashboard {
    margin-bottom: 2rem;
}

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

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color, #3498db);
}

.metric-card.primary::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.metric-card.success::before { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.metric-card.info::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.metric-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 1.5rem;
}

.metric-card.success .metric-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.metric-card.info .metric-icon {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-trend.positive {
    color: #2ecc71;
}

.metric-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #3c7bbad4;
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.metric-subtitle {
    font-size: 0.9rem;
    color: #95a5a6;
    margin: 0;
}

/* ===============================
   SEÇÃO DE GRÁFICOS
   =============================== */
.charts-section {
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .charts-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .chart-card.full-width {
        grid-column: 1 / -1;
    }
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3c7bbad4;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.chart-card.full-width .chart-wrapper {
    height: 400px;
}

.chart-legend {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.75rem;
}

.legend-label {
    flex: 1;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.legend-value {
    font-weight: 600;
    color: #3c7bbad4;
    font-size: 0.9rem;
}

/* ===============================
   TABELA DE DADOS
   =============================== */
.data-table-section {
    margin-bottom: 2rem;
}

.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3c7bbad4;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-controls {
    display: flex;
    gap: 0.5rem;
}

.table-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    color: #7f8c8d;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.table-view {
    display: none;
    padding: 1.5rem;
}

.table-view.active {
    display: block;
}

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

.summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.summary-header h4 {
    margin: 0;
    color: #3c7bbad4;
    font-size: 1.1rem;
}

.year-badge {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.summary-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-metric .metric-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.summary-metric .metric-value {
    font-weight: 600;
    color: #3c7bbad4;
}

.summary-metric .metric-value.positive {
    color: #2ecc71;
}

.summary-metric .metric-value.primary {
    color: #3498db;
}

.data-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #3c7bbad4;
    border-bottom: 2px solid #ecf0f1;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
    color: #3c7bbad4;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.mes-col {
    font-weight: 600;
}

.rendimento-col.positive {
    color: #2ecc71;
    font-weight: 600;
}

.saldo-col.primary {
    color: #3498db;
    font-weight: 600;
}

/* ===============================
   AÇÕES DO USUÁRIO
   =============================== */
.actions-section {
    margin-bottom: 2rem;
}

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

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.action-btn.outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===============================
   ESTADO DE ERRO
   =============================== */
.error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    color: #3c7bbad4;
    margin-bottom: 1rem;
}

.error-message {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-actions .btn {
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.error-actions .btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ===============================
   HEADER PROFISSIONAL - FORMULÁRIO
   =============================== */
.professional-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 0;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text {
    flex: 1;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin: 0 0 0.75rem 0;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
    max-width: 500px;
}

.header-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2ecc71;
}

/* ===============================
   FORMULÁRIO PROFISSIONAL
   =============================== */

/* ===============================
   FORMULÁRIO PROFISSIONAL
   =============================== */
.poupanca-form-section {
    margin-bottom: 2rem;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12);
    border-radius: 20px 20px 0 0;
}

.poupanca-form {
    display: grid;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #3c7bbad4;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.form-group label i {
    color: #3c7bbad4;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #f8f9fa;
    color: #3c7bbad4;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.field-help {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Destaque para campos obrigatórios */
.form-group label::after {
    content: '';
}

.form-group:has(input[required]) label::after {
    content: '*';
    color: #e74c3c;
    margin-left: 0.25rem;
    font-weight: bold;
}

/* Controles de período */
.periodo-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cor-input-fundo);
    border: 2px solid var(--cor-input-borda);
    border-radius: 8px;
    padding: 4px;
    transition: all 0.3s ease;
}

.periodo-input-container:focus-within {
    border-color: var(--cor-link);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.periodo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: var(--cor-botao-secundario-fundo);
    color: var(--cor-botao-secundario-texto);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.periodo-btn:hover:not(:disabled) {
    background: var(--cor-botao-secundario-fundo-hover);
    transform: translateY(-1px);
}

.periodo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.periodo-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 1rem;
    text-align: center;
    color: var(--cor-input-texto);
    font-weight: 600;
    min-width: 60px;
}

.periodo-input:focus {
    outline: none;
}

.periodo-unit {
    color: var(--cor-texto-body);
    font-size: 0.9rem;
    opacity: 0.7;
    margin-right: 4px;
}

.periodo-display {
    margin-top: 8px;
    text-align: center;
}

.periodo-display span {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.periodo-shortcuts {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.periodo-shortcut {
    padding: 6px 12px;
    border: 1px solid var(--cor-input-borda);
    background: var(--cor-input-fundo);
    color: var(--cor-texto-body);
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.periodo-shortcut:hover {
    background: var(--cor-link);
    color: white;
    border-color: var(--cor-link);
}

.periodo-shortcut.active {
    background: var(--cor-link);
    color: white;
    border-color: var(--cor-link);
}

/* ===============================
   BOTÃO DE AÇÃO PRINCIPAL
   =============================== */
.btn-calcular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-calcular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-calcular:hover::before {
    left: 100%;
}

.btn-calcular:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-calcular:active {
    transform: translateY(-1px);
}

/* ===============================
   RESPONSIVIDADE
   =============================== */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .header-stats {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: 400px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .poupanca-container,
    .resultado-poupanca-container {
        padding: 1rem;
    }
    
    .professional-header {
        margin: -1rem -1rem 2rem -1rem;
        border-radius: 0 0 16px 16px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .metric-value {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 1.25rem;
        margin: 0;
    }
    
    .btn-calcular {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===============================
   ANIMAÇÕES
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animações de carregamento */
.form-container {
    animation: fadeInUp 0.8s ease;
}

.metric-card {
    animation: slideInRight 0.6s ease forwards;
}

.metric-card:nth-child(2) { animation-delay: 0.1s; }
.metric-card:nth-child(3) { animation-delay: 0.2s; }
.metric-card:nth-child(4) { animation-delay: 0.3s; }

/* Estados de foco melhorados */
.form-group input:focus + .field-help {
    color: #3498db;
    font-weight: 500;
}

/* Melhoria na acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo escuro básico */
@media (prefers-color-scheme: dark) {
    .form-container {
        background: #ede9e96b;
        color: #ecf0f1;
    }
    
    .form-group input {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }
    
    .metric-card,
    .chart-card,
    .table-container {
        background: #ede9e96b;
        color: #ecf0f1;
    }
}

/* Seção de resultados */
.resultado-section {
    margin-top: 40px;
}

.resultado-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .resultado-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.resultado-card {
    background: var(--cor-card-fundo);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--cor-link);
}

.resultado-card h3 {
    color: var(--cor-texto-titulo);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.resultado-valor {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cor-link);
    margin-bottom: 5px;
}

.resultado-subtexto {
    color: var(--cor-texto-body);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Tabela de evolução */
.evolucao-table {
    background: var(--cor-card-fundo);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.evolucao-table h3 {
    margin-bottom: 20px;
    color: var(--cor-texto-titulo);
}

.evolucao-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.evolucao-table th,
.evolucao-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid var(--cor-input-borda);
}

.evolucao-table th {
    background: var(--cor-input-fundo);
    font-weight: 600;
    color: var(--cor-texto-titulo);
}

.evolucao-table td {
    color: var(--cor-texto-body);
}

.evolucao-table tbody tr:hover {
    background: var(--cor-input-fundo);
}

/* Botões de ação */
.acoes-resultado {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-acao {
    padding: 12px 24px;
    border: 2px solid var(--cor-link);
    background: transparent;
    color: var(--cor-link);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-acao:hover {
    background: var(--cor-link);
    color: white;
    transform: translateY(-2px);
}

.btn-acao.primario {
    background: var(--cor-link);
    color: white;
}

.btn-acao.primario:hover {
    background: var(--cor-link-hover);
}

/* Responsividade */
@media (max-width: 768px) {
    .poupanca-container {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .resultado-valor {
        font-size: 1.6rem;
    }
    
    .periodo-shortcuts {
        justify-content: center;
    }
    
    .acoes-resultado {
        justify-content: center;
    }
    
    .btn-acao {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

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

.resultado-section {
    animation: slideInUp 0.6s ease-out;
}

/* Estados de loading */
.loading .btn-calcular {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.loading .btn-calcular {
    position: relative;
}

.loading .btn-calcular::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z'%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}