/* static/css/admin_styles.css */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-title {
    color: #17a2b8;
}

.theme-toggle-button {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.2rem;
    cursor: pointer;
}

.filter-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.filter-field, .filter-value, .agg-field, .agg-func {
    margin-right: 0.5rem;
    width: 20%; /* Adjust as needed */
}

.filter-select, .filter-input, .agg-select, .agg-input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #343a40;
    color: #fff;
}

.agg-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
}

.submit-button {
    background-color: #28a745;
    color: #fff;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.message-box {
    background-color: #dc3545;
    color: #fff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.agg-result-box {
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.results-header {
    margin-top: 1rem;
    color: #17a2b8;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.results-thead {
    background-color: #f8f9fa;
    color: #343a40;
}

.results-thead th {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
}

.results-tbody td {
    padding: 0.5rem;
    border: 1px solid #495057;
}

.fixed-width {
    min-width: 10ch;
    max-width: 15%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Adjust as needed */