/* Combined CSS styles */
body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

table {
    border-collapse: collapse;
    width: 80%;
    margin: 20px auto;
}

th, td {
    border: 1px solid #444;
    padding: 8px 12px;
    text-align: center;
    vertical-align: top; 
}

th {
    background-color: #2c2c2c;
}

img {
    width: 800px;
    height: 450px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    max-width: 800px;
    height: auto;
    filter: brightness(0.9);
}

.nav {
    text-align: center;
    margin: 20px 0;
}

.nav a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2c2c2c;
    color: #e0e0e0;
    text-decoration: none;
    margin: 0 10px;
    border-radius: 4px;
}

.nav a:hover {
    background-color: #3c3c3c;
}

.button-loading {
    position: relative;
    color: transparent !important;
}

.button-loading::after {
    content: "";
    position: absolute;
    left: calc(50% - 8px);
    top: calc(50% - 8px);
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 0.75s linear infinite;
}

@keyframes button-loading-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.calendar-filter {
    text-align: center;
    margin: 20px 0;
}

.calendar-filter input {
    padding: 8px;
    margin: 0 10px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #e0e0e0;
}

.calendar-filter button {
    padding: 8px 16px;
    background-color: #2d5e30;
    color: #e0e0e0;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.calendar-filter button:hover {
    background-color: #367339;
}

.reset-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #8b2626;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
}

.reset-button:hover {
    background-color: #a12d2d;
}

.last-action {
    text-align: center;
    padding: 10px;
    background-color: #2c2c2c;
    margin: 10px auto;
    width: 79%;
    border-radius: 4px;
}

.image-placeholder {
    background-color: #2c2c2c;
    border-radius: 4px;
    color: #888;
    width: 800px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.plate-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.plate-slider {
    width: 200px;
    height: 5px;
    -webkit-appearance: none;
    background: #444;
    outline: none;
    border-radius: 3px;
    margin-top: 5px;
}

.plate-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
}

.timestamp-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.timestamp-list li {
    margin-bottom: 5px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 5px;
    background-color: #2c2c2c;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
}

.checkbox-label:hover {
    background-color: #3c3c3c;
}

.action-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.action-button:hover {
    background-color: #d32f2f;
}

.action-button.loading {
    background-color: #999;
    cursor: not-allowed;
}