/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

/* Body Styling */
body {
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 20px;
    margin-top: 80px; /* Adjusted for the fixed navbar */
}

/* Container for Content */
.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2f3b4c; /* Dark background color for the navbar */
    z-index: 1000;
    padding: 15px 0; /* Adjust the padding to give the navbar some height */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add some shadow below the navbar */
    display: flex;
    justify-content: center; /* Centers the buttons horizontally */
    align-items: center;
    gap: 15px; /* Space between the links */
}

/* Flexbox Row Styling for Navigation (Buttons) */
.navbar a {
    display: inline-block; /* Ensure they behave like buttons */
    background-color: #007BFF; /* Button background color */
    border: 1px solid #0056b3; /* Button border */
    color: white; /* Text color */
    padding: 12px 20px; /* Padding inside the button */
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Center the text inside the button */
    text-decoration: none; /* Remove underline from links */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size */
    transition: background-color 0.3s, box-shadow 0.3s; /* Transition for hover effect */
    margin: 0 10px; /* Space between the buttons */
}

/* Button Hover Effect */
.navbar a:hover {
    background-color: #0056b3; /* Darker background on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

tr:hover {
    background-color: #f1f1f1;
}

.red {
    background-color: #ffcccc;
}

.yellow {
    background-color: #ffffcc;
}

.green {
    background-color: #ccffcc;
}

/* Button Styling for Forms */
button[type="submit"], .filter-form button, .table-button .button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

button[type="submit"]:hover, .filter-form button:hover, .table-button .button:hover {
    background-color: #0056b3;
}

/* Form Layout and Styling */
.form-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.form-row label {
    font-size: 14px;
    margin-right: 10px;
    width: 150px;
}

.form-row input, .form-row select, .form-row textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
}

.form-row textarea {
    resize: vertical;
    width: 65%;
}

.form-row button {
    width: 100%;
}

/* Popup Overlay Styling */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.popup button {
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack navbar items vertically on smaller screens */
        align-items: center;
    }

    .navbar a {
        width: 100%; /* Full-width buttons */
        padding: 12px 0;
        margin-bottom: 10px;
    }

    .container {
        padding: 10px;
    }

    .table-container {
        overflow-x: auto; /* Make the table scrollable on small screens */
    }
}

/* Table Scroll for Smaller Screens */
@media (max-width: 480px) {
    th, td {
        font-size: 12px;
        padding: 6px;
    }
}

/* Vehicle and Reminder Specific Sections */
.vehicle-group, .vehicle-info, .vehicle-services, .vehicle-reminder {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.vehicle-info form, .filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Reminder Columns */
.reminder-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.reminder-column {
    width: 48%;
}

/* Receipt and Invoice Styling */
.receipt-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.receipt-thumbnail img:hover {
    transform: scale(1.05);
}

/* Filter Forms and Buttons */
.filter-form input[type="date"] {
    padding: 5px;
    font-size: 14px;
}
