.club-competition-view {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.club-competition-header h3 {
    margin: 0 0 8px;
}

.club-competition-header p {
    margin: 0 0 16px;
    color: #555;
}

.club-competition-selector-wrap {
    margin-bottom: 20px;
}

.club-competition-selector {
    min-width: 280px;
    max-width: 100%;
    width: 100%;
}

.club-competition-output .competition-meta {
    margin-bottom: 20px;
    padding: 14px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.club-competition-output .competition-meta h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.club-competition-output .competition-description {
    margin-top: 10px;
}

.club-league-table-wrap,
.club-fixtures-wrap,
.club-knockout-wrap {
    margin-top: 20px;
}

.club-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.club-league-table,
.club-fixtures-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.club-league-table th,
.club-league-table td,
.club-fixtures-table th,
.club-fixtures-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.club-league-table th,
.club-fixtures-table th {
    background: #0073aa;
    color: #fff;
    white-space: nowrap;
}

.club-league-table tbody tr:nth-child(even),
.club-fixtures-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.club-knockout-rounds {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.club-knockout-round {
    min-width: 260px;
    flex: 0 0 260px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 14px;
}

.club-knockout-round h4 {
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.club-match-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.club-match-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.club-match-row:last-child {
    margin-bottom: 0;
}

.club-match-row.club-winner {
    font-weight: 700;
    color: #0a5c2b;
}

.club-match-name {
    flex: 1;
    word-break: break-word;
}

.club-match-score {
    white-space: nowrap;
    font-weight: 600;
}

.club-match-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.club-empty-state {
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.club-loading {
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .club-competition-view {
        margin: 10px;
        padding: 14px;
        border-radius: 6px;
    }

    .club-competition-header h3 {
        font-size: 20px;
        line-height: 1.2;
    }

    .club-competition-header p {
        font-size: 14px;
    }

    .club-competition-selector-wrap label {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .club-competition-selector {
        min-width: 0;
        font-size: 16px;
    }

    .club-competition-output .competition-meta {
        padding: 12px;
    }

    .club-competition-output .competition-meta p,
    .club-competition-output .competition-description {
        font-size: 14px;
    }

    .club-league-table,
    .club-fixtures-table {
        min-width: 620px;
        font-size: 13px;
    }

    .club-league-table th,
    .club-league-table td,
    .club-fixtures-table th,
    .club-fixtures-table td {
        padding: 8px;
    }

    .club-knockout-rounds {
        gap: 12px;
    }

    .club-knockout-round {
        min-width: 220px;
        flex: 0 0 220px;
        padding: 10px;
    }

    .club-match-card {
        padding: 8px;
        margin-bottom: 10px;
    }

    .club-match-row {
        gap: 8px;
    }

    .club-match-name {
        font-size: 13px;
    }

    .club-match-score {
        font-size: 13px;
    }

    .club-match-meta {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .club-competition-view {
        margin: 8px;
        padding: 12px;
    }

    .club-competition-header h3 {
        font-size: 18px;
    }

    .club-league-table,
    .club-fixtures-table {
        min-width: 560px;
        font-size: 12px;
    }

    .club-knockout-round {
        min-width: 200px;
        flex: 0 0 200px;
    }
}
.club-team-info-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.club-team-info-link:hover {
    text-decoration: underline;
}

.club-team-modal-row {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.club-team-modal-row:last-child {
    border-bottom: 0;
}

.club-team-captain-mobile {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}
.play-direction-banner {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 12px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* Day view time/weather column */
.fc-timegrid-slot-label {
    position: relative;
    width: 86px !important;
    min-width: 86px !important;
    min-height: 40px;
    vertical-align: top !important;
}

.fc-timegrid-slot-label-cushion {
    display: block !important;
    padding: 2px 4px !important;
    font-size: 0 !important;
    color: transparent !important;
    position: relative;
}

.fixture-slot-weather {
    color: #333 !important;
    font-size: 11px;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: nowrap;
}

.fixture-slot-weather-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.fixture-weather-icon {
    font-size: 11px;
    line-height: 1;
}

.fc-timegrid-slot {
    position: relative;
}
.fixtures-admin-wrap {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.fixtures-admin-wrap button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.fixture-help-guide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.fixture-help-guide-header {
    text-align: center;
    margin-bottom: 24px;
}

.fixture-help-guide-header h2 {
    margin-bottom: 8px;
}

.fixture-help-guide-header p {
    color: #666;
}

.fixture-help-item {
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.fixture-help-toggle {
    width: 100%;
    border: 0;
    background: #f7f7f7;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.fixture-help-toggle:hover {
    background: #efefef;
}

.fixture-help-icon {
    font-size: 24px;
    line-height: 1;
}

.fixture-help-item.is-open .fixture-help-icon {
    transform: rotate(45deg);
}

.fixture-help-panel {
    display: none;
    padding: 18px;
}

.fixture-help-image-wrap {
    margin-bottom: 18px;
}

.fixture-help-image {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: block;
}

.fixture-help-content p:first-child {
    margin-top: 0;
}

.fixture-help-content ol {
    padding-left: 20px;
}

.fixture-help-content li {
    margin-bottom: 8px;
}
/*
    Whats on
 */

.fixture-whats-on-card {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.fixture-whats-on-card.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--fixture-card-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fixture-whats-on-card.has-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.fixture-whats-on-card-inner {
    position: relative;
    z-index: 1;
}

.fixture-whats-on-card.has-bg .fixture-whats-on-time,
.fixture-whats-on-card.has-bg .fixture-whats-on-competition,
.fixture-whats-on-card.has-bg .fixture-whats-on-matchup,
.fixture-whats-on-card.has-bg .fixture-whats-on-meta,
.fixture-whats-on-card.has-bg .whats-on-description {
    color: #fff;
}

.fixture-whats-on-card.has-bg .whats-on-description {
    background: rgba(255, 255, 255, 0.12);
}
.fixture-whats-on {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.fixture-whats-on-header {
    text-align: center;
    margin-bottom: 30px;
}

.fixture-whats-on-header h2 {
    margin-bottom: 8px;
    font-size: 2rem;
}

.fixture-whats-on-header p {
    color: #666;
    margin: 0;
}

.fixture-whats-on-day {
    margin-bottom: 30px;
}

.fixture-whats-on-day-header {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.fixture-whats-on-day-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.fixture-whats-on-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.fixture-whats-on-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.fixture-whats-on-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    margin-bottom: 12px;
}

.fixture-whats-on-time {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fixture-whats-on-competition {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.fixture-whats-on-matchup {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.fixture-whats-on-matchup span {
    margin: 0 8px;
    color: #777;
    font-weight: 600;
}

.fixture-whats-on-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #666;
    font-size: 0.92rem;
}

.fixture-whats-on-empty {
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px;
}
.whats-on-description {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 8px;
}
/* Event colour accents */
.fixture-event-club-match .fixture-whats-on-badge { background: #1d4ed8; }
.fixture-event-county-match .fixture-whats-on-badge { background: #ea580c; }
.fixture-event-roll-up .fixture-whats-on-badge { background: #16a34a; }
.fixture-event-club-competition .fixture-whats-on-badge { background: #111827; }
.fixture-event-event-booking .fixture-whats-on-badge { background: #7c3aed; }

@media (max-width: 640px) {
    .fixture-whats-on {
        padding: 14px;
    }

    .fixture-whats-on-header h2 {
        font-size: 1.6rem;
    }
}
/* ================================
   Club Panel – General Cleanup
   ================================ */

#club-ui-panel {
    font-size: 14px;
    line-height: 1.4;
}

/* Reset heading margins inside panel */
#club-ui-panel h2,
#club-ui-panel h3,
#club-ui-panel h4,
#club-ui-panel h5 {
    margin: 0 0 6px 0;
    font-weight: 600;
}

/* ================================
   Section Headings (Primary)
   ================================ */

#club-ui-panel h3 {
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 4px;
    margin-top: 16px;
    border-bottom: 1px solid #e5e5e5;
    color: #222;
}

/* First heading shouldn't push down */
#club-ui-panel h3:first-child {
    margin-top: 0;
}

/* ================================
   Competition Title (Detail View)
   ================================ */

#club-ui-panel .club-competition-view h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

/* Meta text under competition title */
#club-ui-panel .club-competition-view p {
    margin: 4px 0;
    color: #555;
}

/* ================================
   Lists (Fixtures / Competitions)
   ================================ */

#club-ui-panel ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0 0;
}

#club-ui-panel ul li {
    padding: 6px 4px;
    border-bottom: 1px solid #f0f0f0;
}

#club-ui-panel ul li:last-child {
    border-bottom: none;
}

/* ================================
   Buttons
   ================================ */

#club-ui-panel .club-panel-action,
#club-ui-panel button.button {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
}

/* Reduce visual noise on secondary buttons */
#club-ui-panel button.button:not(.button-primary) {
    background: #f6f6f6;
}

/* ================================
   Available Competitions Area
   ================================ */

#club-ui-panel select {
    font-size: 13px;
}

#panel-competition-details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eaeaea;
}

/* ================================
   Teams View
   ================================ */

#club-panel-alt h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Team list cleanup */
#club-panel-alt ul li {
    padding: 8px 6px;
}

/* Team member text softer */
#club-panel-alt .team-members {
    color: #666;
    font-size: 13px;
}

/* Back button spacing */
#club-panel-back {
    margin-bottom: 12px;
}

#fixture-opposition-text-wrapper {
    display: none;
}
.fc-timegrid-col-frame {
    padding-left: 10px;
}
#club-ui-panel {
    position: fixed;
    top: 60px; /* adjust to header height */
    right: 0;
    width: 300px;
    height: calc(100% - 60px);
    background: #fff;
    border-left: 1px solid #ddd;
    padding: 1rem;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: transform 0.3s ease;
}
#club-ui-panel.collapsed {
    transform: translateX(100%);
}
#club-ui-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Monday Fixtures */
.monday-fixtures .fc-event-main {
    background-color: #9359f7  !important;
    border-left: 4px solid green;
}

/* Tuesday Fixtures */
.tuesday-fixtures .fc-event-main {
    background-color: #5281f9 !important;
    border-left: 4px solid orange;
}

/* Thursday Fixtures */
.thursday-fixtures .fc-event-main {
    background-color: #40b2ef !important;
    border-left: 4px solid blue;
}
/* Obelisk Fixtures */
.obelisk-fixtures .fc-event-main {
    background-color: #2fd0d6 !important;
    border-left: 4px solid blue;
}

/* Floodlit Fixtures*/
.floodlit-fixtures .fc-event-main {
    background-color: #2cddb1 !important;
    border-left: 4px solid blue;
}
/* Saturday Fixtures */
.saturday-fixtures .fc-event-main {
    background-color: #2cd369 !important;
    border-left: 4px solid blue;
}
/* None ("Free") */
.none .fc-event-main {
    background-color: #0ba391 !important;
    border-left: 4px solid blue;
}

/* Event Booking */
.event-booked .fc-event-main {
    background-color: #d84117 !important;
    border-left: 4px solid purple;
    color: #000 !important;
    font-weight: normal;
}

/* Default fallback */
.event-default .fc-event-main {
    background-color: #ededed !important;
    border-left: 4px solid purple;
    color: #000 !important;
    font-weight: normal;
}

.event-booking-form {
    max-width: 500px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: sans-serif;
}

.event-booking-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}


.event-booking-form input[type="text"],
.event-booking-form input[type="number"],
.event-booking-form input[type="datetime-local"],
.event-booking-form select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

.event-booking-form input[type="checkbox"] {
    margin-left: 8px;
}

.event-booking-form button[type="submit"] {
    margin-top: 15px;
    padding: 10px 20px;
    background: #2a7ae4;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
}

.event-booking-form button[type="submit"]:hover {
    background: #1d5ec3;
}

.event-booking-form .switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.overlay-event {
    background-color: rgba(255, 165, 0, 0.25) !important; /* Soft orange */
    border: none !important;
    pointer-events: none; /* Ensures it's just visual */
}

.calendar-toggle-button {
    padding: 6px 14px;
    margin: 0 5px;
    border: 1px solid #ccc;
    background: #eee;
    cursor: pointer;
    border-radius: 4px;
}
.calendar-toggle-button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Loading overlay styles */
#calendar-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none; /* Initially hidden */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1.2em;
    color: #333;
}
.fixtures-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fixtures-table {
    width: 100%;
    border-collapse: collapse;
}

.fixtures-table th, .fixtures-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.fixtures-table th {
    background-color: #0073aa;
    color: white;
}
/* Simple CSS spinner */
.spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Fixtures Calendar Styles */

/* Add padding to the Select2 dropdown container */
.select2-container--default .select2-selection--single {
    padding: 0.2em 2em;  /* Adjust the values as needed */
}
.fc-daygrid-more-link {
    display: none !important;
}
.event-free {
    background-color: #f0f0f0 !important;
    border: 1px dashed #bbb !important;
    color: #555 !important;
}
#rinkSelectionContainer {
    display: none; /* Ensures it's hidden initially */
}

.event-match {
    background-color: #90EE90 !important; /* Light Green */
    color: #000 !important;
}

.event-club-match {
    background-color: #ADD8E6 !important; /* Light Blue */
    color: #000 !important;
}

.event-default {
    background-color: #CCCCCC !important; /* Default grey */
    color: #000 !important;
}

/* Styling for the select dropdown */
.fixtures-styled-select {
    width: 100%; /* Full width */
    padding: 10px; /* Add some padding */
    border: 2px solid #007bff; /* Blue border */
    border-radius: 5px; /* Rounded corners */
    background-color: #f8f9fa; /* Light gray background */
    font-size: 16px; /* Larger text */
    color: #333; /* Dark text */
    cursor: pointer;
}

/* Add a hover effect */
.fixtures-styled-select:hover {
    border-color: #0056b3; /* Darker blue on hover */
}

/* Style when the dropdown is focused */
.fixtures-styled-select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
/* Ensure the calendar container takes up enough space */
.calendar-container {
    width: 100%;
    max-width: 1000px; /* Prevents it from being too narrow */
    min-width: 300px; /* Ensures it fits on small screens */
    margin: 20px auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden !important; /* Prevents unwanted scrollbars */
}

/* Ensure the calendar itself has a flexible height and width */
#calendar {
    width: 100%;
    height: 100vh; /* Uses full available screen height */
    min-height: 600px; /* Ensures enough space */
    display: block !important; /* Ensures it does not collapse */
    overflow: hidden !important; /* Prevents scrollbars */
}
.event-match {
    border-left: 5px solid red;
    background-color: #fff5f5;
}
.event-team-match {
    border-left: 5px solid orange;
    background-color: #fffaf0;
}
.event-club-match {
    border-left: 5px solid blue;
    background-color: #f0f8ff;
}

.login-box {
    text-align: center;
    margin-bottom: 40px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 400px;
    margin: auto;
}

.login-box input, .login-box button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.login-box button {
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

.login-error {
    color: red;
    display: none;
    margin-top: 10px;
}

.logout-box {
    text-align: center;
    margin-bottom: 20px;
}

.logout-box button {
    padding: 10px 20px;
    font-size: 16px;
    background: #d9534f;
    color: white;
    border: none;
    cursor: pointer;
}

/* Make FullCalendar responsive */
@media screen and (max-width: 768px) {
    #calendar {
        height: 100vh !important; /* Uses full viewport height for better mobile display */
        min-height: 800px !important; /* Prevent cutting off content */
    }
    .fc-toolbar {
        flex-direction: column !important;
        align-items: center !important;
    }
    .fc-toolbar .fc-left, .fc-toolbar .fc-right {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .fc-header-toolbar {
        flex-wrap: wrap !important;
        text-align: center !important;
    }
    .fc-dayGridMonth-view {
        display: block !important; /* Ensure grid month view still works */
    }
    .fc-listWeek-view {
        display: block !important; /* Use list view for better mobile UX */
    }
}

/* Ensure event titles are readable */
.fc-event-title {
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Improve overall text readability */
.fc-toolbar-title {
    font-size: 18px;
    font-weight: bold;
}

/* ================================
   Club Panel – Button & Colour Fix
   ================================ */

#club-ui-panel {
    background: #ffffff;
    color: #222;
}

/* ---- Buttons (base) ---- */
#club-ui-panel button,
#club-ui-panel .button,
#club-ui-panel .club-panel-action {
    padding: 7px 12px;               /* 👈 more breathing room */
    font-size: 13px;
    line-height: 1.2;
    border-radius: 4px;
    cursor: pointer;
    background: #f3f4f6;
    color: #222;
    border: 1px solid #d0d5dd;
}

/* Hover state */
#club-ui-panel button:hover,
#club-ui-panel .button:hover,
#club-ui-panel .club-panel-action:hover {
    background: #e5e7eb;
    border-color: #c4c9d1;
}

/* ---- Primary actions ---- */
#club-ui-panel .button-primary,
#club-ui-panel .club-panel-action.button-primary {
    background: #1f2937;            /* dark slate */
    color: #ffffff;
    border-color: #1f2937;
}

#club-ui-panel .button-primary:hover,
#club-ui-panel .club-panel-action.button-primary:hover {
    background: #111827;
    border-color: #111827;
}

/* ---- Destructive actions ---- */
#club-ui-panel .delete-team,
#club-ui-panel .button-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

#club-ui-panel .delete-team:hover {
    background: #fecaca;
}

/* ---- Back button ---- */
#club-panel-back {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
}

/* ================================
   Text Contrast Fixes
   ================================ */

/* Muted helper text */
#club-ui-panel p,
#club-ui-panel .team-members,
#club-ui-panel .meta {
    color: #4b5563;                 /* readable gray */
}

/* Headings stay strong */
#club-ui-panel h2,
#club-ui-panel h3 {
    color: #111827;
}

/* Disabled states */
#club-ui-panel button:disabled,
#club-ui-panel select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================
   Select + Inputs
   ================================ */

#club-ui-panel select,
#club-ui-panel input[type="text"] {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}
/* Icon buttons */
#club-ui-panel .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    min-width: 36px;
}

/* Dashicon sizing + alignment */
#club-ui-panel .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* Optional: make primary icon buttons slightly “poppier” */
#club-ui-panel .button-primary .dashicons,
#club-ui-panel .club-panel-action.button-primary .dashicons {
    color: #fff;
}

/* icon-only buttons in the club panel */
.icon-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;      /* good mobile tap target */
    padding:8px;
    line-height:1;
}

.icon-btn .dashicons{
    font-size:22px;
    width:22px;
    height:22px;
    line-height:22px;
}

/* optional: reduce “fuzzy” rendering on some mobiles */
.icon-btn .dashicons{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Open Page CSS */
.ftbc-open-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 14px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ftbc-open-hero {
    border-radius: 24px;
    padding: 28px 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
}

.ftbc-open-hero.is-open {
    background: linear-gradient(135deg, #087f3f, #14a85c);
}

.ftbc-open-hero.is-closed {
    background: linear-gradient(135deg, #333, #666);
}

.ftbc-open-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-weight: 800;
}

.ftbc-status-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    margin: 0 0 8px;
    opacity: 0.9;
}

.ftbc-open-hero h1 {
    font-size: 34px;
    line-height: 1.05;
    margin: 0 0 12px;
    color: #fff;
}

.ftbc-next-time {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 10px 0;
}

.ftbc-hero-detail {
    font-size: 18px;
    margin: 0;
}

.ftbc-card,
.ftbc-contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.ftbc-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.ftbc-event-card {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.ftbc-event-card:first-of-type {
    border-top: 0;
}

.ftbc-event-time {
    width: 82px;
    flex-shrink: 0;
}

.ftbc-event-time span,
.ftbc-event-info span {
    display: block;
    color: #666;
    font-size: 13px;
}

.ftbc-event-time strong {
    font-size: 17px;
}

.ftbc-event-info strong {
    display: block;
    font-size: 16px;
}

.ftbc-muted {
    color: #666;
    margin: 0;
}

.ftbc-contact-card a {
    display: block;
    text-align: center;
    background: #0073aa;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

@media (min-width: 700px) {
    .ftbc-open-page {
        padding-top: 28px;
    }
}