body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

header {
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

nav button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
}

nav button.active {
    background-color: #004085;
    font-weight: bold;
}

nav button:hover {
    background-color: #004085;
}

main {
    padding: 20px;
}

section h2 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-top: 0;
}

.filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filters input[type="text"],
.filters input[type="date"],
.filters select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
}

.filters button {
    padding: 8px 15px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.filters button:hover {
    background-color: #5a6268;
}

.table-container {
    overflow-x: auto; /* For very wide tables on small screens */
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #e9ecef;
    cursor: pointer;
}
th:hover {
    background-color: #dcdcdc;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

td button {
    padding: 5px 10px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.view-details-btn {
    background-color: #17a2b8;
    color: white;
}
.view-details-btn:hover {
    background-color: #138496;
}

/* Basic Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
    border-radius: 5px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalBodyContent p {
    margin: 5px 0;
}
#modalBodyContent strong {
    display: inline-block;
    min-width: 180px; /* Adjust as needed */
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button, .pagination span {
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
}
.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination button:disabled {
    color: #ccc;
    cursor: not-allowed;
}
/* Add this to your style.css if not already present */
.readonly-input {
    background-color: #e9ecef; /* Light grey background */
    color: #495057; /* Darker text */
    cursor: not-allowed; /* Indicate non-interactive */
    border: 1px solid #ced4da;
}

/* Optional: Style for the nearby contractors list */
#nearbyContractorsList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#nearbyContractorsList li {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 0.9em;
}
#nearbyContractorsList li:last-child {
    border-bottom: none;
}

/* Optional: Style for secondary button */
.button-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}
.button-secondary:hover {
    background-color: #5a6268;
}
.button-secondary:disabled {
    background-color: #adb5bd;
     cursor: not-allowed;
}