/* Shared Fore Seasons golf-club theme — matches homepage */

:root {
    --fs-fairway: #1A4A32;
    --fs-fairway-deep: #0F2A1C;
    --fs-cream: #F7F4EA;
    --fs-navy: #10243A;
    --fs-burgundy: #8B1E36;
    --fs-gold: #C9A15B;
    --fs-green: #2E7D4F;
    --fs-text: #1C2420;
    --fs-muted: #2A332C;
    --fs-glass: rgba(247, 244, 234, 0.42);
}

body {
    background-color: var(--fs-fairway-deep) !important;
    background-image:
        linear-gradient(180deg, rgba(8, 22, 14, 0.28), rgba(8, 22, 14, 0.18)),
        url("imgs/hole1BG.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--fs-text);
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

#footerBox {
    padding: 0.15rem 0 1.4rem;
}

#footerBox img {
    filter: brightness(0) invert(1);
    opacity: 0.32;
}

/* Navigation — logo on the right */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.navBarBG {
    background: rgba(8, 22, 14, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-nav .row,
.navBarBG .row {
    box-shadow: none !important;
    border-radius: 0 !important;
}

.navBarBG .justify-content-between {
    flex-direction: row;
}

.foreSeasonsLogoNav {
    height: 2.4rem;
    margin-left: auto;
}

/* Slide-out menu */
.overlay {
    background: rgba(12, 24, 18, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.overlay a,
.overlay button {
    color: #E8EEE8;
    font-size: 1.35rem;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
}

.overlay a:hover,
.overlay a:focus,
.overlay button:hover {
    color: var(--fs-gold);
}

.closebtn {
    color: #F4F7F4 !important;
}

/* Glass cards */
.bg-white,
.memberTitleBox,
.adminTitleBox,
.wrapperCont,
.tabRegContainer.bg-white {
    background: var(--fs-glass) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0;
    color: var(--fs-navy);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.memberHeading,
.homeHeading,
.statusHeading,
.tabRegHeading {
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
    color: var(--fs-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.BGForeSeasons {
    background: rgba(18, 53, 38, 0.48) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0;
}

.BGForeSeasons .memberHeading,
.BGForeSeasons .homeHeading,
.BGForeSeasons.homeHeading {
    color: #F4F7F4 !important;
}

.statBox {
    background: rgba(18, 53, 38, 0.48) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    color: #F4F7F4 !important;
}

/* Buttons */
.BGblue,
.mainMenuBtn,
.statMenuBtn {
    background: var(--fs-glass) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--fs-navy) !important;
    border: 0 !important;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.admin-menu {
    width: 100%;
    margin: 0 auto;
    padding: 5.2rem 1rem 1.75rem;
}

.admin-menu .adminTitleBox {
    width: 42% !important;
    min-width: 14rem;
    height: auto !important;
    margin: 0.35rem auto 0.85rem !important;
    padding: 0.6rem 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-menu .memberHeading {
    font-size: 1rem !important;
    margin: 0;
}

.admin-menu-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.admin-menu-list form {
    margin: 0;
    width: 42%;
    min-width: 14rem;
}

.admin-menu .mainMenuBtn {
    width: 100% !important;
    margin: 0 !important;
    padding: 0.7rem 0.85rem !important;
    min-height: 2.75rem;
    height: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    text-align: center;
}

.admin-menu-list > a.mainMenuBtn {
    width: 42% !important;
    min-width: 14rem;
}

.admin-menu .menuFont {
    font-size: 0.88rem !important;
    font-weight: 600;
    margin: 0 !important;
    line-height: 1.25;
    text-wrap: wrap !important;
}

.mainMenuBtn:hover,
.mainMenuBtn:focus,
.statMenuBtn:hover,
.statMenuBtn:focus {
    background: rgba(255, 253, 246, 0.62) !important;
}

.button-gold {
    background-color: var(--fs-gold) !important;
    color: #1C2420 !important;
    border: 0;
    font-weight: 700;
    border-radius: 999px;
}

.btn-success {
    background-color: var(--fs-green) !important;
    border-color: var(--fs-green) !important;
    border-radius: 999px;
}

.btn-primary {
    background-color: var(--fs-navy) !important;
    border-color: var(--fs-navy) !important;
    border-radius: 999px;
}

.btn-info {
    background-color: var(--fs-navy) !important;
    border-color: var(--fs-navy) !important;
    color: #fff !important;
    border-radius: 999px;
}

.btn-warning {
    background-color: var(--fs-gold) !important;
    border-color: var(--fs-gold) !important;
    color: #1C2420 !important;
    border-radius: 999px;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 14px;
    border: 0;
    background: rgba(247, 244, 234, 0.72);
    color: var(--fs-text);
}

.form-label,
.form-outline label {
    font-weight: 600;
    color: var(--fs-muted);
}

/* Bootstrap cards and tables */
.card {
    background: var(--fs-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0;
    border-radius: 18px;
    color: var(--fs-navy);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom-color: rgba(16, 36, 58, 0.12);
    font-weight: 700;
}

.card-header.bg-primary,
.league-header {
    background-color: rgba(16, 36, 58, 0.82) !important;
    color: #fff !important;
}

.card-header.bg-warning {
    background-color: var(--fs-gold) !important;
    color: #1C2420 !important;
}

.card-header.bg-secondary,
.card-header.bg-dark,
.card-header.bg-success,
.card-header.bg-info {
    background-color: rgba(18, 53, 38, 0.72) !important;
    color: #F4F7F4 !important;
}

.addScoreFormContent .scatHeaderText {
    color: var(--fs-navy) !important;
}

.table {
    background: rgba(247, 244, 234, 0.55);
    color: var(--fs-navy);
}

.table thead th {
    background: rgba(16, 36, 58, 0.88);
    color: #fff;
    border-color: #163056;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
    border-color: rgba(16, 36, 58, 0.12);
}

.team-box {
    background: var(--fs-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: transparent;
}

.team-box .team-header,
.team-font {
    background: rgba(16, 36, 58, 0.88);
    color: #fff;
}

.lead-label,
.team-box .lead-label {
    background: var(--fs-green);
    color: #fff;
}

.team-box table thead th,
.team-box th {
    background-color: rgba(232, 239, 230, 0.85) !important;
    color: var(--fs-navy) !important;
}

.bg-light {
    background-color: var(--fs-glass) !important;
}

.addScoreFormContent,
.newRoundFormContent,
.addTeamScoreFormContent {
    background: rgba(247, 244, 234, 0.94) !important;
    border: 0 !important;
    border-radius: 24px !important;
}

.addScoreFormContent .text-white,
.addScoreFormContent .teamScoreText,
.addScoreFormContent label {
    color: var(--fs-navy) !important;
}

.addScoreBtn.btn-success,
.addScoreFormContent .addScoreBtn {
    background: var(--fs-green) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
}

.modal-content {
    background: rgba(247, 244, 234, 0.96);
    border-radius: 16px;
}

.modal-header {
    background-color: var(--fs-burgundy);
    color: #fff;
}

.popup-content {
    background: rgba(247, 244, 234, 0.94);
    border-color: var(--fs-navy) !important;
}

#skinsDropdownMenu,
#roundsDropdownMenu,
.dropdown-content {
    background-color: rgba(247, 244, 234, 0.96) !important;
    border-color: #D8D2C4 !important;
}

#skinsDropdownMenu p,
#roundsDropdownMenu p {
    color: var(--fs-text);
}

#skinsDropdownMenu p:hover,
#roundsDropdownMenu p:hover {
    background-color: #E8EFE6;
}

.tabRegBtn {
    background: var(--fs-glass) !important;
    border-color: rgba(20, 51, 35, 0.18) !important;
    color: var(--fs-navy);
}

.tabRegBtn:hover {
    background: rgba(255, 253, 246, 0.62) !important;
}

.liveViewBG .BGForeSeasons,
.liveFinalBG .BGForeSeasons {
    background: rgba(18, 53, 38, 0.72) !important;
}

.liveViewBG .homeHeading,
.liveFinalBG .homeHeading {
    color: #F4F7F4 !important;
}

.tourneyLiveContainer.bg-light {
    background: rgba(247, 244, 234, 0.82) !important;
}

.text-primary {
    color: var(--fs-navy) !important;
}

.text-team {
    color: var(--fs-navy) !important;
}

.tourney-scores {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tourney-scores > .row {
    width: 100%;
    justify-content: center;
}

.tourney-scores .table {
    margin-left: auto;
    margin-right: auto;
}

.tourney-team-card {
    background: rgba(247, 244, 234, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 0.85rem 0.75rem 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    height: 100%;
    color: var(--fs-navy);
}

.tourney-team-card .text-team,
.tourney-team-card h6 {
    color: var(--fs-navy) !important;
}

.tourney-team-card .row.border-bottom {
    border-color: rgba(16, 36, 58, 0.16) !important;
}

.tourney-empty-note {
    color: #F4F7F4;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

.winnerBox {
    background: rgba(247, 244, 234, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0 !important;
    border-radius: 18px;
    padding: 1rem 0.9rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: var(--fs-navy);
}

.winnerBox h2,
.winnerBox h5,
.winnerBox .winnerText,
.winnerBox p {
    color: var(--fs-navy);
}

.winnerBox h2 {
    font-weight: 700;
    border-color: rgba(16, 36, 58, 0.16) !important;
    padding-bottom: 0.4rem;
}

.winnerBox .BGblue {
    background: rgba(16, 36, 58, 0.88) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px;
    padding: 0.45rem 0.75rem;
    box-shadow: none;
}

.winnerBox .text-success {
    color: var(--fs-green) !important;
    background: rgba(46, 125, 79, 0.12);
    border-color: rgba(46, 125, 79, 0.28) !important;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

.tonys-page {
    max-width: 1100px;
}

.tonys-card {
    background: rgba(247, 244, 234, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 1.1rem 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: var(--fs-navy);
}

.tonys-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tonys-season-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fs-navy);
}

.tonys-subtitle {
    color: var(--fs-muted);
    font-size: 0.92rem;
}

.tonys-admin-link,
.tonys-export-btn {
    background: var(--fs-navy) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tonys-export-btn {
    background: var(--fs-green) !important;
}

.tonys-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.tonys-filter {
    max-width: 240px;
    min-width: 160px;
    flex: 1;
}

.tonys-count {
    font-size: 0.9rem;
    color: var(--fs-muted);
}

.tonys-table {
    color: var(--fs-navy);
    margin-bottom: 0;
}

.tonys-table thead th {
    background: var(--fs-fairway);
    color: #F4F7F4;
    font-weight: 600;
    border: 0;
    white-space: nowrap;
}

.tonys-table .sortable-th {
    cursor: pointer;
    user-select: none;
}

.tonys-table .sortable-th:hover {
    background: #163c29;
}

.tonys-table .sort-indicator::after {
    content: " \2195";
    opacity: 0.55;
    font-size: 0.8em;
}

.tonys-table .sort-asc .sort-indicator::after {
    content: " \2191";
    opacity: 1;
}

.tonys-table .sort-desc .sort-indicator::after {
    content: " \2193";
    opacity: 1;
}

.tonys-table tbody td {
    vertical-align: middle;
    border-color: rgba(16, 36, 58, 0.12);
}

.tonys-table tbody tr:nth-child(even) {
    background: rgba(26, 74, 50, 0.06);
}

.tee-badge {
    display: inline-block;
    min-width: 4.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(16, 36, 58, 0.08);
}

.tee-badge.tee-blue { background: #1d4e89; color: #fff; }
.tee-badge.tee-white { background: #f4f4f4; color: #1c2420; border: 1px solid rgba(16, 36, 58, 0.2); }
.tee-badge.tee-red { background: #8B1E36; color: #fff; }
.tee-badge.tee-gold { background: #C9A15B; color: #1c2420; }
.tee-badge.tee-green { background: #2E7D4F; color: #fff; }

@media (max-width: 767.98px) {
    .tonys-card-header {
        flex-direction: column;
    }

    .tonys-filter {
        max-width: none;
    }

    .tonys-export-btn,
    .tonys-admin-link {
        width: 100%;
    }

    .tourney-scores {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .tourney-scores > .row > [class*="col"] {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .tourney-scores .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tourney-scores .table {
        width: 100%;
        max-width: 100%;
    }

    .tourney-scores .table th,
    .tourney-scores .table td {
        text-align: center;
        vertical-align: middle;
    }

    .tourney-scores h6 {
        text-align: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
