.logo{
    width: 90px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}
table{

    width:100%;

    max-width:1000px;

    margin: 30px auto;

    border-collapse: collapse;

    background-color: white;

    overflow: hidden;

    backdrop-filter: blur(8px);

    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);

    border-radius: 12px;

}

canvas{
    max-width: 100%;
}

th{

    background: linear-gradient(135deg, #1f3c68, #29528a);

    color: white;

    padding: 14px;

    font-size: 16px;

    font-size: 14px;

}

td{

    padding: 12px;

    text-align: center;

    border-bottom: 1px solid #e6edf5;

    font-size: 13px;

}

tr:nth-child(even){
    background-color: #f2f2f2;
}

a{
    text-decoration: none;
}
.btn-editar{

    background-color: #3498db;

    color: white;

    padding: 8px 12px;

    border-radius: 5px;

    text-decoration: none;

    margin-right: 5px;

    display: inline-flex;

    align-items: center;

    gap: 6px;
}

.btn-excluir{

    background-color: #e74c3c;

    color: white;

    padding: 8px 14px;

    border-radius: 8px;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    gap: 6px;

}

.btn-excluir:hover{

    background-color: #c0392b;
}

.btn-editar{

    background-color: #3498db;

    color: white;

    padding: 8px 14px;

    border-radius: 8px;

    text-decoration: none;

}
.btn-editar:hover{

    background-color: #2980b9;

}


.btn-editar,
.btn-excluir{

    display: inline-block;

    margin: 2px;

}

.btn-editar,
.btn-excluir{

    color: white;

    padding: 8px 14px;

    border-radius: 8px;

    text-decoration: none;

    transition: 0.3s;

    font-weight: bold;

}

.form-container{

    width: 400px;

    margin: 50px auto;

    background-color: white;

    padding: 30px;

    border-radius: 10px;

    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}

form{

    display: flex;

    flex-direction: column;
}

label{

    margin-top: 10px;

    font-weight: bold;
}

input,
select{

    padding: 10px;

    margin-top: 5px;

    border-radius: 5px;

    border: 1px solid #ccc;
}

button{

    margin-top: 20px;

    padding: 12px;

    background-color: #1f3c68;

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;
}

button:hover{

    background-color: #29528a;
}
.mensagem-sucesso{

    background-color: #2ecc71;

    color: white;

    padding: 15px;

    width: 400px;

    margin: 20px auto;

    border-radius: 5px;

    text-align: center;

    font-weight: bold;
}
.toast{

    position: fixed;

    top: 20px;

    right: 20px;

    background-color: #2ecc71;

    color: white;

    padding: 15px 25px;

    border-radius: 8px;

    font-weight: bold;

    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);

    animation: desaparecer 4s forwards;
}
@keyframes desaparecer{

    0%{

        opacity: 1;
    }

    80%{

        opacity: 1;
    }

    100%{

        opacity: 0;

        visibility: hidden;
    }
}
.saldo-card{

    color: white;

    width: 180px;

    padding: 15px;

    border-radius: 15px;

    text-align: center;

    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);

    transition: all 0.3s ease;

    min-height: 130px;

    padding: 18px;

    position: relative;

    overflow: hidden;

    isolation: isolate;

    border: 1px solid rgba(255,255,255,0.08);


}
.saldo-card h1{

    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;

    margin: 8px 0;


}

.saldo-card h2{
    font-size: 24px;
    line-height: 1.2;
    margin: 10px 0 0 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.saldo-card::before{
    content: "";

    position: absolute;

    width: 120px;

    height: 120px;

    background: rgba(255,255,255,0.08);

    border-radius: 50%;

    top: -30px;

    right: -30px;
}


.titulo-saldo{

    font-size: 16px;

    margin-bottom: 5px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    opacity: 0.9;
    font-weight: 600;

}

.header{

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 50px;

    padding: 20px 40px;

    margin-bottom: 30px;

}

.positivo{

    background: linear-gradient(135deg, #11998e, #38ef7d);

}

.negativo{

    background: linear-gradient(135deg, #cb2d3e, #ef473a);

}
.logo-titulo{

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 22px;

    color: #111827;

    margin: 0;

    margin-top: 30px;

    justify-content: center;

    text-align: center;
    
    flex-wrap: wrap;

}

.logo-titulo h1{
    font-size: 18px;

    line-height: 1.2;

    color: #111827;

    margin: 0;

    font-weight: 800;
    letter-spacing: -1px;
}

tr:hover{

    background-color: #eaf3ff;

    transition: all 0.3s ease;

    transform: scale(1.003);

    cursor: pointer;

}

.valor-receita{

    color: #27ae60;

    font-weight: bold;

}

.badge-receita{

    background-color: #d4f5e2;

    color: #27ae60;

    padding: 6px 12px;

    border-radius: 20px;

    font-weight: bold;

}

.valor-despesa{

    color: #f76d5e;

    font-weight: bold;

}
.badge-despesa{

    background-color: #fde2e2;

    color: #e74c3c;

    padding: 6px 12px;

    border-radius: 20px;

    font-weight: bold;

}

.nova-transacao{

    background: linear-gradient(135deg, #3b629c, #5b94eb);

    color: white;

    padding: 12px 20px;

    border-radius: 14px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;

    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);

    display: inline-flex;

    align-items: center;

    gap: 6px;

    min-height: 48px;

    width: 180px;

    justify-content: center;

    font-size: 15px;

    backdrop-filter: blur(6px);

    border: 1px solid rgba(255,255,255,0.1);

    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);

}

.nova-transacao:hover{

    transform: translateY(-3px) scale(1.02);

    box-shadow: 0px 6px 14px rgba(0,0,0,0.2);

}

.toast{

    position: fixed;

    top: 20px;

    right: 20px;

    background-color: #27ae60;

    color: white;

    padding: 15px 25px;

    border-radius: 10px;

    font-weight: bold;

    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);

    animation: aparecer 0.5s ease;

}

@keyframes aparecer{

    from{

        opacity: 0;

        transform: translateX(50px);

    }

    to{

        opacity: 1;

        transform: translateX(0);

    }

}

@media (max-width: 768px){

    .header{

        flex-direction: column;

        gap: 20px;

    }

    table{

        width: 100%;

        font-size: 14px;

    }

    .saldo-card{

        width: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;

    }

}

.toast-excluir{

    background-color: #e74c3c;

}

.dashboard-cards{

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    margin-bottom: 20px;

}

.dashboard-cards .saldo-card{

    flex: 0 0 220px;

    min-width: 180px;

}

.receita-card{

    background: linear-gradient(135deg, #11998e, #38ef7d);

}

.despesa-card{

    background: linear-gradient(135deg, #cb2d3e, #ef473a);

}

.quantidade-card{

    background: linear-gradient(135deg, #396afc, #2948ff);

}

.dashboard-cards .saldo-card{

    transition: all 0.3s ease;

    cursor: pointer;

}

.dashboard-cards .saldo-card:hover{

    transform: translateY(-4px) scale(1.02);

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

}

.logo{

    width: 60px;

}

.nova-transacao{

    height: fit-content;

}

.graficos-grid{
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.grafico-barra{
    width: 100%;
    max-width: 420px;
    max-width: 100%;
    
}  

#graficoFinanceiro{
    max-width: 320px;
    max-height: 320px;
}

.badge-categoria{

    background: #ececec;

    color: #333;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;

}

.categoria-ml{

    background: #ffe600;

    color: #333;

}

.categoria-shopee{

    background: #ff5722;

    color: white;

}

.categoria-saude{

    background: #ff4d6d;

    color: white;

}

.categoria-moradia{

    background: #4dabf7;

    color: white;

}

.filtros{

    margin: 30px 0;

    display: flex;

    justify-content: center;

    margin-top: 10px;

    margin-bottom: 10px;

}

.filtros form{

    display: flex;

    gap: 15px;

    flex-wrap: wrap;

    justify-content: center;

    align-items: center;

    background: rgba(255,255,255,0.6);
    padding: 15px;
    border-radius: 18px;
    backdrop-filter: blur(6px);

}

.filtros select,
.filtros input{

    padding: 10px;

    border-radius: 10px;

    border: 1px solid #ccc;

    font-size: 14px;

    background: white;

    box-shadow: 0 2px 6px rgba(0,0,0,0.05);

    outline: none;

    transition: all 0.3s ease;

}

.filtros select:focus,
.filtros input:focus{
    border-color: #396afc;
    box-shadow: 0 0 0 3px rgba(57,106,252,0.15);
}

.btn-filtrar{

    background: #2948ff;

    color: white;

    border: none;

    padding: 10px 20px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: bold;

    transition: all 0.3s ease;

}

.btn-filtrar:hover{
    transform: translateY(-2px);
}

.filtros input{

    padding: 10px;

    border-radius: 10px;

    border: 1px solid #ccc;

    font-size: 14px;

    width: 220px;

}

.btn-dark{

    display: flex;

    align-items: center;

    justify-content: center;

    background: #111827;

    color: white;

    border: none;

    padding: 12px 20px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: bold;

    min-height: 48px;

    transition: all 0.3s ease;

    width: 140px;

    font-size: 14px;

    padding: 10px 18px;

    backdrop-filter: blur(6px);

    border: 1px solid rgba(255,255,255,0.1);

    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);

}

.btn-dark:hover{

    background: #1f2937;

    transform: translateY(-3px) scale(1.02);

    box-shadow: 0 8px 15px rgba(0,0,0,0.2);

}

.dark-mode{

    background: #111827;

    color: white;

}

.acoes-header{

    display: flex;

    flex-direction: row;

    gap: 15px;

    justify-content: flex-start;

    align-items: stretch;

}

.cards-resumo{

    display: flex;

    flex-direction: row;

    gap: 15px;

    flex-wrap: wrap;

    margin-top: 25px;

    margin-bottom: 25px;

    align-items: stretch;

    justify-content: flex-start;

}

.card-financeiro{
    min-width: 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;

    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-height: 90px;
    border: 1px solid rgba(0,0,0,0.03);
    
}

.card-financeiro:hover{

    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-financeiro h3{
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;

    margin-bottom: 12px;

    color: #1f2937;
}

.card-financeiro p{

    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;

    font-weight: bold;

    color: #111827;

    margin: 0;
}

.dark-mode .card-financeiro{

    background: #1e293b;

    color: white;

}

.container-principal{
    display: flex;
    gap: 30px;
    padding: 20px;

    align-items: flex-start;
    justify-content: center;

    max-width: 1400px;
    margin: 0 auto;

    min-height: 100vh;

    position: relative;
    z-index: 1;
}

.sidebar{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
    width: 220px;
    position: sticky;
    top: 20px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-start;
}

.conteudo{
    flex: 1;
    min-width: 0;

    max-width: 900px;
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 25px;

    padding: 20px;

    background: rgba(255,255,255,0.4);

    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.topo-direito{
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    position: sticky;
    top: 20px;
    padding-left: 10px;
    gap: 25px;
    justify-content: flex-start;
}

.sidebar .dashboard-cards{
    flex-direction: column;
}

body{
    background: linear-gradient(to bottom, #f4f7fb, #edf2f7);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    padding: 10px;
    background-attachment: fixed;
}

.grafico-container{
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.03);
    background: rgba(255,255,255,0.9);
    
}

.grafico-container:hover{
    transform: translateY(-3px);
}

.tabela-container{
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

body,
.card-financeiro,
table,
.grafico-container,
.tabela-container{
    transition: all 0.3s ease;
}

.tabela-container{
    overflow-x: auto;
}

::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-track{
    background: #edf2f7;
}

::-webkit-scrollbar-thumb{
    background: #cbd5e1;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover{
    background: #94a3b8;
}

@keyframes fadeUp{

    from{
        opacity: 0;
        transform: translateY(15px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

.saldo-card,
.card-financeiro,
.grafico-container,
.tabela-container{
    animation: fadeUp 0.5s ease;
}

@media(max-width: 1200px){

    .container-principal{
        flex-direction: column;
    }

    .sidebar,
    .topo-direito{
        width: 100%;
        position: relative;
    }

}

.sidebar .saldo-card:nth-child(1){
    animation-delay: 0.1s;
}

.sidebar .saldo-card:nth-child(2){
    animation-delay: 0.2s;
}

.sidebar .saldo-card:nth-child(3){
    animation-delay: 0.3s;
}

.sidebar .saldo-card:nth-child(4){
    animation-delay: 0.4s;
}

.cards-resumo .card-financeiro:nth-child(1){
    animation-delay: 0.2s;
}

.cards-resumo .card-financeiro:nth-child(2){
    animation-delay: 0.3s;
}

.cards-resumo .card-financeiro:nth-child(3){
    animation-delay: 0.4s;
}

.grafico-container{
    width: 100%;
}
.btn-dark:hover,
.nova-transacao:hover{
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.dark-mode .conteudo{
    background: rgba(15,23,42,0.75);
}

.dark-mode .tabela-container,
.dark-mode .grafico-container,
.dark-mode .card-financeiro,
.dark-mode table{

    background: #1e293b;

    color: white;

}

.dark-mode th{

    background: linear-gradient(135deg, #111827, #1e293b);

}

.dark-mode td{

    border-bottom: 1px solid #334155;

}

.dark-mode tr:nth-child(even){

    background-color: #162033;

}

.dark-mode tr:hover{

    background-color: #22304a;

}

.dark-mode .filtros form{

    background: rgba(15,23,42,0.7);

}

.dark-mode input,
.dark-mode select{

    background: #0f172a;

    color: white;

    border: 1px solid #334155;

}

.dark-mode .logo-titulo h1{

    color: white;

}

.dark-mode .grafico-container{

    background: #0f172a;

    border: 1px solid #1e293b;

    box-shadow: 0 4px 20px rgba(0,0,0,0.35);

}


 




