html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f7fc;
}



.logout {
    color: #ffaaaa;
    text-decoration: none;
}

.sidebar {
    width: 220px;
    background: #003366;
    color: white;
    position: fixed;
    top: 60px;
    left: 0;
    height: 100%;
    padding: 1rem;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 1rem;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

/* CONTEÚDO PRINCIPAL centralizado corretamente */
.content {
    margin-top: 80px; /* Espaço padrão abaixo da topbar */
    margin-left: 220px;
    padding: 2rem;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    padding-left: 3.0rem; /* Novo espaçamento extra à esquerda */
    display: flex;
    flex-direction: column;
    align-items: left;
}

/* Em telas médias, reduz um pouco o espaçamento */
@media screen and (max-width: 992px) {
    .content {
        margin-top: 70px;
        margin-left: 0; /* Remove espaço da sidebar caso ela seja oculta */
        padding: 1.5rem;
    }
}

/* Em telas pequenas, ajusta ainda mais para boa experiência mobile */
@media screen and (max-width: 600px) {
    .content {
        margin-top: 60px;
        padding: 1rem;
        padding-left: 1rem; /* adicionado */
    }
}

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

.user-status {
    text-align: right;
}

.dashboard-widgets {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.widget {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    min-width: 0;
    flex: 1 1 200px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.widget:hover {
    transform: translateY(-2px);
}

.status.premium { color: #0f0; }
.status.vip { color: gold; }

.carteira-info {
    margin-top: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.carteira-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.carteira-tabela th, .carteira-tabela td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

.carteira-tabela th {
    background: #f0f0f0;
}

.recarregar {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 5px solid #003366;
}

.consulta-form {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.consulta-form input {
    padding: 0.5rem;
    width: 200px;
    margin-right: 10px;
}

.consulta-form button {
    padding: 0.5rem 1rem;
    background: #003366;
    color: white;
    border: none;
    border-radius: 4px;
}

.alerta {
    margin-top: 1rem;
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-left: 5px solid #ffc107;
    border-radius: 5px;
}

.cadastro-form {
    margin-top: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.cadastro-form input, .cadastro-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.cadastro-form button {
    background: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
}

.perfil-form {
    max-width: 500px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.perfil-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.perfil-form button {
    background: #003366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.foto-perfil img {
    border-radius: 10px;
    margin-bottom: 1rem;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
    color: #333;
}

.topo {
    background: #0f1e3c;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
}

.topo .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topo img {
    height: 40px;
}

.menu a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
}

.menu .btn-login,
.menu .btn-cadastro {
    background: #3b82f6;
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
}

.hero {
    background: url('../images/bg_banner.jpg') no-repeat center center;
    background-size: cover;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 2.5em;
}

.botao-principal {
    background: #22c55e;
    padding: 10px 20px;
    color: white;
    border-radius: 8px;
    font-size: 1.2em;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.secao {
    padding: 40px 20px;
    background: white;
    margin-bottom: 20px;
}

.planos {
    background: #f9fafb;
}

.tabela-planos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.plano {
    border: 2px solid #ccc;
    padding: 20px;
    width: 280px;
    border-radius: 10px;
    background: white;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

.plano.destaque {
    border-color: #3b82f6;
    background: #eff6ff;
}

.lista-moedas {
    list-style: none;
    padding: 0;
}

.lista-moedas li {
    margin: 10px 0;
}

.tecnico ul {
    list-style-type: "🔒 ";
    padding-left: 20px;
}

.rodape {
    background: #0f1e3c;
    color: white;
    padding: 20px;
    text-align: center;
}
.login-page {
    background: #e0e7ff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.login-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-form button {
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.login-form button:hover {
    background: #2563eb;
}

.erro-msg {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.link-ajuda {
    margin-top: 15px;
    font-size: 14px;
}
.sucesso-msg {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.score-wrapper {
    margin-top: 80px; /* Garante o espaçamento abaixo da topbar */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.score-busca {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.score-busca input[type="text"] {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 320px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    font-size: 16px;
}

.score-busca button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.score-busca button:hover {
    background: #0056b3;
}

.score-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}

.score-tabela {
    flex: 1 1 400px;
}

.score-tabela table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.score-tabela th, .score-tabela td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
    font-size: 15px;
}

.score-tabela th {
    background-color: #f0f0f0;
    font-weight: 600;
}

.score-grafico {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grafico-wrapper {
    width: 100%;
    max-width: 380px;
}

.score-risco {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.score-risco.bom {
    color: #28a745;
}
.score-risco.medio {
    color: #ffc107;
}
.score-risco.ruim {
    color: #dc3545;
}

.linha-tempo {
    margin-top: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.linha-tempo ul {
    padding-left: 20px;
    margin: 0;
}

.linha-tempo li {
    margin-bottom: 10px;
    font-size: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #17a2b8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #14818f;
}

.alerta {
    margin-top: 20px;
    padding: 16px;
    background: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    font-size: 15px;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .score-flex {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .score-busca {
        flex-direction: column;
    }

    .score-busca input[type="text"],
    .score-busca button {
        width: 100%;
        max-width: none;
    }

    .score-tabela table {
        font-size: 14px;
    }

    .grafico-wrapper {
        max-width: 100%;
    }
}

.score-grafico {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-grafico canvas {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
}



/* TOPO fixo no topo da tela */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1001;
    background: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* SIDEBAR abaixo da topbar */
.sidebar {
    position: fixed;
    top: 60px; /* altura da topbar */
    left: 0;
    width: 220px;
    height: calc(100vh - 60px);
    background: #003366;
    color: white;
    padding: 1rem;
    box-shadow: 2px 0 6px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
}

/* LINKS DO MENU */
.sidebar nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 1rem;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
}

.sidebar nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
    padding-left: 14px;
    transition: 0.2s ease-in-out;
    border-left: 3px solid #00c4ff;
}



/* Botão menu mobile (hambúrguer) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
}

/* RESPONSIVIDADE */
@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        color: white;
    }

    
}


/* Formulários */
.cadastro-form,
.consulta-form,
.perfil-form {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 20px;
}

.cadastro-form input,
.perfil-form input,
.cadastro-form textarea,
.consulta-form input {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.cadastro-form input:focus,
.perfil-form input:focus,
.cadastro-form textarea:focus,
.consulta-form input:focus {
    border-color: #007bff;
    outline: none;
}

/* Botões padrão */
button,
.cadastro-form button,
.perfil-form button,
.consulta-form button {
    background: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover,
.cadastro-form button:hover,
.perfil-form button:hover,
.consulta-form button:hover {
    background: #00509e;
}

/* Tabelas */
.carteira-tabela,
.score-tabela table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.carteira-tabela th,
.carteira-tabela td,
.score-tabela th,
.score-tabela td {
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 15px;
    background: white;
}

.carteira-tabela th,
.score-tabela th {
    background-color: #f1f5f9;
    font-weight: bold;
    color: #333;
}

/* Widgets no dashboard */
.widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Rodapé */
.rodape {
    background: #001f3f;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Estilo global para responsividade geral */
@media screen and (max-width: 768px) {
    .dashboard-widgets,
    .tabela-planos {
        flex-direction: column;
        gap: 20px;
    }

    .widget,
    .plano {
        width: 100%;
    }

    .carteira-info,
    .cadastro-form,
    .consulta-form,
    .perfil-form {
        padding: 1rem;
    }

    .carteira-tabela,
    .score-tabela table {
        font-size: 14px;
    }

    
}

.grafico-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    font-weight: bold;
    color: #444;
    font-size: 16px;
}



.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transition: transform 0.3s ease;
    }
}
