body {
    background-image: url('../images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
    color: white;
}

.container {
    background: rgba(0, 0, 0, 0.35);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.form-select,
.form-control {
    min-height: 50px;
}

label,
p,
span {
    color: white;
}

.badge {
    font-size: 14px;
    padding: 8px 12px;
}

.card {
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
}

p {
    font-size: 1.4rem;
}

.form-control {
    font-size: 1.3rem;
    min-height: 50px;
    font-weight: bold;
}

input[type="email"],
input[type="text"],

.playoff-result-card {
    border: 2px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.playoff-extra-row {
    margin-top: 25px;
}


.playoff-score-input {
    max-width: 150px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.4rem;
}
input[type="password"] {
    max-width: 500px;
    margin: 0 auto;
}

table {
    color: white;
    background: rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

th {
    color: #ffc107;
    font-weight: bold;
}

th,
td {
    padding: 8px 12px;
}

table td,
table th {
    font-size: 25px !important;
}

.gold-row {
    background-color: #e6d9b3 !important;
}

.silver-row {
    background-color: #d3d3d3 !important;
}

.bronze-row {
    background-color: #cd7f32 !important;
}

.gold-row td,
.gold-row td strong,
.silver-row td,
.silver-row td strong,
.bronze-row td,
.bronze-row td strong {
    color: #000 !important;
}

.fixture {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .fixture {
        font-size: 1.3rem !important;
    }

    .fixture img {
        width: 40px;
    }
}

.points-awarded {
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 600px;
    margin: 0 auto;
}

.fixture img {
    vertical-align: middle;
}

.card-title {
    margin-bottom: 20px;
}

.podium-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.podium-points {
    font-size: 1.1rem;
}

.site-version {
    color: #bfc9d9;
    font-size: 1rem;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.points-column {
    text-align: center;
}

.password-wrapper {
    position: relative;
    width: 500px;
    margin: 0 auto 15px auto;
}

.password-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 70px;
}

.password-wrapper span {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    z-index: 100;
}

.landing-heading {
    color: #FFD700;
    font-weight: bold;
}

.username-note {
    margin-top: -14px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.username-note small {
    margin: 0 !important;
    font-size: 1.10rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-register,
.btn-login {
    display: inline-block;
    width: 150px;
    padding: 10px 0;
    text-align: center;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem !important;
    font-family: inherit !important;
    font-weight: 600;
    line-height: 1.2;
}

.btn-register {
    background: #198754;
    border: none;
}

.btn-login {
    background: #0d6efd;
}

.team-name {
    white-space: nowrap;
}

.weekly-full .form-control {
    max-width: 100% !important;
    margin: 0 !important;
}

.weekly-box .form-control {
    margin-bottom: 20px !important;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.player-link {
    color: black !important;
    text-decoration: none !important;
}

.player-link:hover {
    text-decoration: none;
    color: black;
}

.predictor-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.predictor-row {
    display: grid;
    grid-template-columns: 1fr 150px 1fr;
    align-items: center;
    margin-bottom: 18px;
    color: white;
    font-size: 1.4rem;
    text-align: center;
}

.predictor-pos {
    text-align: right;
    padding-right: 20px;
}

.predictor-logo img {
    height: 60px;
}

.predictor-team {
    text-align: left;
    padding-left: 20px;
}

/* ================================
   SUPER LEAGUE TABLE FIXES
   ================================ */

.sl-row,
.sl-row td,
.sl-row a,
.sl-row span {
    background-color: transparent !important;
    color: white !important;
}

.sl-top6,
.sl-top6 td,
.sl-top6 a,
.sl-top6 span {
    background-color: #e2fae1 !important;
    color: black !important;
}

.table-bordered th {
    background-color: transparent !important;
    color: white !important;
    border-color: #ffffff55 !important;
}

.table-bordered td,
.table-bordered th {
    border-color: #ffffff55 !important;
}

.team-name + img,
img[style*="background:#d0d0d0"] {
    background: rgba(255,255,255,0.25) !important;
}

table.table-bordered tr.sl-top6 td,
table.table-bordered tr.sl-top6 th {
    border: 2px solid black !important;
}

/* ================================
   COMPARE PAGE FIXES
   ================================ */

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 2px solid #ffffff33;
    border-radius: 8px;
    overflow: hidden;
}

.compare-table th,
.compare-table td {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    padding: 12px;
}

.compare-table tr {
    background-color: rgba(255,255,255,0.05);
}

.compare-table tr.win {
    background-color: rgba(0, 255, 0, 0.25) !important;
}

.compare-table tr.loss {
    background-color: rgba(255, 0, 0, 0.25) !important;
}

.compare-table tr.draw {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* ================================
   COMPARE SUMMARY FIXES (TRANSPARENT)
   ================================ */

.compare-summary {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08) !important; /* FULLY TRANSPARENT */
    border: 2px solid #ffffff33 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}

.compare-summary h2,
.compare-summary h3 {
    color: #FFD700 !important;
    font-weight: bold;
}

.compare-summary p {
    font-size: 1.4rem !important;
    margin: 10px 0;
    color: #ffffff !important;
}

.compare-summary strong {
    color: #00eaff !important;
}

.playoff-match {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Elimination Finals */
.elimination-card {
    background: #1e4d8f;
    color: white;
}

/* Semi Finals */
.semi-card {
    background: #d97706;
    color: white;
}

/* Grand Final */
.grandfinal-card {
    background: #eab308;
    color: black;
}
.grandfinal-card {
    background: #eab308;
    color: white;
    font-size: 1.4rem;
    border: 3px solid #ffd700;
    padding: 20px;
}
.playoff-result-card {
    cursor: pointer;
    transition: 0.2s;
}

.playoff-result-card:hover {
    transform: scale(1.02);
}

.playoff-card .row {
    margin-bottom: 10px !important;
}

.playoff-card .form-label {
    margin-bottom: 5px;
}

.playoff-card .card-body {
    padding: 20px;
}

.playoff-v {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

/* ================================
   PLAYER PICK HISTORY TABLE
   ================================ */

table.player-history-table {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: transparent !important;
    --bs-table-color: #ffffff !important;

    width: 100%;
    background-color: transparent !important;
    border-collapse: collapse;
}

/* Force every table cell to be transparent */
table.player-history-table > thead > tr > th,
table.player-history-table > tbody > tr > td {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* Orange/gold column headings */
table.player-history-table > thead > tr > th {
    color: #ffc107 !important;
    font-weight: bold !important;
}

/* White history information */
table.player-history-table > tbody > tr > td {
    color: #ffffff !important;
}