body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 70px; /* Space for fixed navbar */
    /* padding-bottom: 150px; Removed to eliminate extra space at the bottom */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.seal-logo {
    width: 80px;
    height: auto;
    margin-right: 20px;
}

.header h1 {
    color: #BF5700; /* UT Austin Burnt Orange */
    font-size: 2.5em;
    margin: 0;
}

.search-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #e9e9e9;
    border-radius: 8px;
}

.search-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.search-input-group {
    flex-basis: 20%; /* 3/15 = 20% */
    flex-grow: 0;
    flex-shrink: 0;
}

.dropdown-group {
    flex-basis: 13.33%; /* 2/15 = 13.33% */
    flex-grow: 0;
    flex-shrink: 0;
}

.reset-button-group {
    flex-basis: 13.33%; /* 2/15 = 13.33% */
    flex-grow: 0;
    flex-shrink: 0;
    margin-left: auto; /* Push to the right */
}

.search-form input[type="text"],
.search-form select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 80px; /* Ensure minimum width for smaller screens */
}

.search-form label {
    font-weight: bold;
    color: #555;
}

.search-form button {
    padding: 10px 20px;
    background-color: #BF5700; /* UT Austin Burnt Orange */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.search-form button:hover {
    background-color: #a04a00;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.document-item h2 {
    color: #BF5700;
    font-size: 1.5em;
    margin-top: 0;
}

.document-item p {
    margin: 5px 0;
    line-height: 1.5;
}

.document-item strong {
    color: #555;
}

.document-item a {
    color: #007bff;
    text-decoration: none;
}

.document-item a:hover {
    text-decoration: underline;
}

/* Existing styles for navbar and footer */
.navbar {
    background-color: #BF5700; /* UT Austin Burnt Orange */
}

.navbar-brand {
    color: #FFFFFF !important; /* White text for brand */
}

.footer {
    background-color: #BF5700; /* UT Austin Burnt Orange */
    color: #FFFFFF;
    padding: 20px 0;
    position: relative; /* Changed from fixed */
    bottom: 0;
    width: 100%;
}

/* Custom styles for new features */
.btn-add-document {
    background-color: #BF5700; /* UT Austin Burnt Orange */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    text-decoration: none;
}

.btn-add-document:hover {
    background-color: #a04a00;
    color: white;
    text-decoration: none;
}

.col-title {
    width: 25%; /* Adjust as needed */
}

.btn-sm {
    min-width: 30px;
    min-height: 30px;
    padding: .25rem .5rem; /* Bootstrap default for btn-sm */
    font-size: .875rem; /* Bootstrap default for btn-sm */
    line-height: 1.5;
    border-radius: .2rem;
    display: inline-flex; /* Use flexbox for centering content */
    justify-content: center;
    align-items: center;
}

.table .btn-sm {
    min-width: 60px; /* Adjust for File, Edit, Delete buttons */
}

.filter-button.active {
    background-color: #007bff; /* Blue background for active button */
    color: white;
    border-color: #007bff;
}

.filter-button.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.filter-button {
    background-color: white;
    color: #007bff;
    border: 1px solid #007bff;
}

.filter-button:hover {
    background-color: #e7f3ff;
}