/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

a {
    color: #0033A0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   GLOBAL TABLE SYSTEM (Unified)
   ============================================================ */

/* Base table */
.uefa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Header cells */
.uefa-table th {
    background-color: #0033A0; /* UEFA blue */
    color: white;
    padding: 8px;
    border: 1px solid #ccc;
    text-align: center;
}

/* Body cells */
.uefa-table td {
    padding: 6px;
    border: 1px solid #ccc;
    vertical-align: middle;
}

.uefa-table tbody tr.group-header td {
    background-color: #ffffff !important;
    font-weight: bold;
    border-top: 2px solid #999;
}

/* Alternating rows */
.uefa-table tbody tr:nth-child(even) td {
    background-color: #ffffff !important;
}

.uefa-table tbody tr:nth-child(odd) td {
    background-color: #d6d6d6 !important; /* darker grey */
}
/* Force group headers to always be white */
.uefa-table tbody tr.group-header td {
    background-color: #ffffff !important;
}

/* Override alternating-row rules for group headers */
.uefa-table tbody tr.group-header:nth-child(odd) td,
.uefa-table tbody tr.group-header:nth-child(even) td {
    background-color: #ffffff !important;
}

/* Specialized tables inherit from base */
.uefa-table-results {
}

.admin-table {
}

.schedule-table {
}

.allplayers-table {
}

/* =================================
   ALL PLAYERS TABLE (Matrix Layout)
   ================================= */

.allplayers-table {
    border-collapse: collapse;
    margin: 20px auto;
    width: auto;
}

.allplayers-table th,
.allplayers-table td {
    border: 1px solid #999;
    padding: 4px;
    text-align: center;
    vertical-align: top;
}

/* Player column */
.allplayers-table .player-header {
    background-color: #404040;
    color: white;
    padding: 6px;
    white-space: nowrap;
}

.allplayers-table .player-name {
    font-weight: bold;
    white-space: nowrap;
    text-align: left;
    padding-left: 8px;
}

/* Team header cells */
.allplayers-table .team-header {
    background-color: #404040;
    color: white;
    width: 40px;
    padding: 0;
}

/* Team logos */
.team-logo {
    width: 35px;
    height: 35px;
    display: block;
    margin: 0 auto;
}

/* Vertical team names */
.verticalText {
    writing-mode: vertical-rl;
    transform: none;
    font-size: 12px;
    white-space: nowrap;
    margin-top: 4px;
}

/* Pick cells */
.pick-cell {
    white-space: nowrap;
    font-size: 14px;
    padding: 4px;
}

/* Total column */
.total-col-head {
    background-color: #404040;
    color: white;
    font-weight: bold;
    padding: 6px;
    white-space: nowrap;
    text-align: center;
}
/* Total column */
.total-col {
    background-color: #404040;
    color: #0033A0;
    font-weight: bold;
    padding: 6px;
    white-space: nowrap;
    text-align: center;
}

/* Alternating rows */
.allplayers-table tr:nth-child(even) td {
    background-color: #ffffff;
}

.allplayers-table tr:nth-child(odd) td {
    background-color: #e6e6e6;
}

.selector-container input[type="date"] {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #999;
}

.results-container .uefa-table-results {
    width: auto;
    margin: 0 auto;
    table-layout: auto;
}
/* Base styling for results tables */
.uefa-table-results {
    border-collapse: collapse;
    margin: 0 auto;
}

/* ============================================================
   RESULTS TABLE (Personal Results & Standings)
   ============================================================ */
/* Personal Results */
.uefa-results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.uefa-team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uefa-team-cell img {
    width: 35px;
    height: 35px;
}

/* Standings */
.results-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

/* Alternating rows for Standings */
.uefa-table-results tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

.uefa-table-results tbody tr:nth-child(even) td {
    background-color: #e6e6e6;
}

/* ============================
   Game Schedule 
   ============================ */

/*.schedule-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}*/

.schedule-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 30px 0;
}

.schedule-table {
    width: auto;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: auto;
}

/* Header row */
.schedule-table th {
    background: #0033a0;
    color: white;
    padding: 6px 10px;
    border: 1px solid #999;
    text-align: center;
    white-space: nowrap;
}

/* Data cells */
.schedule-table td {
    padding: 6px 10px;
    border: 1px solid #ccc;
    text-align: center;
}

/* Alternating rows */
.schedule-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

.schedule-table tbody tr:nth-child(even) td {
    background-color: #f5f5f5;
}

/* Team icons */
/*.schedule-table img {
    width: 32px;
    height: 32px;
}*/

.schedule-table img {
    width: 28px;
    height: 28px;
}

/* ============================
   Team Results 
   ============================ */

/* Team selector form */
.team-select-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px 0;
    text-align: center;
}

.team-select-form select {
    padding: 6px 10px;
    font-size: 15px;
    border-radius: 4px;
    border: 1px solid #999;
}

.team-select-form .button.inline {
    padding: 6px 12px;
    margin-left: 10px;
}

/* Header row (team icon + name) */
.schedule-table thead th {
    background: #0033a0;
    color: white;
    font-size: 20px;
    padding: 10px;
    text-align: center;
}

/* Footer row (W‑L‑T + percentage) */
.schedule-table tfoot th {
    background: #0033a0;
    color: white;
    padding: 10px;
    font-size: 18px;
    text-align: center;
}
/* ============================
   Help Page Styling
   ============================ */

.help-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 30px;
    background: #ffffff;
}

.help-titlebar {
    font-size: 24px;
    font-weight: bold;
    background: #0033a0;
    color: white;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.freeForm.text {
    font-size: 16px;
    line-height: 1.6;
}

.freeForm.text h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 20px;
    color: #0033a0;
}

.freeForm.text p {
    margin-bottom: 15px;
}

.freeForm.text a {
    font-weight: bold;
    color: #0033a0;
    text-decoration: none;
}

.freeForm.text a:hover {
    text-decoration: underline;
}

/* ============================
   Login Page Styling
   ============================ */

.uefa-login-panel {
    max-width: 400px;
    margin: 40px auto;
    padding: 25px 30px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.uefa-login-panel h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.uefa-login-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uefa-login-panel label {
    font-weight: bold;
}

.uefa-login-panel input[type="text"],
.uefa-login-panel input[type="password"] {
    padding: 8px 10px;
    font-size: 15px;
    border-radius: 4px;
    border: 1px solid #999;
}

.uefa-login-panel input[type="submit"] {
    margin-top: 10px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* ============================================================
   LAYOUT — HEADER, NAV, FOOTER
   ============================================================ */

header {
    background-color: #0033A0;
    color: white;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 26px;
    font-weight: 600;
}

header .nav {
    display: flex;
    gap: 25px;
}

header .nav a {
    color: white;
    font-weight: 500;
}

header .nav a:hover {
    color: #FFD700; /* gold accent */
}

/* Gold accent line under header */
.header-accent {
    height: 4px;
    background-color: #FFD700;
}

/* Menu bar */
.uefa-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background-color: #dcdcdc;
    padding: 6px 0;
    border-bottom: 1px solid #ccc;
}

.uefa-menu a {
    position: relative;
    padding: 0 10px;
}

.uefa-menu a:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -5px;
    color: #003366;
    font-weight: bold;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h2, h3 {
    color: #0033A0;
    font-weight: 600;
}

.results-title {
    font-size: 24px;
    font-weight: 600;
    color: #0033A0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* ============================================================
   PANELS / CARDS (Unified)
   ============================================================ */

.uefa-panel-base {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    padding: 25px;
    margin: 40px auto;
}

.uefa-panel {
    max-width: 1200px;
    composes: uefa-panel-base;
}

.uefa-login-panel {
    width: 380px;
    margin-top: 120px;
    composes: uefa-panel-base;
}

.selector-container,
.results-container {
    composes: uefa-panel-base;
}

.update-picks-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ============================================================
   FORMS (Unified)
   ============================================================ */

.uefa-input-base {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
}

.uefa-input-small {
    width: 150px;
}

.uefa-input-compact {
    width: 70px;
}

.uefa-form-field {
    width: 220px;
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
}

.admin-edit-form {
    width: 360px;
    margin: 20px auto;
    padding: 15px 20px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.admin-edit-form h3 {
    margin-bottom: 12px;
    color: #0033A0;
    font-size: 20px;
}

/* ============================================================
   BUTTONS (Unified)
   ============================================================ */

.uefa-button-primary {
    padding: 10px 20px;
    background-color: #0078D7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.uefa-button-primary:hover {
    background-color: #005a9e;
}

/* ============================================================
   PICK PAGE (Modernized)
   ============================================================ */

.uefa-group-box {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
    background-color: #ffffff;
}

.uefa-group-title {
    text-align: center;
    margin-bottom: 12px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.uefa-margin-top {
    margin-top: 20px;
}

.uefa-center {
    text-align: center;
}

.uefa-flex {
    display: flex;
    align-items: center;
}

.uefa-center-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dreamteam-table {
    width: 600px;
    margin: 0 auto;
    table-layout: fixed; /* forces equal column widths */
}

.dreamteam-table th,
.dreamteam-table td {
    width: 33%; /* 3 equal columns */
}