:root {
  --bg: #f5f7fb;
  --surface: #fff;
  --text: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #2457d6;
  --accent-dark: #1845b8;
  --success: #087443;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(16,24,40,.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 20px;
  font-weight: 800;
}

.nav nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.nav nav a:hover {
  color: var(--text);
}


/* =========================================================
   GENERAL PAGE
   ========================================================= */

.page {
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 30px;
}

.hero.compact {
  margin-bottom: 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
  margin: 0 0 7px;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -.035em;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.hindi {
  color: var(--muted);
}

.hindi.large {
  font-size: 18px;
}


/* =========================================================
   HOMEPAGE
   ========================================================= */

.home-page {
    padding: 32px 0 60px;
}


/* =========================================================
   LATEST RESULTS
   ========================================================= */

.latest-results {
    margin-bottom: 34px;
}

.latest-results-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 800;
}

.latest-results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.latest-result-card {
    display: block;
    min-width: 0;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;

    padding: 18px 20px;

    box-shadow: var(--shadow);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.latest-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(16,24,40,.10);
    border-color: #d7dce5;
}

.latest-result-game {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 3px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-result-time {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.latest-result-value {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
}


/* =========================================================
   CUSTOM HTML CONTENT
   ========================================================= */

.home-content {
    width: 100%;
    margin: 0 0 30px;
}

.home-content-inner {
    width: 100%;
}

/*
   Do not impose a fixed layout on administrator HTML.
   The HTML editor controls its own presentation.
*/

.home-content-inner img {
    max-width: 100%;
    height: auto;
}

.home-content-inner iframe {
    max-width: 100%;
}


/* =========================
   Contact Buttons
   ========================= */

.contact-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px 0 22px;
    text-align: center;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    padding: 11px 22px;

    border-radius: 8px;
    border: 0;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;
    color: #fff;

    cursor: pointer;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        opacity .15s ease;
}

.contact-button:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.contact-button:active {
    transform: translateY(0);
}


/* Call */

.call-button {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(16, 185, 129, .18);
}


/* WhatsApp */

.whatsapp-button {
    background: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .18);
}


/* Mobile */

@media (max-width: 560px) {
    .contact-buttons {
        gap: 10px;
        padding: 16px 0 20px;
    }

    .contact-button {
        min-width: 120px;
        padding: 10px 18px;
    }
}


/* =========================================================
   FULL RESULTS
   ========================================================= */

.full-results {
    width: 100%;
    margin: 0;
}

.results-table {
    width: 100%;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;

    overflow: hidden;

    box-shadow: var(--shadow);
}


/* ---------------------------------------------------------
   Table Header
   --------------------------------------------------------- */

.results-table-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        150px;

    align-items: center;

    min-height: 48px;

    padding: 0 20px;

    background: #fafbfc;

    border-bottom: 1px solid var(--line);

    color: var(--muted);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .07em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Result Row
   --------------------------------------------------------- */

.results-table-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        150px;

    align-items: center;

    min-height: 64px;

    padding: 10px 20px;

    border-bottom: 1px solid var(--line);

    transition: background .15s ease;
}

.results-table-row:last-child {
    border-bottom: none;
}

.results-table-row:hover {
    background: #fafbfc;
}


/* ---------------------------------------------------------
   Game
   --------------------------------------------------------- */

.results-game {
    min-width: 0;

    font-size: 15px;
    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ---------------------------------------------------------
   Time
   --------------------------------------------------------- */

.results-time {
    color: var(--muted);
    font-size: 13px;
}


/* ---------------------------------------------------------
   Result
   --------------------------------------------------------- */

.results-value {
    text-align: right;

    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   GENERAL PAGE / EXISTING COMPONENTS
   ========================================================= */

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

.game-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: .18s transform, .18s box-shadow;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(16,24,40,.1);
}

.game-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.time {
    color: var(--muted);
    font-size: 13px;
}

.result-number {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -.04em;
    text-align: center;
    padding: 25px 0 10px;
}

.status {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .latest-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .results-table-header,
    .results-table-row {
        grid-template-columns:
            minmax(0, 1fr)
            140px
            100px;
    }
}


@media (max-width: 700px) {

    .home-page {
        padding-top: 24px;
    }

    .latest-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .latest-result-card {
        padding: 15px;
    }

    .latest-result-value {
        font-size: 26px;
    }

    .home-contact {
        flex-direction: column;
        align-items: stretch;
    }

    .home-contact-button {
        width: 100%;
    }

    .results-table {
        border-radius: 10px;
    }

    .results-table-header {
        grid-template-columns:
            minmax(0, 1fr)
            90px
            70px;

        padding: 0 14px;
    }

    .results-table-row {
        grid-template-columns:
            minmax(0, 1fr)
            90px
            70px;

        padding: 10px 14px;
        min-height: 58px;
    }

    .results-game {
        font-size: 14px;
    }

    .results-time {
        font-size: 12px;
    }

    .results-value {
        font-size: 17px;
    }
}


@media (max-width: 560px) {

    .container {
        width: min(100% - 20px, 1120px);
    }

    .home-page {
        padding-bottom: 40px;
    }

    .latest-results-grid {
        grid-template-columns: 1fr 1fr;
    }

    .latest-result-game {
        font-size: 13px;
    }

    .latest-result-time {
        font-size: 11px;
    }

    .latest-result-value {
        font-size: 24px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .results-table-header,
    .results-table-row {
        grid-template-columns:
            minmax(0, 1fr)
            75px
            55px;
    }

    .results-table-header {
        padding: 0 10px;
        font-size: 10px;
    }

    .results-table-row {
        padding: 10px;
    }

    .results-game {
        font-size: 13px;
    }

    .results-time {
        font-size: 11px;
    }

    .results-value {
        font-size: 16px;
    }
}

/* =========================================================
   ADMIN
   ========================================================= */

.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.admin-heading > div:first-child {
    min-width: 0;
}

.admin-heading h1 {
    margin: 0;
}

.admin-heading .muted {
    margin: 10px 0 0;
    max-width: 680px;
}

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

.actions form {
    margin: 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.button:hover {
    background: #f7f8fa;
    border-color: #c8ced9;
    text-decoration: none;
}

.button.primary {
    background: #165dff;
    border-color: #165dff;
    color: #ffffff;
}

.button.primary:hover {
    background: #0d4fe0;
    border-color: #0d4fe0;
}


/* =========================================================
   ADMIN STATS
   ========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stats > div {
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e5e8ee;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(20, 30, 50, .04);
}

.stats span {
    display: block;
    margin-bottom: 7px;
    color: #718096;
    font-size: 13px;
    font-weight: 600;
}

.stats strong {
    display: block;
    color: #111827;
    font-size: 28px;
    line-height: 1.1;
}


/* =========================================================
   PANELS
   ========================================================= */

.panel {
    background: #ffffff;
    border: 1px solid #e5e8ee;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(20, 30, 50, .04);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #e8ebf0;
}

.panel-heading h2 {
    margin: 0;
    font-size: 18px;
}

.panel-heading a {
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrap {
    overflow-x: auto;
}

.panel.table-wrap {
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: #fafbfc;
}

th {
    padding: 13px 18px;
    color: #68758a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    padding: 16px 18px;
    border-top: 1px solid #edf0f4;
    color: #263247;
    vertical-align: middle;
}

tbody tr:first-child td {
    border-top: 1px solid #edf0f4;
}

tbody tr:hover {
    background: #fafbfc;
}

.table-result {
    font-size: 16px;
    font-weight: 700;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.row-actions form {
    display: inline;
    margin: 0;
}

.row-actions a {
    font-weight: 600;
}

.link-danger {
    padding: 0;
    border: 0;
    background: none;
    color: #c62828;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.link-danger:hover {
    text-decoration: underline;
}


/* =========================================================
   RESULTS EDITOR
   ========================================================= */

.results-panel {
    overflow: hidden;
}

.date-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
    border-bottom: 1px solid #e8ebf0;
}

.date-toolbar label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #263247;
    font-size: 14px;
    font-weight: 600;
}

.date-toolbar input[type="date"] {
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d5dae3;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    box-sizing: border-box;
}

.date-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: #718096;
    font-size: 14px;
}

.date-summary strong {
    color: #172033;
    font-size: 16px;
}


/* Results grid */

.result-editor {
    width: 100%;
}

.result-header,
.result-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 130px 180px;
    align-items: center;
}

.result-header {
    min-height: 46px;
    padding: 0 22px;
    background: #fafbfc;
    border-bottom: 1px solid #e8ebf0;
    color: #68758a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.result-row {
    min-height: 66px;
    padding: 0 22px;
    border-bottom: 1px solid #edf0f4;
}

.result-row:last-child {
    border-bottom: 0;
}

.game-name {
    color: #172033;
    font-size: 14px;
    font-weight: 700;
}

.game-time {
    color: #718096;
    font-size: 14px;
}

.result-entry input {
    width: 100%;
    max-width: 150px;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #cfd5df;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.result-entry input:focus,
.date-toolbar input[type="date"]:focus,
.date-toolbar select:focus {
    outline: none;
    border-color: #165dff;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, .10);
}


/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px;
    border-top: 1px solid #e8ebf0;
}

.form-actions a {
    text-decoration: none;
}


/* =========================================================
   EMPTY / VALIDATION
   ========================================================= */

.empty {
    padding: 30px 22px;
    color: #718096;
    font-size: 14px;
}

.validation {
    margin: 18px 22px 0;
    padding: 12px 14px;
    border: 1px solid #f0c5c5;
    border-radius: 7px;
    background: #fff5f5;
    color: #a52828;
    font-size: 14px;
}


/* =========================================================
   ADMIN RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .actions {
        width: 100%;
    }

    .actions .button,
    .actions form {
        flex: 1;
    }

    .actions form .button {
        width: 100%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .date-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-header,
    .result-row {
        grid-template-columns: minmax(150px, 1fr) 90px 120px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .result-entry input {
        max-width: 110px;
    }

    th,
    td {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =========================================================
   PUBLIC GAME DETAILS
   ========================================================= */

.history-list {
    width: 100%;
}

.history-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    align-items: center;
    min-height: 60px;
    padding: 0 26px;
    border-top: 1px solid #edf0f4;
    box-sizing: border-box;
}

.history-row:first-child {
    border-top: 0;
}

.history-row span {
    color: #263247;
    font-size: 14px;
}

.history-row strong {
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}

.history-list .empty {
    padding: 28px 26px;
    color: #718096;
    font-size: 14px;
}


/* =========================================================
   GAME HEADER
   ========================================================= */

.hero.compact {
    margin-bottom: 32px;
}

.hero.compact h1 {
    margin-bottom: 0;
}

.hero.compact .hindi.large {
    margin-top: 10px;
    color: #718096;
    font-size: 20px;
}

.hero.compact .muted {
    margin-top: 20px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .history-row {
        grid-template-columns: 1fr 90px;
        min-height: 56px;
        padding: 0 18px;
    }

    .history-row strong {
        font-size: 17px;
    }

    .history-list .empty {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.settings-panel {
    padding: 0;
    overflow: hidden;
}

.settings-section {
    padding: 28px 30px;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: 0;
}

.settings-section h2 {
    margin: 0 0 6px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    font-weight: 700;
    font-size: 14px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.field-help {
    font-size: 13px;
    color: var(--muted);
}

.settings-toggles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.checkbox-field span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-field small {
    color: var(--muted);
}

.html-editor {
    min-height: 300px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 14px !important;
    line-height: 1.5;
}

.success {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #eaf7ee;
    border: 1px solid #b8dfc4;
    color: #246b36;
}

@media (max-width: 700px) {
    .settings-grid,
    .settings-toggles {
        grid-template-columns: 1fr;
    }

    .settings-section {
        padding: 22px 18px;
    }
}

/* ============================================================
   ALL RESULTS
   ============================================================ */

.all-results-page {
    width: 100%;
}

.all-results-heading {
    margin-bottom: 28px;
}

.all-results-heading h1 {
    margin-bottom: 6px;
}

.all-results-heading .muted {
    margin: 0;
    font-size: 17px;
}


/* ============================================================
   TABLE
   ============================================================ */

.all-results-panel {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 35, 60, 0.06);
}

.all-results-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.all-results-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.all-results-table th,
.all-results-table td {
    border-right: 1px solid #dfe4eb;
    border-bottom: 1px solid #dfe4eb;
    text-align: center;
}

.all-results-table th:last-child,
.all-results-table td:last-child {
    border-right: 0;
}


/* Header */

.all-results-table thead th {
    padding: 12px 8px;
    background: #10166f;
    color: #fff;
    vertical-align: middle;
}

.all-results-table .date-column {
    width: 125px;
}

.game-column-name {
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.game-column-hindi {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.9;
}

.game-column-time {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 500;
    opacity: 0.75;
}


/* Body */

.all-results-table tbody tr:nth-child(odd) {
    background: #fff;
}

.all-results-table tbody tr:nth-child(even) {
    background: #f3f8fb;
}

.all-results-table tbody tr:last-child td {
    border-bottom: 0;
}

.all-results-table td {
    height: 30px;
    padding: 5px 7px;
    font-size: 14px;
}

.date-cell {
    font-weight: 600;
    white-space: nowrap;
}

.result-cell {
    font-variant-numeric: tabular-nums;
}

.no-result {
    color: #9aa4b2;
}


/* ============================================================
   MONTH NAVIGATION
   ============================================================ */

.month-navigation {
    margin-top: 30px;
}

.month-navigation-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.month-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.month-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.month-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.month-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .all-results-heading {
        margin-bottom: 20px;
    }

    .all-results-panel {
        border-radius: 8px;
    }

    .all-results-table {
        min-width: 800px;
    }

    .all-results-table .date-column {
        width: 105px;
    }

    .all-results-table th {
        padding: 9px 5px;
    }

    .all-results-table td {
        height: 28px;
        padding: 4px;
        font-size: 13px;
    }

    .game-column-name {
        font-size: 10px;
    }

    .game-column-hindi {
        font-size: 9px;
    }

    .game-column-time {
        font-size: 8px;
    }
}

/* =========================================================
   PUBLIC WEBSITE VISUAL ENHANCEMENTS
   ---------------------------------------------------------
   ADD THIS AT THE END OF THE EXISTING CSS.
   Nothing above needs to be removed.
   ========================================================= */


/* =========================================================
   COLOR PALETTE
   ========================================================= */

:root {
  --site-blue: #1737c9;
  --site-blue-dark: #10259a;
  --site-blue-light: #3157ee;

  --site-green: #0aa85f;
  --site-green-dark: #07834a;

  --site-yellow: #ffd83d;
  --site-red: #e51d2a;

  --site-navy: #0d1738;
}


/* =========================================================
   BODY / PAGE BACKGROUND
   ========================================================= */

body {
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(49, 87, 238, .10),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #f4f7ff 0%,
      #f7f9fc 45%,
      #eef2f8 100%
    );
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background:
    linear-gradient(
      135deg,
      var(--site-blue-dark) 0%,
      var(--site-blue) 55%,
      var(--site-blue-light) 100%
    );

  border-bottom: 0;
  box-shadow:
    0 4px 18px rgba(16, 37, 154, .20);

  color: #fff;
}

.nav {
  min-height: 68px;
}

.brand {
  color: #fff;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.nav nav {
  color: rgba(255, 255, 255, .82);
}

.nav nav a {
  position: relative;
  padding: 8px 0;
  transition: color .18s ease;
}

.nav nav a:hover {
  color: #fff;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;

  height: 2px;
  border-radius: 2px;

  background: var(--site-yellow);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform .18s ease;
}

.nav nav a:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   PUBLIC HOME PAGE
   ========================================================= */

.home-page {
  padding-top: 38px;
  padding-bottom: 70px;
}


/* =========================================================
   LATEST RESULTS
   ---------------------------------------------------------
   Cards remain dynamic.
   If there are 4 -> four cards.
   If there are 2 -> two cards centered.
   ========================================================= */

.latest-results {
  margin-bottom: 30px;
}

.latest-results-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(175px, 220px));

  justify-content: center;
  align-items: stretch;

  gap: 16px;

  padding: 18px;

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(23, 55, 201, .10),
      rgba(49, 87, 238, .04)
    );

  border: 1px solid rgba(36, 87, 214, .12);

  box-shadow:
    0 12px 35px rgba(16, 24, 40, .06),
    inset 0 1px 0 rgba(255,255,255,.8);
}


/* Individual latest card */

.latest-result-card {
  position: relative;

  min-height: 118px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 20px 22px;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #f8faff 100%
    );

  border: 1px solid rgba(36, 87, 214, .14);
  border-radius: 16px;

  box-shadow:
    0 8px 22px rgba(16, 24, 40, .08);

  overflow: hidden;

  transition:
    transform .20s ease,
    box-shadow .20s ease,
    border-color .20s ease;
}


/* Small colored accent at top */

.latest-result-card::before {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--site-blue),
      var(--site-blue-light)
    );
}


/* Decorative glow */

.latest-result-card::after {
  content: "";

  position: absolute;

  width: 90px;
  height: 90px;

  right: -35px;
  bottom: -45px;

  border-radius: 50%;

  background: rgba(49, 87, 238, .07);

  pointer-events: none;
}

.latest-result-card:hover {
  transform: translateY(-5px);

  border-color: rgba(36, 87, 214, .30);

  box-shadow:
    0 16px 34px rgba(16, 24, 40, .13);
}

.latest-result-game {
  font-size: 14px;
  font-weight: 850;

  letter-spacing: .01em;

  color: var(--site-navy);

  margin-bottom: 4px;
}

.latest-result-time {
  color: #71809c;

  font-size: 11px;
  font-weight: 600;

  margin-bottom: 8px;
}

.latest-result-value {
  font-size: 34px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: -.04em;

  color: var(--site-blue);
}


/* =========================================================
   CUSTOM HTML CONTENT
   ========================================================= */

.home-content {
  margin-bottom: 22px;
}

.home-content-inner {
  border-radius: 16px;
  overflow: hidden;
}


/* =========================================================
   CONTACT BUTTONS
   ========================================================= */

.home-contact {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 10px;

  margin: 18px 0 28px;
}

.home-contact-button {
  min-width: 112px;
  min-height: 42px;

  padding: 9px 20px;

  border-radius: 9px;

  font-size: 13px;
  font-weight: 800;

  box-shadow:
    0 5px 14px rgba(16, 24, 40, .12);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.home-contact-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(16, 24, 40, .16);

  filter: brightness(1.04);
}

.home-contact-call {
  background:
    linear-gradient(
      135deg,
      #07884d,
      #0bb968
    );
}

.home-contact-whatsapp {
  background:
    linear-gradient(
      135deg,
      #0ca85a,
      #20c978
    );
}


/* =========================================================
   TODAY'S RESULTS
   ========================================================= */

.today-results-section {
  margin-top: 4px;
}

.today-results {
  border-radius: 16px;

  border: 1px solid rgba(36, 87, 214, .12);

  box-shadow:
    0 12px 32px rgba(16, 24, 40, .07);

  overflow: hidden;
}

.today-results-header {
  background:
    linear-gradient(
      90deg,
      #edf2ff,
      #f7f9ff
    );

  color: #52627f;

  border-bottom:
    1px solid rgba(36, 87, 214, .12);
}

.today-result-row {
  background: rgba(255,255,255,.96);

  transition:
    background .15s ease,
    padding-left .15s ease;
}

.today-result-row:hover {
  background: #f5f8ff;

  padding-left: 24px;
}

.today-game-name {
  color: #14213d;
}

.today-game-time {
  color: #7585a1;
}

.today-result-value {
  color: var(--site-blue);
  font-weight: 900;
}


/* =========================================================
   GAME DETAILS / HISTORY
   ========================================================= */

.panel {
  box-shadow:
    0 12px 32px rgba(16, 24, 40, .07);
}

.panel-heading {
  background:
    linear-gradient(
      90deg,
      #f3f6ff,
      #ffffff
    );
}

.history-row {
  transition:
    background .15s ease,
    padding-left .15s ease;
}

.history-row:hover {
  background: #f6f8ff;
  padding-left: 28px;
}

.history-row strong {
  color: var(--site-blue);
}


/* =========================================================
   GENERIC GAME CARDS
   ========================================================= */

.game-card {
  border-color: rgba(36, 87, 214, .12);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f8faff
    );

  box-shadow:
    0 10px 28px rgba(16, 24, 40, .07);
}

.game-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(36, 87, 214, .25);

  box-shadow:
    0 18px 38px rgba(16, 24, 40, .12);
}

.result-number {
  color: var(--site-blue);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 65px;

  padding: 30px 0;

  background:
    linear-gradient(
      135deg,
      #0b1535 0%,
      #14245b 100%
    );

  border-top: 4px solid var(--site-yellow);

  color: rgba(255,255,255,.72);

  box-shadow:
    0 -8px 25px rgba(13, 23, 56, .12);
}

.site-footer p {
  color: rgba(255,255,255,.72);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--site-yellow);
}


/* =========================================================
   ADMIN BUTTONS
   ---------------------------------------------------------
   Slightly improve existing buttons without changing
   their structure or functionality.
   ========================================================= */

.button {
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 5px 14px rgba(16, 24, 40, .10);
}

.button.primary {
  background:
    linear-gradient(
      135deg,
      var(--site-blue),
      var(--site-blue-light)
    );
}


/* =========================================================
   ADMIN PANELS
   ========================================================= */

.admin-heading h1 {
  letter-spacing: -.04em;
}

.stats > div {
  box-shadow:
    0 8px 22px rgba(16, 24, 40, .05);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

.stats > div:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(16, 24, 40, .09);
}


/* =========================================================
   MOBILE OVERRIDES
   ========================================================= */

@media (max-width: 900px) {

  .latest-results-grid {
    grid-template-columns:
      repeat(2, minmax(175px, 220px));

    justify-content: center;
  }

}


@media (max-width: 700px) {

  .home-page {
    padding-top: 24px;
  }

  .latest-results-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    padding: 12px;

    gap: 10px;

    border-radius: 16px;
  }

  .latest-result-card {
    min-height: 105px;

    padding: 16px;
  }

  .latest-result-value {
    font-size: 28px;
  }

  .home-contact {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .home-contact-button {
    width: auto;
    min-width: 110px;
  }

}


@media (max-width: 560px) {

  .latest-results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .latest-result-card {
    padding: 14px;
    min-height: 98px;
  }

  .latest-result-game {
    font-size: 12px;
  }

  .latest-result-time {
    font-size: 10px;
  }

  .latest-result-value {
    font-size: 25px;
  }

  .home-contact {
    gap: 8px;
  }

  .home-contact-button {
    min-width: 105px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .site-footer {
    margin-top: 45px;
  }

}

/* ============================================================
   ADMIN LOGIN
   ============================================================ */

.auth-card {
    max-width: 560px;
    margin: 70px auto 100px;
    padding: 36px 40px 40px;
    background: #ffffff;
    border: 1px solid #e3e8f2;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(20, 40, 90, 0.10);
}

.auth-card .eyebrow {
    margin-bottom: 8px;
    color: #2454d8;
}

.auth-card h1 {
    margin: 0 0 28px;
}

/* Validation box */
.auth-card .validation {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #f2b8b5;
    border-radius: 8px;
    background: #fff5f5;
    color: #b42318;
}

/* Login validation summary */
.auth-card .validation.validation-summary-valid {
    display: none;
}

.auth-card .validation.validation-summary-errors {
    display: block;
    margin: 0 0 20px;
}

/* Login form */
.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each field */
.auth-card form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #17233c;
}

/* Inputs */
.auth-card form input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 13px;

    border: 1px solid #ccd5e3;
    border-radius: 8px;
    background: #fff;

    color: #17233c;
    font-size: 15px;

    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.auth-card form input:focus {
    border-color: #2454d8;
    box-shadow: 0 0 0 3px rgba(36, 84, 216, 0.12);
}

/* Login button */
.auth-card form .button {
    align-self: flex-start;
    min-height: 46px;
    padding: 10px 24px;
    margin-top: 4px;
}

/* Mobile */
@media (max-width: 640px) {
    .auth-card {
        margin: 35px 16px 60px;
        padding: 28px 22px 30px;
        border-radius: 12px;
    }

    .auth-card h1 {
        margin-bottom: 24px;
    }

    .auth-card form {
        gap: 16px;
    }

    .auth-card form .button {
        width: 100%;
    }
}
.result-editor .result-header,
.result-editor .result-row {
    grid-template-columns: minmax(0, 1fr) 110px 120px 130px;
}

.result-highlight {
    display: flex;
    align-items: center;
}

.highlight-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.highlight-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
    accent-color: #f59e0b;
}

.highlight-checkbox input:checked + span {
    color: #d97706;
    font-weight: 700;
}

.results-table-row.highlighted {
    background: linear-gradient(
        90deg,
        #fff7cc 0%,
        #fffbea 50%,
        #fff7cc 100%
    );

    box-shadow: inset 4px 0 0 #f59e0b;
}

.results-table-row.highlighted .results-game {
    font-weight: 800;
}

.results-table-row.highlighted .results-value {
    color: #d97706;
    font-weight: 800;
}

/* ============================================================
   HOME RESULTS TABLE - 4 COLUMNS
   Game | Time | Previous | Result
   ============================================================ */

.results-table-header,
.results-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 120px 120px;
    align-items: center;
}

.results-table-header > div,
.results-table-row > div {
    min-width: 0;
}


/* Header */

.results-table-header > div:nth-child(1) {
    text-align: left;
}

.results-table-header > div:nth-child(2),
.results-table-header > div:nth-child(3),
.results-table-header > div:nth-child(4) {
    text-align: center;
}


/* Rows */

.results-game {
    text-align: left;
}

.results-time,
.results-previous,
.results-value {
    text-align: center;
}


/* Result */

.results-value {
    font-weight: 800;
}


/* Highlighted result */

.results-table-row.highlighted {
    background: linear-gradient(
        90deg,
        #fff7cc 0%,
        #fffbea 50%,
        #fff7cc 100%
    );

    box-shadow: inset 4px 0 0 #f59e0b;
}

.results-table-row.highlighted .results-game {
    font-weight: 800;
}

.results-table-row.highlighted .results-value {
    color: #d97706;
    font-weight: 800;
}

/* ============================================================
   HOMEPAGE RESULTS TABLE
   ============================================================ */

.results-table {
    width: 100%;
}


/* ============================================================
   HEADER
   ============================================================ */

.results-table-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 90px;
    align-items: center;

    min-height: 44px;
    padding: 7px 18px;

    background: #3f3f3f;
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    border-top: 1px solid #2f2f2f;
    border-bottom: 1px solid #222;
}

.results-header-game {
    display: flex;
    flex-direction: column;
    justify-content: center;

    line-height: 1.15;
}

.results-header-game span:first-child {
    font-size: 12px;
}

.results-header-game span:last-child {
    font-size: 11px;
    margin-top: 3px;
}

.results-table-header > div:not(.results-header-game) {
    text-align: right;
}


/* ============================================================
   ROW
   ============================================================ */

.results-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 90px;
    align-items: center;

    min-height: 60px;

    padding: 8px 18px;

    text-decoration: none;
    color: inherit;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.results-table-row:hover {
    background: #f8fafc;
}


/* ============================================================
   GAME / TIME
   ============================================================ */

.results-game-info {
    min-width: 0;
}

.results-game {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    color: #111827;
}

.results-meta {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 3px;

    font-size: 12px;
    line-height: 1.2;

    color: #6b7280;
}

.record-chart {
    color: #2563eb;
    font-weight: 500;
}


/* ============================================================
   OLD / NEW
   ============================================================ */

.results-previous,
.results-value {
    text-align: right;

    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.results-previous {
    color: #111827;
}

.results-value {
    color: #111827;
}


/* ============================================================
   HIGHLIGHTED ROW
   ============================================================ */

.results-table-row.highlighted {
    background: #fff7cc;
    border-left: 4px solid #f59e0b;
    padding-left: 14px;
}

.results-table-row.highlighted:hover {
    background: #fff3b0;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .results-table-header,
    .results-table-row {
        grid-template-columns: minmax(0, 1fr) 65px 65px;
    }

    .results-table-header {
        padding: 7px 12px;
    }

    .results-table-row {
        padding: 9px 12px;
    }

    .results-game {
        font-size: 15px;
    }

    .results-meta {
        font-size: 11px;
    }

    .results-previous,
    .results-value {
        font-size: 22px;
    }
}


/* ============================================================
   ADMIN GAME FORM
   ------------------------------------------------------------
   Scoped to Create/Edit Game forms only.
   ============================================================ */

.panel:has(form input[name="Name"]) {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #dfe5ef;
    background: #ffffff;
    box-shadow:
        0 14px 36px rgba(16, 37, 90, .08),
        0 2px 8px rgba(16, 24, 40, .03);
}

/* Remove the large empty validation area when there are no errors. */
.panel:has(form input[name="Name"]) > form > .validation {
    display: none;
}

.panel:has(form input[name="Name"]) > form > .validation.validation-summary-errors {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    margin: 0 0 20px;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid #f0c5c5;
    border-radius: 9px;
    background: #fff5f5;
    color: #b42318;
    font-size: 13px;
    line-height: 1.45;
}

.panel:has(form input[name="Name"]) > form > .validation.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.panel:has(form input[name="Name"]) > form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    padding: 28px 30px 30px;
}

/* Field labels */
.panel:has(form input[name="Name"]) > form label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    color: #263247;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

/* Field widths */
.panel:has(form input[name="Name"]) > form label:has(input[name="Name"]) {
    flex: 1.5 1 240px;
}

.panel:has(form input[name="Name"]) > form label:has(input[name="HindiName"]) {
    flex: 1.2 1 200px;
}

.panel:has(form input[name="Name"]) > form label:has(input[name="ResultTime"]) {
    flex: 1.1 1 190px;
}


/* Text / number / time inputs */
.panel:has(form input[name="Name"]) > form input[type="text"],
.panel:has(form input[name="Name"]) > form input[type="number"],
.panel:has(form input[name="Name"]) > form input[type="time"],
.panel:has(form input[name="Name"]) > form input[name="Name"],
.panel:has(form input[name="Name"]) > form input[name="HindiName"],
.panel:has(form input[name="Name"]) > form input[name="ResultTime"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #cfd7e5;
    border-radius: 9px;
    background: #fbfcfe;
    color: #172033;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.panel:has(form input[name="Name"]) > form input[type="text"]:hover,
.panel:has(form input[name="Name"]) > form input[type="number"]:hover,
.panel:has(form input[name="Name"]) > form input[type="time"]:hover {
    border-color: #b8c3d5;
    background: #fff;
}

.panel:has(form input[name="Name"]) > form input[type="text"]:focus,
.panel:has(form input[name="Name"]) > form input[type="number"]:focus,
.panel:has(form input[name="Name"]) > form input[type="time"]:focus,
.panel:has(form input[name="Name"]) > form input[name="Name"]:focus,
.panel:has(form input[name="Name"]) > form input[name="HindiName"]:focus,
.panel:has(form input[name="Name"]) > form input[name="ResultTime"]:focus {
    border-color: var(--site-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 87, 238, .10);
}

/* Active checkbox */
.panel:has(form input[name="Name"]) > form label:has(input[type="checkbox"]) {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 4px;
    white-space: nowrap;
    cursor: pointer;
}

.panel:has(form input[name="Name"]) > form label:has(input[type="checkbox"]) input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--site-blue);
    cursor: pointer;
}

/* Validation messages */
.panel:has(form input[name="Name"]) > form .field-validation-error,
.panel:has(form input[name="Name"]) > form span[data-valmsg-for] {
    color: #b42318;
    font-size: 12px;
    font-weight: 500;
}

/* Buttons */
.panel:has(form input[name="Name"]) > form .button {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
}

.panel:has(form input[name="Name"]) > form .button.primary {
    box-shadow: 0 6px 16px rgba(23, 55, 201, .20);
}

.panel:has(form input[name="Name"]) > form .button:not(.primary) {
    background: #fff;
}

.panel:has(form input[name="Name"]) > form .button,
.panel:has(form input[name="Name"]) > form a.button {
    margin-top: 4px;
}

/* Anti-forgery fields */
.panel:has(form input[name="Name"]) > form input[type="hidden"] {
    display: none;
}

/* Responsive */
@media (max-width: 800px) {
    .panel:has(form input[name="Name"]) {
        max-width: none;
    }

    .panel:has(form input[name="Name"]) > form {
        padding: 24px 20px;
        gap: 16px;
    }

    .panel:has(form input[name="Name"]) > form label:has(input[name="Name"]),
    .panel:has(form input[name="Name"]) > form label:has(input[name="HindiName"]),
    .panel:has(form input[name="Name"]) > form label:has(input[name="ResultTime"]) {
        flex: 1 1 100%;
    }

    .panel:has(form input[name="Name"]) > form label:has(input[type="checkbox"]) {
        flex: 1 1 100%;
    }
}

@media (max-width: 560px) {
    .panel:has(form input[name="Name"]) > form {
        padding: 20px 16px 22px;
        gap: 14px;
    }

    .panel:has(form input[name="Name"]) > form .button {
        flex: 1 1 auto;
    }
}
/* =========================================================
   ADMIN FORM PANELS
   ========================================================= */

.form-panel {
    max-width: 900px;
    padding: 28px 26px;
}

.form-panel > form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
}

.form-panel > form > label {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #172033;
}

.form-panel > form > label input,
.form-panel > form > label select,
.form-panel > form > label textarea {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.form-panel > form > label textarea {
    min-height: 120px;
    resize: vertical;
}

.form-panel > form > label input:focus,
.form-panel > form > label select:focus,
.form-panel > form > label textarea:focus {
    border-color: #2457d6;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .12);
}

/* Checkbox fields */
.form-panel > form > label.check {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-height: 44px;
}

.form-panel > form > label.check input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
}

/* Validation summary:
   ASP.NET renders validation-summary-valid when there are no errors. */
.form-panel > form > .validation.validation-summary-valid {
    display: none;
}

.form-panel > form > .validation.validation-summary-errors {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 2px;
    padding: 12px 15px;
    border: 1px solid #f0c5c5;
    border-radius: 8px;
    background: #fff5f5;
    color: #b42318;
    font-size: 13px;
    line-height: 1.45;
}

.form-panel > form > .validation.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.form-panel > form > .validation.validation-summary-errors li + li {
    margin-top: 4px;
}

/* Buttons inside normal admin forms */
.form-panel > form > .button {
    margin-top: 2px;
}

/* Validation messages generated beside individual fields */
.form-panel .field-validation-error {
    color: #b42318;
    font-size: 12px;
    font-weight: 500;
}

.form-panel .input-validation-error {
    border-color: #e5484d !important;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .10);
}

/* Two-column layout on larger screens */
@media (min-width: 700px) {
    .form-panel > form > label:not(.check) {
        flex: 1 1 calc(50% - 9px);
    }

    .form-panel > form > .validation,
    .form-panel > form > .button {
        flex: 0 0 auto;
    }
}

/* Change-password forms usually have three fields; keep them compact
   and readable without affecting other form pages. */
.form-panel > form > label input[type="password"] {
    letter-spacing: .01em;
}

/* Mobile */
@media (max-width: 699px) {
    .form-panel {
        padding: 22px 18px;
    }

    .form-panel > form {
        gap: 15px;
    }

    .form-panel > form > label:not(.check) {
        flex-basis: 100%;
    }

    .form-panel > form > .button {
        width: 100%;
    }
}

.date-toolbar select {
    height: 40px;
    min-width: 180px;
    padding: 0 32px 0 10px;
    border: 1px solid #d5dae3;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    box-sizing: border-box;
    cursor: pointer;
}

.date-toolbar select:focus {
    outline: none;
    border-color: #165dff;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, .10);
}

.games-filter-panel {
    margin-bottom: 18px;
    padding: 16px 20px;
}

.games-filter-panel form {
    margin: 0;
}

.games-filter-panel label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #263247;
    font-size: 14px;
    font-weight: 600;
}

.games-filter-panel select {
    height: 40px;
    min-width: 200px;
    padding: 0 32px 0 10px;
    border: 1px solid #d5dae3;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font: inherit;
    box-sizing: border-box;
    cursor: pointer;
}

.games-filter-panel select:focus {
    outline: none;
    border-color: #165dff;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, .10);
}

.dashboard-filter-panel {
    margin-bottom: 18px;
}

.dashboard-filter-panel form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-filter-panel label {
    font-weight: 700;
}

.dashboard-filter-panel select {
    min-width: 220px;
}

@media (max-width: 700px) {
    .dashboard-filter-panel form {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-filter-panel select {
        width: 100%;
    }
}