/* style.css */

/* Definição de variáveis de cores e espaçamento */
:root {
    --primary-color: #2ecc71;
    --primary-dark-color: #27ae60;
    --background-color-light: #F7F7F7;
    --border-color: #EBEBEB;
    --text-color-muted: #767676;
    --text-color-primary: #222222;
    --section-padding-desktop: 4rem;
    --section-padding-mobile: 2.5rem;
    --navbar-height-desktop: 70px;
    --navbar-height-mobile: 60px;
}

/* Estilos globais */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color-light);
    color: var(--text-color-primary);
    margin: 0;
}

/* Centraliza o conteúdo das páginas de autenticação */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


/* Container principal para as páginas de autenticação */
.auth-container {
    background-color: white;
    padding: var(--section-padding-mobile);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 450px;
    box-sizing: border-box;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark-color);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
}

/* Estilos do formulário */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color-muted);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-auth {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-auth:hover {
    background-color: var(--primary-dark-color);
}

.link-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.link-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.link-text a:hover {
    text-decoration: underline;
}

/* Media queries para telas maiores */
@media (min-width: 768px) {
    .auth-container {
        padding: var(--section-padding-desktop);
        margin-top: 4rem; /* Adiciona um espaço no topo em telas maiores */
        margin-bottom: 4rem; /* Adiciona um espaço na parte inferior em telas maiores */
    }
}

/* Estilos para Gráficos (Chart.js) */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .chart-container {
        height: 400px; /* Aumenta a altura para uma melhor visualização em telas maiores */
    }
}

/* Estilos para o Menu de Navegação */
.navbar {
    background-color: white;
    color: var(--text-color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.logo-container .logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark-color);
    text-decoration: none;
}

/* Estilos do Botão Hambúrguer (apenas em mobile) */
.hamburger-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
}

.hamburger-icon {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color-primary);
    transition: all 0.3s ease-in-out;
}

/* Estilos do Menu Links (Mobile-First - por padrão, fica oculto) */
.menu-links-container {
    position: absolute;
    top: 60px; /* Alinhado abaixo da navbar */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.05);
    display: none; /* Oculto por padrão */
    padding: 1rem 0;
    z-index: 10;
}

.menu-links-container.menu-active {
    display: block;
}

.menu-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links-list li {
    padding: 0.5rem 1.5rem;
}

.menu-links-list li a {
    text-decoration: none;
    color: var(--text-color-primary);
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.menu-links-list li a:hover {
    background-color: var(--background-color-light);
    color: var(--primary-dark-color);
}

.nav-logout {
    color: #e74c3c !important; /* Cor de destaque para o botão de sair */
}

/* Estilos para Desktop */
@media (min-width: 768px) {
    .navbar {
        height: var(--navbar-height-desktop);
        padding: 0.5rem var(--section-padding-desktop);
    }
    .hamburger-btn {
        display: none; /* Oculta o botão hambúrguer */
    }
    .menu-links-container {
        display: flex; /* Exibe o menu na horizontal */
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
        margin-left: auto;
    }
    .menu-links-list {
        display: flex;
        align-items: center;
    }
    .menu-links-list li {
        padding: 0;
        margin-left: 1.5rem;
    }
    .menu-links-list li a {
        padding: 0.5rem;
    }
}

/* ================================== */
/* ESTILOS DOS CARDS         */
/* ================================== */

/* Container que alinha os cards */
.cards-container {
    display: flex;
    gap: 1.5rem; /* Espaçamento entre os cards */
    margin-bottom: 2.5rem; /* Espaço entre os cards e o gráfico */
    flex-wrap: wrap; /* Permite que os cards quebrem a linha em telas menores */
}

/* Estilo de cada card individual */
.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex: 1; /* Faz com que os cards ocupem o espaço disponível igualmente */
    min-width: 220px; /* Largura mínima para cada card antes de quebrar a linha */
    border-left: 4px solid var(--primary-color); /* Adiciona uma borda colorida */
}

.card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color-muted);
}

.card .card-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.card .card-description {
    font-size: 0.85rem;
    color: var(--text-color-muted);
}

/* Cores para valores positivos e negativos */
.card .positive {
    color: var(--primary-dark-color);
}

.card .negative {
    color: #e74c3c;
}

/* Ajusta a borda do card de despesas para vermelho */
.card:last-child {
    border-left-color: #e74c3c;
}

/* Ajustes para telas de celular */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column; /* Empilha os cards verticalmente */
        gap: 1rem;
    }
}

/* budget-styles.css - Estilos específicos para a página de orçamentos */

/* Melhorias na barra de progresso */
.progress {
    height: 8px;
    min-width: 100px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Ajustes nas tabelas */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

.table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

/* Botões de ação */
.btn-group .btn {
    margin: 0 2px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Cards de resumo */
.card-body .fs-3 {
    font-size: 2rem !important;
}

/* Alertas customizados */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-success {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Modais */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    background-color: #f8f9fa;
}

/* Lista de gastos órfãos */
.list-group-flush .list-group-item:first-child {
    border-top: none;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none;
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

/* Melhorias nos cards de análise */
.border-start {
    border-left-width: 4px !important;
}

/* Responsividade para gráficos */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Estados hover para cards */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Melhorias nos inputs */
.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Badges customizados para status */
.badge-success {
    background-color: #198754;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
}

/* Animações suaves */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Melhorias na navegação */
.navbar-nav .nav-link.active {
    font-weight: 600;
    color: #0d6efd !important;
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Tooltips customizados */
.tooltip-inner {
    background-color: #212529;
    color: #fff;
    border-radius: 6px;
}

/* Melhorias nos botões */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Estados vazios */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.3;
}

.empty-state h5 {
    margin-top: 1rem;
    color: #6c757d;
}

.empty-state p {
    color: #adb5bd;
    font-size: 0.9rem;
}


