/* modals.css */

/* Basic styling for the modal container */
.modal-content {
    background-color: #222;
    color: #eee;
    border: 1px solid #555;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Specific styling for the race control messages grid */
#raceControlMessagesGrid {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Specific styling for the race control messages grid */
#raceControlMessagesGrid.race-control-grid {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Race Control Filters Button */
.race-control-filter-button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.race-control-filter-button:hover {
    background-color: #0056b3;
}

/* Race Control Modal Overlay */
.race-control-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Race Control Filter Checkboxes Container (Modal Content) */
.race-control-filters-checkboxes {
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    width: 90%;
    position: relative;
}

.race-control-filters-checkboxes h3 {
    margin-top: 0;
    color: white;
    margin-bottom: 15px;
}

/* Close button for the modal */
.race-control-modal-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #eee;
    font-size: 1.2em;
    cursor: pointer;
}

.race-control-modal-close-button:hover {
    color: #ff0000;
}

/* Individual checkbox container */
.filter-checkbox-container {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.filter-checkbox-container input[type="checkbox"] {
    margin-right: 8px;
}

.filter-checkbox-container label {
    color: #ccc;
}
/* Styles for Race Control Message Filters */
.race-control-filter-button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.race-control-filter-button:hover {
    background-color: #0056b3;
}

.race-control-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.race-control-filters-checkboxes {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80%;
    overflow-y: auto;
    color: white;
    position: relative;
    width: 300px; /* Adjust width as needed */
}

.race-control-filters-checkboxes h3 {
    margin-top: 0;
    color: #007bff;
    text-align: center;
    margin-bottom: 15px;
}

.race-control-modal-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}

.race-control-modal-close-button:hover {
    color: white;
}

.filter-checkbox-container {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.filter-checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #007bff; /* Highlight color for checkboxes */
}

.filter-checkbox-container label {
    font-size: 16px;
    cursor: pointer;
}

/* Styling for the driver modal tab panes to prevent overflow */
.driver-modal-tab-pane {
    height: 100%; /* Allow content to fill available height */
    overflow-y: auto;
    padding: 10px; /* Add some padding for better appearance */
}

/* Styling for chart containers within the modal */
.chart-container,
.driver-modal-tab-pane canvas {
    max-height: 55vh; /* Adjust as needed, slightly less than tab-pane to account for padding/margins */
    width: 100%;
    display: block; /* Ensure canvas behaves as a block element */
}

.filter-button-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    gap: 10px; /* Space between buttons */
}

.race-control-action-button {
    padding: 8px 12px;
    background-color: #28a745; /* Green for Enable All */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    flex-grow: 1; /* Allow buttons to grow and fill space */
}

.race-control-action-button:hover {
    background-color: #218838;
}

/* Specific style for Disable All to differentiate */
.race-control-action-button:nth-child(2) {
    background-color: #dc3545; /* Red for Disable All */
}

.race-control-action-button:nth-child(2):hover {
    background-color: #c82333;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--f1-text-secondary);
    font-size: 1.25rem;
    /* Adjust size as needed */
    padding: 0.5rem;
    /* Adds spacing around the icon */
    cursor: pointer;
}

.icon-btn:hover {
    color: var(--f1-text);
}
