/*
|=============================================================================
| app.css — Estilos globais do Bolão Super Chute
|=============================================================================
|
| ORDEM DO ARQUIVO:
|   1. Variáveis CSS (design tokens)
|   2. Reset
|   3. Layout principal (sidebar, topbar, conteúdo)
|   4. Componentes compartilhados:
|       - Cards (bsc-card, card-dash-titulo)
|       - Saldo disponível
|       - Formulários (labels, inputs)
|       - Botões (primário, secundário)
|       - Alertas (erro, sucesso, info)
|       - Badges genéricos
|       - Estado vazio (tabelas, cards sem conteúdo)
|   5. Animações
|   6. Responsividade
|
| Para adicionar novos componentes: siga a mesma nomenclatura .bsc-*
| e adicione AQUI, não nas views individuais.
|=============================================================================
*/

/* =============================================================================
   1. VARIÁVEIS DE DESIGN
   ============================================================================= */
:root {
    --azul-escuro:  #0a1628;
    --azul-medio:   #1a3a6b;
    --azul-claro:   #2196f3;
    --dourado:      #f5a623;
    --branco:       #ffffff;
    --verde:        #4caf50;
    --vermelho:     #ff6b7a;
    --pix-verde:    #32bcad;
    --sucesso:      #4caf50;
    --erro:         #ff6b7a;
    --sidebar-w:    260px;
    --header-h:     60px;
    --radius-card:  16px;
    --radius-input: 10px;
    --radius-sm:    8px;

    --texto-branco-forte: rgba(255, 255, 255, 0.95);
    --texto-branco-medio: rgba(255, 255, 255, 0.60);    
    --texto-branco-fraco: rgba(255, 255, 255, 0.35);
}

/* =============================================================================
   2. RESET
   ============================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background:     var(--azul-escuro);
    color:          var(--branco);
    min-height: 100vh;
}

/* =============================================================================
   3. LAYOUT — SIDEBAR
   ============================================================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--azul-escuro);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar        { width: 4px; }
.sidebar::-webkit-scrollbar-track  { background: transparent; }
.sidebar::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.sidebar-logo i { font-size: 24px; }

/* Usuário */
.sidebar-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-usuario-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--azul-medio);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-usuario-avatar img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-usuario-info  { display: flex; flex-direction: column; overflow: hidden; }

.sidebar-usuario-nome {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-usuario-tipo {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-vip {
    background: var(--dourado);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

/* Navegação */
.sidebar-nav { padding: 10px 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.nav-item:hover  { color: #fff; background: rgba(255,255,255,0.04); }
.nav-item.active { color: var(--azul-claro); border-left-color: var(--azul-claro); background: rgba(33,150,243,0.09); }

/* Grupo com submenu */
.nav-grupo-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    user-select: none;
}
.nav-grupo-titulo:hover          { color: #fff; background: rgba(255,255,255,0.04); }
.nav-grupo-titulo span           { display: flex; align-items: center; gap: 10px; }
.nav-grupo-titulo .seta          { font-size: 11px; transition: transform 0.2s; }
.nav-grupo-titulo[aria-expanded="true"] .seta { transform: rotate(180deg); }

/* Subitens */
.nav-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px 7px 40px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.nav-subitem:hover  { color: #fff; background: rgba(255,255,255,0.04); }
.nav-subitem.active { color: var(--azul-claro); border-left-color: var(--azul-claro); background: rgba(33,150,243,0.09); }

/* Separador admin */
.nav-separador {
    padding: 14px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dourado);
    opacity: 0.7;
}

/* Rodapé */
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06); }

.btn-sair {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-sair:hover { color: var(--vermelho); }

/* =============================================================================
   3. LAYOUT — TOPBAR
   ============================================================================= */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--header-h);
    background: var(--azul-escuro);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999;
}

.topbar-titulo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.topbar-direita { display: flex; align-items: center; gap: 16px; }
.topbar-saldo   { display: flex; gap: 12px; }
.topbar-depositar { display: flex; gap: 12px; } 

.saldo-item { display: flex; flex-direction: column; align-items: flex-end; }
.saldo-item span:first-child { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; }
.saldo-item span:last-child  { font-size: 13px; font-weight: 700; color: #fff; }
.saldo-real span:last-child  { color: var(--verde); }
.saldo-bonus span:last-child { color: var(--dourado); }

.btn-toggle-sidebar { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: 0; }

/* =============================================================================
   3. LAYOUT — CONTEÚDO PRINCIPAL
   ============================================================================= */
.conteudo        { margin-left: var(--sidebar-w); padding-top: var(--header-h); min-height: 100vh; }
.conteudo-inner  { padding: 24px; }

.wrap-1100 { max-width: 1100px; margin: 0 auto; }
.wrap-1000 { max-width: 1000px; margin: 0 auto; }
.wrap-900 { max-width: 900px; margin: 0 auto; }
.wrap-800 { max-width: 800px; margin: 0 auto; }
.wrap-700 { max-width: 700px; margin: 0 auto; }
.wrap-600 { max-width: 600px; margin: 0 auto; }
.wrap-500 { max-width: 500px; margin: 0 auto; }

/* CARDS GENÉRICOS */

/*card maior */
 .v-card { 
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}


/* =============================================================================
   4. TEXTOS GERAIS
   ============================================================================= */

.secao-titulo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bsc-descricao-padrao {font-size: 12px; 
    color: var(--texto-branco-medio); 
    line-height: 1.4; 
    margin-top: 5px;
}

.bsc-texto-branco-forte { font-size: 13px; color: var(--texto-branco-forte); line-height: 1.7; }
.bsc-texto-branco-medio { font-size: 13px; color: var(--texto-branco-medio); line-height: 1.7; }
.bsc-texto-branco-fraco { font-size: 13px; color: var(--texto-branco-fraco); line-height: 1.7; }







/* =============================================================================
   5. COMPONENTES — CARDS
   ============================================================================= */

/* Card base usado em formulários de página (sacar, transferir, etc.) */
.bsc-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-card);
    padding: 28px;
    animation: entrar 0.4s ease both;
}

/* Título de seção dentro de cards (ex: "Solicitar Saque", "Carteira") */
.card-dash-titulo {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================================================
   4. COMPONENTES — SALDO DISPONÍVEL
   ============================================================================= */
.saldo-disponivel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(76, 175, 80, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.saldo-disponivel-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.saldo-disponivel-valor {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--verde);
}

/* =============================================================================
   4. COMPONENTES — FORMULÁRIOS
   ============================================================================= */
.form-label-custom {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    display: block;
}

.form-input-custom {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    padding: 11px 16px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}
.form-input-custom:focus {
    border-color: rgba(33, 150, 243, 0.8);
    background: rgba(255, 255, 255, 0.35);
}
.form-input-custom::placeholder { color: var(--texto-branco-fraco); }
.form-input-custom:disabled     { background: rgba(255,255,255,0.02); color: rgba(255,255,255,0.2); }

.form-grupo-custom { margin-bottom: 16px; }
.form-row-custom   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }


/* Select nativo com tema escuro */
.form-select-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-input);
    color: #fff;
    font-size: 13px;
    padding: 10px 36px 10px 14px;
    outline: none;
    appearance: none;
    transition: border-color 0.2s;
    font-family: 'Nunito', sans-serif;
}
.form-select-custom:focus  { border-color: rgba(33,150,243,0.8); }
.form-select-custom option { background: var(--azul-escuro); }

/* =============================================================================
   4. COMPONENTES — BOTÕES
   ============================================================================= */

/* Botão principal — azul gradiente */
.btn-primary-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-medio));
    border: none;
    border-radius: var(--radius-input);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 13px 24px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    width: 100%;
    margin-top: 8px;
    text-decoration: none;
}
.btn-primary-custom:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.btn-primary-custom:disabled             { background: #444; cursor: not-allowed; opacity: 0.7; }

/* Botão secundário — transparente/cinza */
.btn-secondary-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-input);
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 13px 24px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 16px;
    text-decoration: none;
}
.btn-secondary-custom:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Botão de filtro — azul outline pequeno */
.btn-filtrar {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: var(--radius-sm);
    color: var(--azul-claro);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Nunito', sans-serif;
}
.btn-filtrar:hover { background: rgba(33,150,243,0.35); color: #fff; }

.btn-100 {
    width: 100%;
    background: linear-gradient(135deg,var(--azul-claro),var(--azul-medio));
    border: none; border-radius: 10px; color: #fff;
    font-family: 'Rajdhani',sans-serif; font-size: 15px;
    font-weight: 700; letter-spacing: 1px; padding: 13px;
    cursor: pointer; transition: opacity .2s; margin-top: 4px;
}
.btn-100:hover {     
    opacity: .9;
    background: linear-gradient(var(--azul-claro));
    transform: translateY(-2px);
    transition: transform 0.3s ease-out;

}

/* =============================================================================
   4. COMPONENTES — ALERTAS
   ============================================================================= */

.alerta {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
} 

.alerta-erro {
    background: rgba(255, 107, 122, 0.08);
    border: 1px solid rgba(255, 107, 122, 0.25);
    border-radius: var(--radius-input);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--erro);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alerta-sucesso {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.25);
    border-radius: var(--radius-input);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--sucesso);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alerta-info {
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: var(--radius-input);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--azul-claro);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =============================================================================
   4. COMPONENTES — BADGES
   ============================================================================= */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-status.verde   { background: rgba(76,175,80,0.15);    color: var(--verde);    border: 1px solid rgba(76,175,80,0.3);    }
.badge-status.vermelho{ background: rgba(255,107,122,0.15);  color: var(--vermelho); border: 1px solid rgba(255,107,122,0.3); }
.badge-status.amarelo { background: rgba(245,166,35,0.15);   color: var(--dourado);  border: 1px solid rgba(245,166,35,0.3);  }
.badge-status.azul    { background: rgba(33,150,243,0.15);   color: var(--azul-claro); border: 1px solid rgba(33,150,243,0.3);}
.badge-status.cinza   { background: rgba(255,255,255,0.06);  color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.1);}

/* =============================================================================
   4. COMPONENTES — ESTADO VAZIO
   ============================================================================= */
.estado-vazio {
    text-align: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.65);
}
.estado-vazio i    { font-size: 40px; display: block; margin-bottom: 12px; opacity: 0.4; }
.estado-vazio p    { font-size: 14px; }

/* =============================================================================
   4. COMPONENTES — TABELAS
   ============================================================================= */
.tabela-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
}

.tabela-padrao { width: 100%; border-collapse: collapse; }

.tabela-padrao thead th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    white-space: nowrap;
}
.tabela-padrao tbody tr            { border-bottom: 1px solid rgba(255,255,255,0.35); transition: background 0.2s; }
.tabela-padrao tbody tr:last-child { border-bottom: none; }
.tabela-padrao tbody tr:hover      { background: rgba(255,255,255,0.03); }
.tabela-padrao tbody td            { padding: 12px 16px; font-size: 13px; color: rgba(255,255,255,0.7); vertical-align: middle; }

/* Valores monetários */
.valor-positivo { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; color: var(--verde); }
.valor-negativo { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700; color: var(--vermelho); }
.valor-zero     { color: rgba(255,255,255,0.2); font-size: 12px; }

/* =============================================================================
   5. ANIMAÇÕES
   ============================================================================= */
@keyframes entrar {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulsar {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* =============================================================================
   6. RESPONSIVIDADE
   ============================================================================= */
@media (max-width: 768px) {
    .sidebar       { transform: translateX(calc(-1 * var(--sidebar-w))); }
    .sidebar.aberta{ transform: translateX(0); }

    .topbar        { left: 0; }
    .conteudo      { margin-left: 0; }

    .btn-toggle-sidebar { display: block; }
    .topbar-saldo       { display: none; }
    .topbar-depositar   { display: none; }
}





/* Ajuste para páginas sem sidebar (visitantes) */
.topbar-visitante      { left: 0 !important; }
.conteudo-sem-sidebar  { margin-left: 0 !important; padding-top: 80px !important; }

/* =============================================================================

