/*
 * Gerador de números — index.php (início, Mega-Sena, Mega da Virada, Lotofácil, Quina).
 * Formulário de sorteio: campos, atalhos, chaves e botão.
 */

#configForm {
    text-align: center;
}

/* Cartão do formulário */
.draw-card {
    padding: 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(10, 60, 110, .16);
}

.draw-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.draw-field label {
    display: block;
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.draw-card input[type="number"] {
    width: 100%;
    max-width: none;
    height: 64px;
    margin: 0;
    padding: 0 12px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: #f7fafc;
    color: var(--ink);
    font: inherit;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.draw-card input[type="number"]:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 127, 209, .15);
}

/* Atalhos */
.draw-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.draw-presets__label {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.draw-card .chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    max-width: none;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.draw-card .chip:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}


/* Erro e botão */
.draw-error {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff1f0;
    color: #b42318;
    font-size: 14px;
    text-align: left;
}

.draw-card .draw-submit,
.draw-result .draw-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    height: 58px;
    margin: 20px 0 0;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a7fd1 0%, #2aa8f2 100%);
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(10, 127, 209, .32);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.draw-card .draw-submit:hover,
.draw-result .draw-submit:hover {
    background: linear-gradient(135deg, #0a7fd1 0%, #2aa8f2 100%);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(10, 127, 209, .38);
}

.draw-card .draw-submit:disabled {
    cursor: progress;
    filter: saturate(.7);
    transform: none;
}

.draw-submit.is-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: draw-spin .7s linear infinite;
}

@keyframes draw-spin {
    to { transform: rotate(360deg); }
}

/* Busca por código — buscar.php */
.search-form {
    max-width: 520px;
    margin: 0 auto;
}

.search-form__label {
    display: block;
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
}

.search-form input[type="number"] {
    letter-spacing: .04em;
    -moz-appearance: textfield;
}

.search-form input[type="number"]::-webkit-inner-spin-button,
.search-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.search-form input[type="number"]::placeholder {
    color: #b6c2cf;
    font-weight: 600;
}


@media (max-width: 640px) {
    .draw-card {
        padding: 18px;
    }

    .draw-fields {
        gap: 10px;
    }

    .draw-card input[type="number"] {
        height: 56px;
        font-size: 22px;
        padding: 0 6px;
    }
}
