/* Reset simples */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Corpo geral */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #3a2b7a 0, #0b0b12 45%, #050509 100%);
    color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container principal (card) */
.card {
    background: rgba(15, 15, 25, 0.95);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 840px;
    width: 100%;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(120, 120, 180, 0.35);
    backdrop-filter: blur(10px);
}

/* Título principal */
.card h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #e5dcff;
}

/* Subtítulo */
.card p.subtitle {
    font-size: 0.9rem;
    color: #b4b3d0;
    margin-bottom: 24px;
}

/* Mensagens de erro */
.error {
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.6);
    color: #ffd7de;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

/* Labels e inputs */
label {
    font-size: 0.9rem;
    color: #d0cfff;
    margin-bottom: 4px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(110, 99, 220, 0.7);
    background: rgba(7, 7, 15, 0.9);
    color: #f5f5ff;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    border-color: #9f7bff;
    box-shadow: 0 0 0 1px rgba(159, 123, 255, 0.6);
    transform: translateY(-1px);
}

/* Botões */
button {
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #7f5dff, #b35dff);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.15s ease;
    box-shadow: 0 10px 25px rgba(35, 0, 120, 0.55);
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 32px rgba(35, 0, 120, 0.7);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(35, 0, 120, 0.5);
}

/* Link de logout / navegação */
a {
    color: #c2a6ff;
    text-decoration: none;
    font-size: 0.9rem;
}

a:hover {
    text-decoration: underline;
}

/* Lista de apostas */
.bets {
    margin-top: 12px;
}

.bets h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #e3defb;
}

.bets ul {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.bets li {
    font-size: 0.9rem;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 8px;
    background: rgba(30, 25, 70, 0.9);
    border: 1px solid rgba(130, 115, 230, 0.45);
}

/* Info secundária */
.small-info {
    font-size: 0.8rem;
    color: #9f9fbe;
    margin-top: 6px;
}

/* Ajuste para telas menores */
@media (max-width: 480px) {
    .card {
        margin: 16px;
        padding: 24px 18px;
    }

    .card h1 {
        font-size: 1.6rem;
    }
}

/* Barra de progresso de jogos */
.progress-container {
    margin-top: 8px;
    margin-bottom: 16px;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(35, 35, 55, 0.9);
    border: 1px solid rgba(120, 110, 220, 0.6);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7f5dff, #b35dff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.25s ease-out;
}

.progress-label {
    font-size: 0.7rem;
    color: #f7f5ff;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

.max-warning {
    font-size: 0.8rem;
    color: #ffb347;
    margin-top: 4px;
}

.highlight {
    color: #6dff9d;
    font-weight: 600;
}

.tabela-apostas-modal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.tabela-apostas-modal th,
.tabela-apostas-modal td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(80,80,140,0.6);
}

.tabela-apostas-modal th {
    text-align: center;
    font-weight: 600;
    color: #e0dcff;
}

.btn-remover-aposta {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 120, 120, 0.8);
    background: rgba(80, 20, 20, 0.9);
    color: #ffd2d2;
    cursor: pointer;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.btn-remover-aposta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 6px rgba(255, 120, 120, 0.75);
}

.grid-numeros {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin: 10px 0 16px 0;
}

.numero-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 999px;
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid rgba(120, 110, 220, 0.6);
    cursor: pointer;
    transition: all 0.15s ease-out;
    font-size: 0.85rem;
    color: #e5e2ff;
    user-select: none;
}

.numero-box input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.numero-box span {
    pointer-events: none;
}

.numero-box:hover {
    border-color: #b589ff;
    box-shadow: 0 0 6px rgba(181, 137, 255, 0.6);
    transform: translateY(-1px);
}

.numero-box.selected {
    background: linear-gradient(135deg, #7f5dff, #b35dff);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(179, 93, 255, 0.9);
}

.max-warning {
    font-size: 0.8rem;
    color: #ffb347;
    margin-top: 4px;
}

.highlight {
    color: #6dff9d;
    font-weight: 600;
}
