/* ==========================================================================
   Jack Serame Tournament – Custom Styles
   Colours: light blue (#3a7bd5), white (#fff), black (#000)
   ========================================================================== */

/* ---------- Bootstrap overrides ---------- */
:root {
    --bs-primary: #3a7bd5;
    --bs-primary-rgb: 58, 123, 213;
    --bs-light-blue: #e8f1fc;       /* used for navbar & light backgrounds */
    --bs-dark: #000000;
}

body {
    background-color: #ffffff;
    color: #212529;                 /* dark grey / near black */
}

/* ---------- Links ---------- */
a {
    color: var(--bs-primary);
    text-decoration: none;
}
a:hover {
    color: #2b64b3;
    text-decoration: underline;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-primary:hover {
    background-color: #2b64b3;
    border-color: #2b64b3;
}

/* ---------- Navbar (public) ---------- */
.navbar {
    background-color: var(--bs-light-blue) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Brand */
.navbar .navbar-brand {
    color: #000000 !important;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    transition: color 0.2s;
}
.navbar .navbar-brand:hover {
    color: var(--bs-primary) !important;
    background: none;
}

/* All nav links – style them like the Team Manager button */
.navbar .nav-link {
    color: var(--bs-primary) !important;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-left: 0.25rem;
    transition: all 0.2s ease-in-out;
}

/* Hover effect: same solid blue fill as btn-outline-primary */
.navbar .nav-link:hover {
    background-color: var(--bs-primary);
    color: #ffffff !important;
    border-color: var(--bs-primary);
}

/* Team Manager button (already has btn-outline-primary) – no extra overrides needed */

/* ---------- Footer ---------- */
footer {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* ---------- Countdown ---------- */
#countdown {
    font-family: 'Courier New', monospace;
    color: var(--bs-primary);
    font-weight: bold;
}

/* ---------- Live match cards ---------- */
.live-match .card-header {
    background-color: var(--bs-light-blue);
    color: #000000;
    font-weight: bold;
}
.live-match .clock {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--bs-primary);
}
.live-match .home-score,
.live-match .away-score {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    color: #000000;
}
.live-match .events ul {
    padding-left: 0;
    list-style: none;
}
.live-match .events li {
    padding: 2px 0;
    border-bottom: 1px dotted #cccccc;
    color: #000000;
}

/* ---------- Sponsors ---------- */
.sponsor-row img {
    max-height: 80px;
    object-fit: contain;
}

/* ---------- Standings table ---------- */
.standings-table img {
    height: 30px;
    margin-right: 5px;
    vertical-align: middle;
}

/* ---------- Gallery thumbnails ---------- */
.gallery-thumb {
    transition: transform 0.2s;
}
.gallery-thumb:hover {
    transform: scale(1.05);
}

/* ---------- Tables ---------- */
.table thead {
    background-color: var(--bs-light-blue);
    color: #000000;
}
.table-bordered td,
.table-bordered th {
    border-color: #dee2e6;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 576px) {
    .table-responsive table {
        font-size: 0.85rem;
    }
    .live-match .home-score,
    .live-match .away-score {
        font-size: 1.8rem;
    }
}

/* ---------- Admin match centre ---------- */
#eventList ul {
    list-style: none;
    padding-left: 0;
}
#eventList li {
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------- Admin navbar (light blue as well) ---------- */
.navbar-admin {
    background-color: var(--bs-light-blue) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-admin .navbar-brand,
.navbar-admin .nav-link {
    color: #000000 !important;
    font-weight: 500;
}
.navbar-admin .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* ---------- Pending approval row highlight ---------- */
.table-warning {
    background-color: #fff3cd !important;
}