/* results-style.css */

body {
    font-family: Arial, sans-serif;
}

.form-container {
    width: 300px;
    margin: 0 auto;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 20px;
}

.form-container label, .form-container input {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.form-container label {
    margin-bottom: 10px;
    font-weight: bold;
}

.form-container input[type="text"], .form-container input[type="submit"] {
    margin-bottom: 20px;
    padding: 5px;
    font-size: 14px;
}

.form-container input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
}

.form-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.message {
    margin-top: 20px;
    font-weight: bold;
    color: red;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

th {
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    background-color: #0056b3;
}

.green-button {
    background-color: #00a37a;
    color: white; /* Optional: Set text color to white for better contrast */
    border: none; /* Optional: Remove border */
    padding: 5px 10px; /* Optional: Add padding */
    border-radius: 5px; /* Optional: Round corners */
    cursor: pointer; /* Optional: Change cursor on hover */
    font-size: 12px; /* Adjust this value as needed for smaller text */
}

.green-button:hover {
    background-color: darkgreen; /* Optional: Darken button on hover */
}

/* Smaller Toggle Switch */
.form-check-input {
    width: 40px;  /* Decrease the width */
    height: 20px; /* Decrease the height */
    background-color: #e6e6e6;
    border-radius: 20px; /* Ensure the shape is rounded */
    position: relative;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-check-input:checked {
    background-color: #007BFF;
}

.form-check-input:before {
    content: "";
    position: absolute;
    top: 1px;  /* Adjust position */
    left: 1px; /* Adjust position */
    width: 16px; /* Smaller circle */
    height: 16px; /* Smaller circle */
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.form-check-input:checked:before {
    transform: translateX(20px); /* Adjust distance when checked */
}

/* Styles for the "Apply Filters" button */
#apply-filters {
    background-color: #088A4B; /* green */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out;
    margin-top: 10px; /* Add some space above the button if needed */
    width: 150px ; /* Add this line */
}

#apply-filters:hover {
    background-color: #1e7e34; /* Darker green on hover */
}

#apply-filters:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); /* Green focus ring */
}

#apply-filters:active {
    background-color: #155724; /* Even darker green when active */
}

.search-criteria-container {
    width: 80%;
    margin-left: 20px;
    margin-right: auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
    display: flex; /* Use Flexbox for the main container */
    flex-direction: column; /* Stack the filter groups vertically */
}

.filter-group {
    display: flex;
    align-items: start; /* Align label and controls to the top */
    margin-bottom: 10px;
}

.filter-group h3 {
    width: 120px; /* Fixed width for labels to create alignment */
    margin-right: 10px;
    margin-bottom: 0;
    flex-shrink: 0; /* Prevent label from shrinking */
    text-align: left; /* Ensure label text is left-aligned within its fixed width */
}

.sport-buttons,
.grade-buttons,
.competition-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: start;
}

.sport-buttons button,
.grade-buttons button,
.competition-buttons button {
    margin-right: 0;
    margin-bottom: 5px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border-radius: 3px;
    font-size: 0.9rem;
}

.sport-buttons button:hover,
.grade-buttons button:hover,
.competition-buttons button:hover {
    background-color: #eee;
    border-color: #bbb;
}

.sport-buttons button.selected,
.grade-buttons button.selected,
.competition-buttons button.selected {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    font-weight: bold;
}

.date-range-filter .date-inputs {
    display: flex;
    align-items: center;
}

.date-range-filter .date-inputs span {
    margin-right: 5px;
}

.date-range-filter .date-inputs input[type="text"] {
    margin-right: 10px;
    width: 60px;
}

.venue-filter input[type="text"] {
    width: 150px;
}

.opposition-filter select {
    width: 200px; /* Adjust as needed */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Styles for the loading spinner */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust as needed */
    max-height: 80%; /* Limit vertical height */
    overflow-y: auto; /* Enable vertical scroll for content */
    border-radius: 5px;
    position: relative; /* For close button positioning */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#lineupData {
    margin-top: 20px;
    /* Add any specific styling for the lineup data here */
}

    body { font-family: Arial, sans-serif; }
    .highlight {
        font-size: 18px;
    font-weight: bold;
    color: DarkGreen; /* Optional: You can change the color */
    }.bold { font-weight: bold; }


.table-container {
    display: flex;
    width: 85%; /* Or whatever width you prefer */
    justify-content: space-between; /* Space out the tables */
    align-items: flex-start; /* Align tables to the top */
    margin: 20px 0; /* Optional: Add some top and bottom margin */
}

.lineup-table,
.scorers-table {
    width: 48%; /* Adjust the percentage as needed to control the width of each table and the space between them */
    margin: 0; /* Remove default table margins */
}

.lineup-table th,
.scorers-table th {
    text-align: left;
}

.lineup-table td,
.scorers-table td {
    text-align: left;
}
/* Add this to results-style.css */

.form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.tile label {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.tile input[type="text"] {
    width: 80%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
}

.tile button {
    width: 100%;
    padding: 10px;
    background-color: #00a37a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.tile button:hover {
    background-color: #008f6b;
}

/* Existing styles for the table and other elements should remain */
/* ... */

/* ... any other styles for your tables ... */