/* GolfApp theme: TVETCGC navy palette, header / sidebar / content / footer shell. */
:root {
    --golf-green: #2e3d65;
    --golf-green-dark: #1e2a47;
    --golf-green-light: #e6eaf4;
    --golf-gold: #9fb3de;
    --golf-bg: #f2f4f9;
    --golf-text: #1c2438;
    --golf-border: #d9deea;
}

.golf-body {
    background: var(--golf-bg);
    color: var(--golf-text);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Header ---------- */
.golf-topbar {
    background: var(--golf-green-dark);
    color: #cfd6e8;
    font-size: 12.5px;
    padding: 5px 0;
}

.golf-topbar-links li { color: #cfd6e8; }

.golf-brandbar {
    background: var(--golf-green);
    padding: 12px 0;
    border-bottom: 3px solid var(--golf-gold);
}

.golf-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.golf-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.golf-brand-mark img { height: 52px; width: auto; display: block; }

.golf-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.golf-brand-title { font-size: 20px; font-weight: 600; letter-spacing: .3px; }
.golf-brand-sub { font-size: 12px; opacity: .85; }

/* ---------- Shell ---------- */
.golf-shell { flex: 1 0 auto; padding-top: 16px; padding-bottom: 16px; }

.golf-content { min-width: 0; }

/* ---------- Sidebar ---------- */
.golf-sidebar {
    background: #fff;
    border: 1px solid var(--golf-border);
    border-radius: 6px;
    padding: 8px 0;
    margin-bottom: 16px;
}

.golf-menu-heading {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #6f7a94;
    padding: 14px 18px 4px;
}

.golf-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    color: var(--golf-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.golf-menu-item i { font-size: 16px; color: var(--golf-green); width: 18px; text-align: center; }

a.golf-menu-item:hover { background: var(--golf-green-light); color: var(--golf-green-dark); }

.golf-menu-item.active {
    background: var(--golf-green-light);
    border-left-color: var(--golf-green);
    font-weight: 600;
    color: var(--golf-green-dark);
}

.golf-menu-item.disabled { color: #a0a9c0; cursor: not-allowed; }
.golf-menu-item.disabled i { color: #b4bcd0; }

/* ---------- Footer ---------- */
.golf-footer {
    background: var(--golf-green-dark);
    color: #cfd6e8;
    font-size: 13px;
    padding: 14px 0;
    flex-shrink: 0;
}

/* ---------- List grid (scoped so it overrides the shared list css) ---------- */
.golf-grid.grid-container { padding: 0; margin-top: 8px; }

.golf-grid .grid-wrapper {
    border: 1px solid var(--golf-border);
    border-radius: 6px;
    background: #fff;
    overflow-x: auto;
}

.golf-grid .projects-table { min-width: 760px; }

.golf-grid .projects-table th {
    background: var(--golf-green);
    color: #fff;
    border-right: 0;
    border-bottom: 0;
    height: 40px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.golf-grid .projects-table td {
    border-right: 0;
    border-bottom: 1px solid #e9ecf4;
    height: 48px;
    white-space: normal;
}

.golf-grid .projects-table tbody tr:nth-child(even) { background: #f7f8fc; }
.golf-grid .projects-table tbody tr:hover { background: var(--golf-green-light); }

.golf-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--golf-green-light);
    color: var(--golf-green-dark);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.golf-table-link { color: var(--golf-green-dark); text-decoration: none; }
.golf-table-link:hover { color: var(--golf-green); text-decoration: underline; }

.golf-table-sub {
    color: #6f7a94;
    font-size: 12.5px;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.golf-row-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--golf-green);
    text-decoration: none;
}
.golf-row-action:hover { background: var(--golf-green); color: #fff; }

.golf-table-empty { text-align: center; color: #6f7a94; padding: 36px 0 !important; }
.golf-table-empty i { font-size: 28px; color: #b4bcd0; }

/* ---------- Search bar ---------- */
.golf-filter { padding: 10px 0 0; }

.golf-filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--golf-border);
    border-radius: 6px;
    padding: 10px 14px;
}

.golf-filter-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--golf-green-dark);
    white-space: nowrap;
}

.golf-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 640px;
    margin-left: auto;
    border: 1px solid var(--golf-border);
    border-radius: 999px;
    background: var(--golf-bg);
    padding: 3px 3px 3px 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.golf-search:focus-within {
    background: #fff;
    border-color: var(--golf-green);
    box-shadow: 0 0 0 3px rgba(46, 61, 101, .18);
}

.golf-search-icon { color: #6f7a94; margin-right: 8px; }

.golf-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    padding: 6px 0;
    color: var(--golf-text);
}

.golf-search-clear {
    color: #6f7a94;
    text-decoration: none;
    padding: 0 10px;
    font-size: 12px;
}
.golf-search-clear:hover { color: #b02a37; }

.golf-search-btn {
    border: 0;
    border-radius: 999px;
    background: var(--golf-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
}
.golf-search-btn:hover { background: var(--golf-green-dark); }

@media (max-width: 576px) {
    .golf-filter-title { display: none; }
    .golf-search { max-width: none; }
}

/* ---------- Record toolbar (add / edit screens) ---------- */
.golf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--golf-border);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
}

.golf-toolbar-group { display: flex; align-items: center; gap: 8px; }

.golf-tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--golf-border);
    border-radius: 6px;
    background: #fff;
    color: var(--golf-green-dark);
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.golf-tb-btn:hover { background: var(--golf-green-light); border-color: var(--golf-green); color: var(--golf-green-dark); }

.golf-tb-primary { background: var(--golf-green); border-color: var(--golf-green); color: #fff; }
.golf-tb-primary:hover { background: var(--golf-green-dark); border-color: var(--golf-green-dark); color: #fff; }

.golf-tb-danger { color: #b02a37; border-color: #efc9ce; }
.golf-tb-danger:hover { background: #b02a37; border-color: #b02a37; color: #fff; }

@media (max-width: 576px) {
    .golf-tb-btn span { display: none; }
    .golf-tb-btn { padding: 7px 11px; }
}

/* ---------- Summary cards (list header) ---------- */
.golf-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 12px 0 2px;
}

.golf-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--golf-border);
    border-left: 4px solid var(--golf-green);
    border-radius: 6px;
    padding: 12px 16px;
}

.golf-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--golf-green-light);
    color: var(--golf-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.golf-stat-value { font-size: 22px; font-weight: 600; line-height: 1.1; }
.golf-stat-label { font-size: 12.5px; color: #6f7a94; }

.golf-stat-inactive { border-left-color: #8a949b; }
.golf-stat-inactive .golf-stat-icon { background: #eef0f2; color: #6b747a; }
.golf-stat-archived { border-left-color: #c9a227; }
.golf-stat-archived .golf-stat-icon { background: #faf3d9; color: #9a7b0a; }

/* ---------- Status badges ---------- */
.golf-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.golf-badge-active { background: var(--golf-green-light); color: var(--golf-green-dark); }
.golf-badge-inactive { background: #eef0f2; color: #5c656b; }
.golf-badge-archived { background: #faf3d9; color: #7a620a; }

/* ---------- Filter drop down ---------- */
.golf-filter-select { width: 160px; border-radius: 999px; border-color: var(--golf-border); }

/* ---- Sign-in / first-time setup pages ---- */
.golf-logout-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.golf-logout-btn:hover { color: var(--golf-gold); }
.golf-account-body { min-height: 100vh; background: var(--golf-green); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.golf-account-wrap { width: 100%; max-width: 460px; }
.golf-account-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 18px; justify-content: center; }
.golf-account-brand .golf-brand-title { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.golf-account-brand .golf-brand-sub { font-size: .8rem; opacity: .8; }
.golf-account-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 12px 32px rgba(0,0,0,.25); border-top: 4px solid var(--golf-gold); }
.golf-account-title { font-size: 1.4rem; font-weight: 700; color: var(--golf-green-dark); margin-bottom: 4px; }
.golf-account-sub { color: #6c757d; font-size: .88rem; margin-bottom: 18px; }
.golf-account-btn { background: var(--golf-green); color: #fff; font-weight: 600; }
.golf-account-btn:hover { background: var(--golf-green-dark); color: #fff; }
.golf-account-foot { text-align: center; color: rgba(255,255,255,.7); font-size: .78rem; margin-top: 16px; }

/* ---------- Bootstrap "success" buttons / badges follow the brand colour ---------- */
.btn-success { --bs-btn-bg: #2e3d65; --bs-btn-border-color: #2e3d65; --bs-btn-hover-bg: #1e2a47; --bs-btn-hover-border-color: #1e2a47;
    --bs-btn-active-bg: #1e2a47; --bs-btn-active-border-color: #1e2a47; --bs-btn-disabled-bg: #2e3d65; --bs-btn-disabled-border-color: #2e3d65; }
.btn-outline-success { --bs-btn-color: #2e3d65; --bs-btn-border-color: #2e3d65; --bs-btn-hover-bg: #2e3d65; --bs-btn-hover-border-color: #2e3d65;
    --bs-btn-active-bg: #2e3d65; --bs-btn-active-border-color: #2e3d65; --bs-btn-disabled-color: #2e3d65; --bs-btn-disabled-border-color: #2e3d65; }
.badge.bg-success, .progress-bar.bg-success { background-color: #2e3d65 !important; }
.form-control:focus, .form-select:focus { border-color: #6f86b8; box-shadow: 0 0 0 .2rem rgba(46, 61, 101, .18); }
.golf-brandbar .golf-brand-sub { opacity: .8; }
.golf-account-brand img { height: 84px; width: auto; display: block; margin: 0 auto 6px; }

/* ---------- Footer credit ---------- */
.golf-powered { font-size: 12px; opacity: .85; margin-top: 2px; }
.golf-footer a, .golf-account-foot a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.golf-footer a:hover, .golf-account-foot a:hover { color: var(--golf-gold); }

/* Login / account pages: event photo behind a navy tint. */
.golf-account-body {
    background: linear-gradient(rgba(30,42,71,.72), rgba(30,42,71,.82)), url('/images/login-bg.jpg') center / cover no-repeat fixed var(--golf-green-dark, #1e2a47);
}
.golf-account-brand img { background: #fff; border-radius: 16px; padding: 8px 12px; height: 104px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.golf-account-brand .golf-brand-title { text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.golf-account-card { background: rgba(255,255,255,.97); }

/* Brand bar: event photo behind a navy tint. */
.golf-brandbar {
    background: linear-gradient(rgba(46,61,101,.80), rgba(30,42,71,.88)), url('../images/login-bg.jpg') center 62% / cover no-repeat var(--golf-green);
}
.golf-brand-mark img { background: #fff; border-radius: 10px; padding: 3px 6px; height: 56px; }
.golf-brand-title { text-shadow: 0 1px 4px rgba(0,0,0,.45); }
