﻿/* =============================================================
   goodies.css — engine UI (Start, Select pages, results)
   ============================================================= */

/* ── Buttons ───────────────────────────────────────────────── */
.goodies-button {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #0d6efd;
    background: #ffffff;
    color: #0d6efd;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

    .goodies-button:hover,
    .goodies-button:focus {
        background: #0d6efd;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
        outline: none;
    }

.goodies-enter-btn {
    font-size: 1.4rem;
    padding: 1.2rem 2.5rem;
}

/* ── Card Panels ───────────────────────────────────────────── */
.goodies-group,
.goodies-actions {
    background: #f8f9fa;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.goodies-group-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* ── Radio / Checkbox Options ─────────────────────────────── */
.goodies-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 1.1rem;
}

    .goodies-option:hover {
        background: #e9f2ff;
        border-color: #0d6efd;
    }

    .goodies-option input {
        transform: scale(1.25);
    }

/* ── Layout Grid ───────────────────────────────────────────── */
.goodies-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}

.goodies-column {
    display: flex;
    justify-content: center;
}

.goodies-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Footer Row ───────────────────────────────────────────── */
.goodies-footer {
    margin-top: 1.5rem;
}

/* Inline variant: shrinks to text/checkbox width instead of full row */
.goodies-option--inline {
    display: inline-flex;
    width: auto;
}

/* ── Hidden Utility ───────────────────────────────────────── */
.goodies-hidden {
    display: none !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .goodies-container {
        grid-template-columns: 1fr;
    }
}

/* ── Form Groups (Select pages) ───────────────────────────── */
.goodies-form-group {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .goodies-form-group label {
        font-size: 1rem;
        font-weight: 500;
        color: #212529;
    }

    .goodies-form-group input[type="date"],
    .goodies-form-group select {
        padding: 0.45rem 0.75rem;
        border: 1px solid #ced4da;
        border-radius: 6px;
        font-size: 1rem;
        max-width: 320px;
        background: #ffffff;
        color: #212529;
    }

    .goodies-form-group input[type="range"] {
        max-width: 320px;
    }

#oddsValue {
    font-weight: 600;
    margin-top: 0.25rem;
    color: #0d6efd;
}

/* ── Results Table Panels ─────────────────────────────────── */
.todays-plays-sport-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: #0d6efd;
    border-radius: 6px;
    padding: 0.15rem 0.55rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* System signal key legend */
.system-key {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.5rem;
    font-size: 0.8rem;
    color: #495057;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.system-key-title {
    font-weight: 700;
    color: #212529;
    margin-right: 0.25rem;
}

.system-key-item strong {
    color: #0d6efd;
}

.system-key-sep {
    color: #adb5bd;
}

.system-key-note {
    color: #6c757d;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Signal icons — table cells and key legend use the same size */
.signal-icon,
.signal-icon-key {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 2px;
}

/* Wrapper spans inside a System table cell */
.system-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.system-vsep {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0 3px;
}

.system-none {
    font-weight: 600;
    color: #6c757d;
}
.odds-selector {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    align-items: center;
    font-weight: 600;
}

.odds-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
}

.odds-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #0d6efd;
}

.odds-table {
    display: none;
    margin-top: 1rem;
}

/* ── Register page ────────────────────────────────────────── */
.register-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.register-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.register-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.25rem;
}

.register-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ── Password rules checklist ─────────────────────────────── */
.pw-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pw-rule {
    font-size: 0.82rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s ease;
}

.pw-rule-icon {
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.pw-rule--pass {
    color: #198754; /* Bootstrap success green */
}

.pw-rule--fail {
    color: #dc3545; /* Bootstrap danger red */
}

/* ── Show DB page ─────────────────────────────────────────── */
.show-db-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1rem 0;
}

.show-db-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}

.show-db-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.15rem;
}

.show-db-summary {
    font-size: 0.9rem;
}

.db-odds-panel {
    min-height: 0;
}

/* ── Show DB button variant ───────────────────────────────── */
.goodies-button--db {
    border-color: #6f42c1;
    color: #6f42c1;
}

.goodies-button--db:hover,
.goodies-button--db:focus {
    background: #6f42c1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

/* ── Shared DB table styles ───────────────────────────────── */
.db-table-scroll {
    max-height: 55vh;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.db-table thead th {
    font-size: 0.82rem;
    white-space: nowrap;
}

.db-table tbody td {
    font-size: 0.82rem;
    vertical-align: middle;
}

.db-table code {
    font-size: 0.78rem;
    color: #0d6efd;
    background: #f0f4ff;
    padding: 1px 4px;
    border-radius: 3px;
}

.db-search-bar {
    max-width: 320px;
}
