/* Common styles for stats pages in offalygaa/results/stats/ */

body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}
h1 {
    text-align: center;
    color: #333;
}
table {
    width: 90%;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.9em;
}
th {
    background-color: #f2f2f2;
    color: #555;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:hover {
    background-color: #f1f1f1;
}
.score-cell {
    font-weight: bold;
    color: #007BFF;
}
.total-cell {
    font-weight: bold;
    color: #28a745;
    text-align: center;
}
.winning-margin-cell {
    font-weight: bold;
    color: #28a745; /* Green for winning margin */
    text-align: center;
    font-size: 1.1em;
}
.losing-margin-cell {
    font-weight: bold;
    color: #dc3545; /* Red for losing margin */
    text-align: center;
    font-size: 1.1em;
}


/* Sport badges */
.sport-badge {
    font-size: 0.85em;
    padding: 2px 7px;
    border-radius: 3px;
    color: white;
    font-weight: bold;
}
.badge-hurling  { background: #2a6b2a; }
.badge-football { background: #8a2a2a; }

/* Filter Button Styles */
.filter-section {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.filter-section h2 {
    font-size: 1.2em;
    margin-bottom: 0;
    margin-right: 15px;
    color: #555;
    flex-shrink: 0;
}
.filter-buttons {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0;
}
.filter-button {
    padding: 10px 15px;
    border: none;
    background-color: #e0e0e0;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}
.filter-button:not(:last-child) {
    border-right: 1px solid #ccc;
}
.filter-button:hover {
    background-color: #d0d0d0;
}
.filter-button.selected {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}
.clear-filters-button {
    padding: 8px 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}
.clear-filters-button:hover {
    background-color: #d32f2f;
}

/* Layout for side menu */
.main-layout-table {
    width: 100%;
    border-collapse: collapse;
}
.main-layout-table td {
    vertical-align: top;
    padding: 0; /* Remove default padding for layout cells */
}
.left-menu-cell {
    width: 170px; /* Adjust as per your side menu width */
    padding-right: 20px; /* Space between menu and content */
}
.content-cell {
    padding: 20px; /* Padding for the main content area */
}
