/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    background-color: #292929;
    color: #333;
    font-size: 16px;
}
.other-background {
    background-color: lightgrey;
}
header {
    background-color: #292929;
    padding: 10px 0;
    color: white;
}

.nav-menu {
    list-style: none;
    padding: 0;
    text-align: center;
    margin: 0;
}

.nav-menu li {
    display: inline;
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.nav-menu a:hover {
    color: #ddd; /* Lighter color for hover */
    background-color: #444; /* Slight background change */
    border-radius: 4px; /* Rounded corners for a subtle effect */
    
}


.banner-img {
    display: block;
    margin: 0 auto;
    width: 60%;
    height: auto;
    max-height: 550px;
}
.homepage-img {
    display: block;
    margin: 0 auto;
    width: 50%;
    height: auto;
    
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    clear: both;
}
footer a {
    color: #f8f8f8;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

footer a:visited {
    color: #f8f8f8;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This will space out items evenly */
    align-items: center;
    text-align: center;
    padding: 10px;
}

.footer-item {
    margin: 10px;
    flex-basis: 15%; /* Adjust based on your preference */
}

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-item {
        flex-basis: 100%; /* Each item takes full width on smaller screens */
    }
}

/* Contact, Quote Request, and Login Forms */
.contact-form, .quote-request, .login-section, .company-description, .welcome-message {
    padding: 20px;
    background-color: lightgrey; /* Paper-like background */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 70%;
    margin: 20px auto;
}

.contact-form form, .quote-request form, .login-section form {
    display: block;
    width: 80%;
    margin: 0 auto;
}

/* Table Styles */
table {
    width: 90%; /* Adjusted table width */
    max-width: 100%; /* Ensures table is not wider than its container */
    border-collapse: collapse;
    margin: 20px auto; /* Center table with margin */
    background-color: #fff;
}

th, td {
    border: 1px solid #ddd; /* Light grey border */
    padding: 8px; /* Reduced padding */
    text-align: left;
    font-size: 0.9em; /* Slightly smaller font size for table content */
}

/* Specify column widths for specific columns */
th.quantity, td.quantity,
th.weight, td.weight,
th.size, td.size {
    max-width: 80px; /* Restricting width for these columns */
    white-space: nowrap; /* Prevents content from wrapping */
}

th.notes, td.notes {
    max-width: 150px; /* Adjust as needed */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds an ellipsis to text that's too long */
}

/* Responsive table on mobile */
@media screen and (max-width: 768px) {
    table {
        border: 0;
    }
    table th {
        display:none;
    }
    table caption, table thead {
        display: none;
    }

    table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }

    table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        text-align: left;
        font-weight: bold;
    }
}

/* Form and Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Adjust based on your design */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-content form label, .quote-request label, .login-section label {
    display: block;
    margin: 10px 0;
    color: #333;
    font-weight: bold;
}

.modal-content form input[type="text"],
.modal-content form input[type="number"],
.modal-content form input[type="date"],
.modal-content form textarea,
.quote-request input,
.quote-request textarea,
.login-section input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-content form button, .quote-request button, .login-section button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.modal-content form button:hover, .quote-request button:hover, .login-section button:hover {
    background-color: #444;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu li {
        display: block;
        margin: 10px 0;
    }

    .modal-content, .quote-request form, .login-section form {
        width: 90%;
        margin: 5% auto;
    }

    .banner-img {
        height: 40%;
    }
}

/* Additional Styles */
.error-message {
    color: red;
    text-align: center;
    margin: 10px 0;
}

.welcome-message, .message-wrapper, .company-description {
    padding: 20px;
    text-align: center;
}

/* Button Styles */
#bookJobButton, #addJobButton {
    display: block;
    width: auto;
    padding: 10px 20px;
    margin: 10px auto;
    background-color: #4CAF50; /* Green button for actions */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#bookJobButton:hover, #addJobButton:hover {
    background-color: #45a049;
}

/* Style for Save button in driver assignment */
.save-driver {
    background-color: #4CAF50; /* Green color */
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-driver:hover {
    background-color: #45a049; /* Darker green on hover */
}

.daily-heading-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.arrow-link {
    text-decoration: none;
    color: #333; /* Dark grey color */
    font-weight: bold;
    margin: 0 10px; /* Space around arrows */
    padding: 5px 8px; /* Padding for clickable area */
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
}

.arrow-link:hover {
    background-color: #4CAF50; /* Green background on hover */
    color: white; /* White text on hover */
}

.daily-heading-wrapper h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.complete-link {
    color: rgb(112, 112, 152);
    text-decoration: underline;
    cursor: pointer;
}

.completed-job {
    background-color: lightgreen;
}

.contact-heading {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    color: white;
}

.contact-info {
    width: 70%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
}

.contact-map-info, .contact-image {
    flex-basis: 48%;
}

.contact-image {
    text-align: center;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    padding-top: 10px;
}

.contact-map-info iframe {
    width: 100%;
    height: auto;
    
    border: none;
}

.contact-map-info {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: lightgrey;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .contact-info {
        width: 90%; /* Adjusted width for mobile */
        flex-direction: column;
        margin: 0 auto; /* Center the container */
    }

    .contact-info div, 
    .contact-info iframe, 
    .contact-info img {
        margin: 10px 0;
        flex-basis: auto;
    }
}

.contact-map-info, .contact-image, .contact-info div {
    box-sizing: border-box;
}

.contact-info div {
    word-wrap: break-word;
}
.sub-address {
    display: block;
    margin-left: 70px; /* Adjust as needed */
}
.homepage-img {
    width: 100%; /* Make the image width responsive */
    height: auto; /* Maintain the aspect ratio */
    max-width: 600px; /* Maximum width of the image */
    display: block; /* Ensures the image does not have extra space around it */
    margin: 0 auto; /* Center the image */
}

/* Specific Styles for Admin Edit Forms */
.admin-edit-form {
    width: 80%; /* Adjusted width for form */
    margin: 20px auto; /* Center the form */
    padding: 20px;
    background-color: white; /* Background for the form */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.admin-edit-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 1.1em;
}

.admin-edit-form input[type="text"],
.admin-edit-form input[type="number"],
.admin-edit-form input[type="date"],
.admin-edit-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-edit-form button {
    width: auto;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.admin-edit-form button:hover {
    background-color: #45a049;
}

/* Responsive Design for Admin Edit Forms */
@media screen and (max-width: 768px) {
    .admin-edit-form {
        width: 90%;
        margin: 10px auto;
        padding: 15px;
    }

    .admin-edit-form label {
        font-size: 1em;
    }
}


/* Admin Navigation Button Styles */
.admin-nav-button {
    background-color: #F8F8F8; /* Off-white background */
    color: #333; /* Darker text color for contrast */
    padding: 8px 15px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

.admin-nav-button:hover, .admin-nav-button:focus {
    background-color: #E6E6E6; /* Slightly darker off-white on hover/focus */
    color: #292929; /* Even darker text color for better visibility */
    text-decoration: none;
}


