/* General Styling */
body, * {
    font-family: 'Trebuchet MS', Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

h1 {
    text-align: center;
    margin-top: 20px;
}

/* Container Styling */
.container {
    width: 90%; /* Slightly reduced width for better fit */
    max-width: 1200px; /* Limit maximum width */
    margin: 20px auto; /* Center and add space around the container */
    padding: 20px;
    background-color: #fff;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
#search-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Wrap form elements */
    gap: 20px;
    margin-bottom: 20px;
}

#search-form > div {
    flex: 1 1 150px; /* Flexible width with minimum size */
    min-width: 150px;
}

#search-form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 0;
}

#search-form button:hover {
    background-color: #0056b3;
}

/* Table Styling */
.table-container {
    overflow-x: auto; /* Add horizontal scrolling if needed */
    margin-top: 20px; /* Add spacing above the table */
}

.table {
    width: 100%;
    border-collapse: collapse; /* Remove space between table cells */
    margin-bottom: 20px;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table th {
    background-color: #f2f2f2;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #search-form {
        flex-direction: column; /* Stack form elements */
        align-items: stretch;
    }

    #search-form > div, #search-form button {
        width: 100%; /* Full width for form elements */
    }

    .table th, .table td {
        padding: 5px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    a {
        margin: 10px;
        padding: 10px;
        font-size: 0.9em;
    }

    .table th, .table td {
        font-size: 0.8em;
        padding: 4px;
    }

    #search-form > div, #search-form button {
        width: 100%;
    }
}
