/* Reset and Base Styles */
body {
    font-family: Arial, sans-serif;
    'max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    cursor: pointer;
}

th:hover {
    background-color: #e0e0e0;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    margin-right: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    padding: 5px;
    width: 200px;
    margin-right: 10px;
}

input[type="file"] {
    width: auto;
}

button, .toggle-btn {
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
}

button:hover, .toggle-btn:hover {
    background-color: #006799;
}

/* Division Colors */
.d1 { background-color: #add8e6; } /* Light Blue */
.d2 { background-color: #ffc1cc; } /* Light Pink */
.d3 { background-color: #ffff99; } /* Light Yellow */
.d4 { background-color: #d3d3d3; } /* Light Gray */
.d5 { background-color: #90ee90; } /* Light Green */
.no-time { background-color: #ffffff; color: #888; }

/* Section Toggles */
.section-toggle {
    margin-bottom: 5px;
}

.section-content {
    margin-top: 5px;
}

.section-content.hidden {
    display: none;
}

/* Admin-Specific Styles */
#wpbody-content .wrap h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

#wpbody-content .wrap h2 {
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Frontend-Specific Styles */
.gbr-race-list, .gbr-race-entry, .gbr-race-results {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gbr-race-list table,
.gbr-race-results table {
    margin-top: 0;
}

.gbr-race-entry form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Payout Summary */
.payout-summary {
    margin-top: 10px;
    font-weight: bold;
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    input[type="text"],
    input[type="number"],
    input[type="date"],
    select {
        width: 150px;
    }

    button, .toggle-btn {
        padding: 4px 8px;
        font-size: 14px;
    }
}