html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Custom Golf Theme Colors & Variables */
:root {
    --golf-dark-green: #1b4332;
    --golf-medium-green: #2d6a4f;
    --golf-light-green: #40916c;
    --golf-grass: #52b788;
    --golf-sand: #f4f1de;
    --golf-flag-yellow: #e9c46a;
    --golf-slate: #212529;
    /* Exclusive Championship Dark Theme CSS Variables */
    --golf-dark-bg: #0a1911;
    --golf-dark-surface: #112a1e;
    --golf-dark-well: #183c2b;
    --golf-dark-border: #23543d;
    --golf-dark-text-main: #ffffff;
    --golf-dark-text-muted: #a4c2b2;
}

/* Premium Typography & Global Background */
/*body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #07130d;
    color: var(--golf-slate);*/
    /* Deep dark green gradient overlay + custom local links map image */
    /*background-image: linear-gradient(180deg, rgba(7, 19, 13, 0.88) 0%, rgba(14, 32, 23, 0.94) 100%), url('/images/golf-links-dark.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}*/

/* Premium Typography & Global Background */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #07130d; /* Falls back to deep pine green if image is loading */
    color: var(--golf-slate);
    /* 1. Deep, rich dark green-to-charcoal overlay */
    /* 2. Path pointing directly to your new local image file */
    background-image: linear-gradient(180deg, rgba(7, 19, 13, 0.88) 0%, rgba(14, 32, 23, 0.94) 100%), url('/images/Background2.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 60px;
}



/*body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: var(--golf-slate);
    background-image: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(248,249,250,1) 100%), url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&q=80&w=1920');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}*/

/* Pristine Navigation Bar */
.navbar-golf {
    background-color: var(--golf-dark-green) !important;
    border-bottom: 4px solid var(--golf-flag-yellow);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .navbar-golf .navbar-brand {
        font-weight: 800;
        letter-spacing: 0.5px;
        color: #ffffff !important;
    }

    .navbar-golf .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 600;
        transition: all 0.2s ease;
    }

        .navbar-golf .nav-link:hover {
            color: var(--golf-flag-yellow) !important;
            transform: translateY(-1px);
        }

/* Custom "Fairway" & "Sand" Buttons */
.btn-golf-primary {
    background-color: var(--golf-dark-green);
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .btn-golf-primary:hover {
        background-color: var(--golf-medium-green);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
        transform: translateY(-1px);
    }

.btn-golf-accent {
    background-color: var(--golf-flag-yellow);
    color: var(--golf-slate);
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

    .btn-golf-accent:hover {
        background-color: #dfb23b;
        color: var(--golf-slate);
        box-shadow: 0 4px 12px rgba(233, 196, 106, 0.3);
        transform: translateY(-1px);
    }

/* Custom Golf Cards */
.card-golf {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    overflow: hidden;
}

    .card-golf .card-header {
        font-weight: 700;
        letter-spacing: 0.3px;
        border-bottom: none;
    }

.card-golf-admin {
    border-top: 5px solid var(--golf-light-green) !important;
}

/* Beautiful Table Styling */
.table-golf {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

    .table-golf thead {
        background-color: var(--golf-dark-green) !important;
        color: #ffffff !important;
    }

    .table-golf th {
        font-weight: 600;
        border: none !important;
    }

/* ========================================================== */
/* REUSABLE GOLF CHAMPIONSHIP DARK MODE UTILITIES              */
/* ========================================================== */

.golf-dark-container {
    background-color: var(--golf-dark-bg);
    color: var(--golf-dark-text-main);
}

.golf-dark-card {
    background-color: var(--golf-dark-surface);
    border: 1px solid var(--golf-dark-border);
}

.golf-dark-well {
    background-color: var(--golf-dark-well);
    border: 1px solid var(--golf-dark-border);
    color: var(--golf-dark-text-main);
}

/* Buttons */
.btn-golf-gold {
    background-color: var(--golf-flag-yellow);
    color: var(--golf-slate);
    border: 1px solid var(--golf-flag-yellow);
    font-weight: 600;
}

    .btn-golf-gold:hover {
        background-color: #dfb23b;
        color: var(--golf-slate);
        border-color: #dfb23b;
    }

.btn-golf-outline-gold {
    background-color: transparent;
    color: var(--golf-flag-yellow);
    border: 1px solid var(--golf-flag-yellow);
    font-weight: 600;
}

    .btn-golf-outline-gold:hover {
        background-color: var(--golf-flag-yellow);
        color: var(--golf-slate);
    }

.btn-golf-green {
    background-color: var(--golf-medium-green);
    color: #ffffff;
    border: 1px solid var(--golf-medium-green);
    font-weight: 600;
}

    .btn-golf-green:hover {
        background-color: var(--golf-dark-green);
        color: #ffffff;
    }

/* Form Fields */
.golf-dark-select, .golf-dark-input {
    background-color: var(--golf-dark-bg);
    color: var(--golf-dark-text-main);
    border: 1px solid var(--golf-dark-border);
}

    .golf-dark-select:focus, .golf-dark-input:focus {
        background-color: var(--golf-dark-bg);
        color: var(--golf-dark-text-main);
        border-color: var(--golf-flag-yellow);
        box-shadow: 0 0 0 0.25rem rgba(233, 196, 106, 0.25);
    }

/* Dark Mode Badges */
.badge-golf-gold {
    background-color: rgba(233, 196, 106, 0.15);
    color: var(--golf-flag-yellow);
    border: 1px solid rgba(233, 196, 106, 0.4);
}

.badge-golf-pts {
    background-color: var(--golf-flag-yellow);
    color: var(--golf-slate);
    font-weight: 700;
}

.badge-golf-teetime {
    background-color: var(--golf-dark-bg);
    color: var(--golf-flag-yellow);
    border: 1px solid rgba(233, 196, 106, 0.25);
}

/* Perfect Table Isolations */
.golf-dark-table-container {
    background-color: var(--golf-dark-well);
    border: 1px solid var(--golf-dark-border);
    border-radius: 8px;
    padding: 12px;
}

table.golf-dark-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--golf-dark-well);
    color: var(--golf-dark-text-main);
}

    table.golf-dark-table thead th {
        background-color: var(--golf-dark-surface) !important;
        color: var(--golf-flag-yellow) !important;
        border-bottom: 2px solid var(--golf-dark-border) !important;
        padding: 12px 10px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    table.golf-dark-table tbody tr td {
        background-color: var(--golf-dark-well) !important;
        color: var(--golf-dark-text-main) !important;
        border-bottom: 1px solid var(--golf-dark-border) !important;
        padding: 14px 10px;
    }

    table.golf-dark-table tbody tr:hover td {
        background-color: #1d4833 !important; /* Soft highlight green */
    }

    /* Active Target Highlight Row */
    table.golf-dark-table tbody tr.golf-row-active td {
        background-color: rgba(64, 145, 108, 0.22) !important;
        border-left: 4px solid var(--golf-grass) !important;
    }

/* Dark Mode Modal */
.golf-dark-modal-content {
    background-color: var(--golf-dark-surface);
    color: var(--golf-dark-text-main);
    border: 1px solid var(--golf-flag-yellow);
}

.golf-dark-modal-header {
    background-color: var(--golf-dark-bg);
    border-bottom: 1px solid var(--golf-dark-border);
}

.golf-dark-modal-footer {
    background-color: var(--golf-dark-bg);
    border-top: 1px solid var(--golf-dark-border);
}
/* ========================================================== */
/* ROSTER SLOT DARK THEMING (MY PICKS PAGE)                  */
/* ========================================================== */

/* The state when a slot is empty (Dashed border + Deep green-charcoal background) */
.golf-slot-empty {
    background-color: var(--golf-dark-bg) !important;
    border: 1.5px dashed var(--golf-dark-border) !important;
    color: var(--golf-dark-text-muted) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out;
}

/* The state when a slot has a selected golfer (Solid green border + Sturdy green surface) */
.golf-slot-filled {
    background-color: var(--golf-dark-well) !important;
    border: 2px solid var(--golf-medium-green) !important;
    color: var(--golf-dark-text-main) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease-in-out;
}

    .golf-slot-filled strong {
        color: #ffffff !important;
    }

.golf-dark-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important; /* Brighter white with 60% opacity */
    opacity: 1; /* Required to override Firefox's default placeholder transparency */
}

/* DataGolf Ranking Differential Tiers for Dark Theme */
.badge-dg-g3 {
    background-color: #198754;
    color: #ffffff;
    border: 1px solid #198754;
}
/* Strong Green */
.badge-dg-g2 {
    background-color: rgba(25, 135, 84, 0.3);
    color: #75b798;
    border: 1px solid #198754;
}
/* Mid Green */
.badge-dg-g1 {
    background-color: transparent;
    color: #75b798;
    border: 1px dashed #75b798;
}
/* Light Green */

.badge-dg-r3 {
    background-color: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
}
/* Strong Red */
.badge-dg-r2 {
    background-color: rgba(220, 53, 69, 0.3);
    color: #ea868f;
    border: 1px solid #dc3545;
}
/* Mid Red */
.badge-dg-r1 {
    background-color: transparent;
    color: #ea868f;
    border: 1px dashed #ea868f;
}
/* Light Red */

.badge-dg-neutral {
    background-color: #343a40;
    color: #adb5bd;
    border: 1px solid #495057;
}
/* Gray */