/* Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #ff6b35;
}

/* Main Content Container */
.main-content {
    margin-top: 70px; /* Espaço para o cabeçalho fixo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #999;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #e55a2b;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    background-color: #ff6b35;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #e55a2b;
}

/* Mensagens de feedback */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .container {
        padding: 15px;
    }

    .footer-content {
        padding: 0 15px;
    }

    .footer-bottom {
        padding: 0 15px;
    }
}




/* ===== DASHBOARD STYLES ===== */

/* Dashboard Header */
.dashboard-header {
    background-color: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    color: #666;
    font-size: 16px;
}

.user-info {
    text-align: right;
    color: #666;
    font-size: 14px;
}

.user-email {
    display: block;
    margin-top: 5px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.card-icon.saldo {
    background-color: #e3f2fd;
    color: #1976d2;
}

.card-icon.receitas {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.card-icon.despesas {
    background-color: #ffebee;
    color: #d32f2f;
}

.card-icon.economia {
    background-color: #fff3e0;
    color: #f57c00;
}

.card-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.card-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.card-change {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.card-change.positive {
    color: #2e7d32;
}

.card-change.negative {
    color: #d32f2f;
}

.card-change::before {
    content: "";
    margin-right: 4px;
}

.card-change.positive::before {
    content: "↗";
}

.card-change.negative::before {
    content: "↘";
}

/* Dashboard Charts Section */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.chart-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.chart-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border: 2px dashed #dee2e6;
}

/* Pie Chart Styles */
.pie-chart {
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart-legend {
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 8px;
}

.legend-color.alimentacao {
    background-color: #ff6b35;
}

.legend-color.transporte {
    background-color: #4caf50;
}

.legend-color.lazer {
    background-color: #2196f3;
}

.legend-color.casa {
    background-color: #ff9800;
}

.legend-color.saude {
    background-color: #9c27b0;
}

.legend-text {
    font-size: 14px;
    color: #333;
}

.legend-percentage {
    margin-left: auto;
    font-weight: bold;
    color: #666;
}

/* Dashboard Bottom Section */
.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.meta-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.meta-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.meta-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.meta-progress {
    margin-bottom: 15px;
}

.meta-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.meta-current {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.meta-target {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #ff6b35;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.meta-percentage {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Transações Recentes */
.recent-transactions {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.transactions-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.transactions-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.transaction-icon.expense {
    background-color: #ffebee;
    color: #d32f2f;
}

.transaction-icon.income {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.transaction-details {
    flex: 1;
}

.transaction-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.transaction-category {
    font-size: 12px;
    color: #666;
}

.transaction-amount {
    font-size: 14px;
    font-weight: bold;
    text-align: right;
}

.transaction-amount.expense {
    color: #d32f2f;
}

.transaction-amount.income {
    color: #2e7d32;
}

.transaction-date {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 2px;
}

/* Action Button */
.action-button {
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.action-button:hover {
    background-color: #e55a2b;
}

.action-button::before {
    content: "+";
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        text-align: center;
    }

    .user-info {
        text-align: center;
        margin-top: 15px;
    }
}


/* ===== TRANSAÇÕES STYLES ===== */

/* Cabeçalho da página de transações */
.transactions-header {
    background-color: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.transactions-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.transactions-subtitle {
    color: #666;
    font-size: 16px;
}

/* Cards de resumo das transações */
.transactions-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.summary-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-value.receitas {
    color: #2e7d32;
}

.summary-value.despesas {
    color: #d32f2f;
}

.summary-value.saldo {
    color: #1976d2;
}

.summary-count {
    font-size: 12px;
    color: #999;
}

/* Seção de filtros */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.filters-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.filters-title::before {
    content: "🔍";
    margin-right: 8px;
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Lista de transações */
.transactions-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.transactions-list-header {
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.list-count {
    font-size: 14px;
    color: #666;
}

.transactions-table {
    width: 100%;
}

.transaction-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px 80px;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

.transaction-row:hover {
    background-color: #f8f9fa;
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-icon-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon-large {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.transaction-icon-large.expense {
    background-color: #ffebee;
    color: #d32f2f;
}

.transaction-icon-large.income {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.transaction-info {
    display: flex;
    flex-direction: column;
}

.transaction-name-large {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.transaction-category-large {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}

.transaction-category-large::before {
    content: "📁";
    margin-right: 6px;
}

.transaction-amount-large {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

.transaction-amount-large.expense {
    color: #d32f2f;
}

.transaction-amount-large.income {
    color: #2e7d32;
}

.transaction-date-large {
    font-size: 13px;
    color: #999;
    text-align: center;
}

.transaction-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background-color: #e3f2fd;
    color: #1976d2;
}

.action-btn.edit:hover {
    background-color: #bbdefb;
}

.action-btn.delete {
    background-color: #ffebee;
    color: #d32f2f;
}

.action-btn.delete:hover {
    background-color: #ffcdd2;
}

/* Botão de nova transação */
.new-transaction-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.new-transaction-btn:hover {
    background-color: #e55a2b;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

/* Modal para nova transação */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.radio-option label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover {
    background-color: #f8f9fa;
    border-color: #ff6b35;
}

.pagination-btn.active {
    background-color: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estados vazios */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.empty-state-description {
    font-size: 14px;
    margin-bottom: 25px;
}

/* Responsive para transações */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .transaction-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 20px;
    }

    .transaction-actions {
        justify-content: flex-start;
    }

    .transactions-summary {
        grid-template-columns: 1fr;
    }

    .new-transaction-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ===== ANÁLISES STYLES ===== */

/* Cabeçalho da página de análises */
.analyses-header {
    background-color: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.analyses-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.analyses-subtitle {
    color: #666;
    font-size: 16px;
}

/* Navegação de abas */
.analyses-tabs {
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    gap: 8px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button.active {
    background-color: #ff6b35;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.tab-button:hover:not(.active) {
    background-color: #f8f9fa;
    color: #333;
}

/* Cards de insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.insight-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.insight-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.insight-icon.economia {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.insight-icon.gastos {
    background-color: #fff3e0;
    color: #f57c00;
}

.insight-icon.meta {
    background-color: #e3f2fd;
    color: #1976d2;
}

.insight-icon.receita {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.insight-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.insight-subtitle {
    font-size: 12px;
    color: #666;
}

.insight-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.insight-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Seção de gráficos de análise */
.analysis-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.analysis-chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.analysis-chart-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.analysis-chart-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.chart-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-control-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.chart-control-btn.active {
    background-color: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.chart-control-btn:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #ff6b35;
}

/* Gráfico de comparação mensal */
.monthly-comparison-chart {
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border: 2px dashed #dee2e6;
    position: relative;
}

/* Gráfico de distribuição por categoria */
.category-distribution {
    height: 350px;
    display: flex;
    flex-direction: column;
}

.category-chart {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border: 2px dashed #dee2e6;
    margin-bottom: 20px;
}

.category-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.category-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 10px;
}

.category-legend-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.category-legend-name {
    font-size: 14px;
    color: #333;
}

.category-legend-amount {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

/* Seção de gastos semanais */
.weekly-expenses {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.weekly-expenses-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.weekly-expenses-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.weekly-chart {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border: 2px dashed #dee2e6;
}

/* Seção de visão de orçamentos */
.budget-overview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.budget-overview-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.budget-overview-title::before {
    content: "💰";
    margin-right: 10px;
}

.budget-overview-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.budget-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.budget-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.budget-item-values {
    font-size: 14px;
    color: #666;
}

.budget-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.budget-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.budget-progress-fill.alimentacao {
    background-color: #ff6b35;
}

.budget-progress-fill.transporte {
    background-color: #ff9800;
}

.budget-progress-fill.lazer {
    background-color: #2196f3;
}

.budget-progress-fill.casa {
    background-color: #4caf50;
}

.budget-progress-fill.saude {
    background-color: #9c27b0;
}

/* Filtros de período */
.period-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.period-filters-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.period-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.period-btn.active {
    background-color: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.period-btn:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #ff6b35;
}

/* Exportar relatórios */
.export-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.export-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.export-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.export-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-btn {
    padding: 12px 24px;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn:hover {
    background-color: #ff6b35;
    color: white;
}

.export-btn.primary {
    background-color: #ff6b35;
    color: white;
}

.export-btn.primary:hover {
    background-color: #e55a2b;
}

/* Responsive para análises */
@media (max-width: 768px) {
    .analyses-tabs {
        flex-direction: column;
    }

    .analysis-charts {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .export-buttons {
        flex-direction: column;
        align-items: center;
    }

    .export-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .period-buttons {
        justify-content: center;
    }

    .chart-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

