/* Reset default browser styles */
body, h1, h2, form, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and header styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 0 10px;
}

header {
    background: #007bff;
    color: #fff;
    padding: 1em 0;
    text-align: center;
    margin-bottom: 1em;
}

header h1 {
    font-size: 2em;
}

/* Main content styles */
main {
    max-width: 100%;
    margin: 0 auto;
    padding: 1em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

input[type="date"], input[type="text"] {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="text"] {
    width: 25%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button.btn-primary {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.75em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button.btn-primary:hover {
    background: #0056b3;
}

/* Table styles */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.results-table th, .results-table td {
    padding: 0.75em;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.875em;
}

.results-table th {
    background-color: #007bff;
    color: #fff;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

/* Responsive table */
@media (max-width: 768px) {
    .results-table th, .results-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .results-table tr {
        margin-bottom: 1em;
        display: block;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .results-table td {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #ddd;
    }

    .results-table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 0.5em;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 2em;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Error message styles */
.error-message {
    color: red;
    display: none;
    margin-top: 1em;
}

nav {
            display: flex;
            justify-content: left;
            background-color: #333;
            padding: 10px 0;
        }

nav a {
            color: white;
            padding: 14px 20px;
            text-decoration: none;
            text-align: center;
            transition: background-color 0.3s;
        }

nav a:hover {
            background-color: #ddd;
            color: black;
     }

.results-table th, .results-table td {
            padding: 8px 12px;
        }
.dataTables_wrapper .dataTables_scroll {
            overflow: auto;
        }
