/* styles.css */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Desktop styling */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

/* Mobile styling */
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .container {
        width: calc(100% - 10px); /* 20px margin on each side */
        margin: 0 auto; /* Center the container */
        padding: 20px;
        overflow: hidden;
    }
}


/* Header styling */
h1 {
    text-align: center;
    margin: 20px 0;
}
.repair-details-title {
    font-size: 18px; /* Adjust font size */
}

/* Form styling */
form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    margin-top: 8px;
    font-weight: bold;
}

input[type="text"], input[type="email"], input[type="number"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: #000000;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5;
}

button:hover {
    background-color: #218838;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
}

/* Button styles */
.button {
    display: inline-block; /* Allows padding and margin */
    background-color: #007bff; /* Primary button color */
    color: white; /* Text color */
    padding: 6px 15px; /* Padding for the button */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s; /* Smooth transition for hover */
}

.button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}


/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navbar styles */
/* Navbar Container */
.navbar-container {
    background-color: black;
    padding: 15px;
    position: sticky; /* Use sticky positioning for both mobile and desktop */
    top: 0; /* Stick to the top */
    z-index: 2000; /* Ensure it appears above other elements */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the navbar on the page */
}
/* get reoprt button on staff check check page */
.get-report-btn {
   margin-top: 15px;

}


/* Navbar links */
.navbar {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.navbar li {
    position: relative; /* Position relative for dropdown positioning */
}

.navbar li a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
}

/* Down arrow permanently for Admin */
.admin-link::after {
    content: "▼"; /* Down arrow */
    font-size: 12px; /* Adjust size as needed */
    margin-left: 5px; /* Space between text and arrow */
    display: inline-block; /* Always show the arrow */
}

.navbar li a:hover {
    background-color: #218838 !important; /* Green background hover */
    border-radius: 0px;
}

/* Dropdown styles */
.dropdown {
    display: none; /* Hide dropdown by default */
    position: absolute; /* Position the dropdown below the parent li */
    background-color: black; /* Match background with navbar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
    z-index: 3000; /* Ensure it appears above other elements */
    list-style: none;
    padding: 0; /* Remove default padding */
    margin: 16; /* Remove margin to avoid pushing it down */
    width: 200px; /* Set a fixed width as needed */
}

.navbar li:hover .dropdown {
    display: block; /* Show dropdown on hover */
}

.dropdown li a {
    padding: 15px 20px; /* Match padding for dropdown items */
    display: block; /* Ensure dropdown items are block elements */
    color: white; /* Set color for dropdown links */
    white-space: nowrap; /* Prevent text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar-container {
        justify-content: space-between;
    }

    .navbar {
        display: none; /* Hide navbar by default */
        flex-direction: column; /* Stack items vertically */
        background-color: black; /* Background color for mobile */
        width: 100%;
        position: absolute;
        top: 55px; /* Position below the hamburger menu */
        left: 0;
        padding-top: 10px;
        padding-bottom: 20px; /* Add padding at the bottom */
        z-index: 2000; /* Ensure it appears above the header */
    }

    .navbar.active {
        display: flex; /* Show navbar when active */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu */
        font-size: 1.5em;
        color: white;
        cursor: pointer;
    }

    /* Dropdown styles for mobile */
    .dropdown {
        position: relative; /* Change to relative for mobile */
        width: 100%; /* Full width for dropdown on mobile */
    }

    .navbar li:hover .dropdown {
        display: none; /* Disable hover effect on mobile */
    }

    .navbar li.active .dropdown {
        display: block; /* Show dropdown when parent is active */
    }
}

/* Container for the table */
.table-container {
    background-color: white; /* White background for the container */
    padding: 20px; /* Padding around the container */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    margin-top: 20px; /* Space above the container */
}


/* Container for the table */
.table-container {
    background-color: white; /* White background for the container */
    padding: 20px; /* Padding around the container */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    margin-top: 20px; /* Space above the container */
}


/* Table styling */
table {
    width: 100%;
    border-collapse: collapse; /* Remove space between table cells */
}

th, td {
    padding: 10px; /* Padding for table cells */
    text-align: left; /* Align text to the left */
    border-bottom: 1px solid #ddd; /* Light border between rows */
}

th {
    background-color: #f8f9fa; /* Light gray background for header */
    font-weight: bold; /* Bold header text */
}

/* Alternating row colors for readability */
tr:nth-child(even) {
    background-color: #f2f2f2; /* Light gray for even rows */
}

tr:hover {
    background-color: #d9edf7; /* Highlight color on hover */
}
/* Customer Information Section */
.customer-info {
    background-color: white; /* White background for consistency */
    padding: 20px; /* Padding around the section */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    margin-bottom: 20px; /* Space below the section */
}

/* Add margin to the header */
h2 {
    margin-top: 20px; /* Space above the header */
    margin-bottom: 10px; /* Space below the header */
}

.customer-info p {
    margin: 10px 0; /* Spacing between paragraphs */
}

.customer-info strong {
    color: #333; /* Stronger color for labels */
}

/* Button styles */
.button {
    display: inline-block; /* Allows padding and margin */
    background-color: #000000; /* Green color for primary buttons */
    color: white; /* Text color */
    padding: 10px 15px; /* Padding for the button */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s; /* Smooth transition for hover */
}

.button:hover {
    background-color: #218838; /* Darker green on hover */
}

.customer-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.customer-info-table td {
    padding: 8px 10px;
    vertical-align: top;
}

.customer-info-table td:first-child {
    font-weight: bold;
    width: 30%; /* Adjust as needed */
    color: #333;
}

.customer-info-table tr:nth-child(odd) {
    background-color: #f9f9f9; /* Light background for alternating rows */
}

.customer-info-table tr:hover {
    background-color: #e9f7fe; /* Highlight on hover */
}
.tooltip {
    display: block; /* Ensures it appears below the label */
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
    margin-bottom: 10px; /* Adds space below the tooltip */
    background-color: #f8f8f8;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
    position: relative;
}

/* Optional tooltip icon styling */
.tooltip:before {
    content: 'ℹ️';
    margin-right: 5px;
    color: #4cae4c; /* Tooltip icon color */
    font-weight: bold;
}

.selected-repair {
    font-weight: bold;
    color: #333;
    padding: 8px;
    background-color: #e8f5e9;
    border: 1px solid #4cae4c;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
    width: fit-content;
}

.filter-input {
    margin-top: 15px; /* Space between tooltip and filter input */
}
.customer-info-card {
    background-color: #ffffff; /* Card background color */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    padding: 20px; /* Padding inside the card */
    margin-top: 10px; /* Space above the card */
}

.customer-info-item {
    margin-bottom: 10px; /* Space between items */
    font-size: 16px; /* Font size for items */
}

.customer-info-item strong {
    color: #333; /* Strong text color */
}
.status-history-card {
    background-color: #f9f9f9; /* Light background for the status history */
    border-radius: 8px; /* Rounded corners for the card */
    padding: 5px; /* Padding inside the card */
    margin-top: 5px; /* Space above the card */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.status-history-item {
    background-color: #ffffff; /* White background for each status entry */
    border: 1px solid #e0e0e0; /* Light border around each entry */
    border-radius: 5px; /* Rounded corners for entries */
    padding: 15px; /* Padding inside each entry */
    margin-bottom: 5px; /* Increased space between entries */
    transition: background-color 0.3s; /* Smooth background transition on hover */
}

/* Space between lines inside the status history item */
.status-history-item strong {
    display: block; /* Make the strong elements block-level to stack them */
    margin-bottom: 5px; /* Space between the strong labels and their values */
}

/* Add space between each line in the status history item */
.status-history-item div {
    margin-bottom: 10px; /* Space between each line */
}

/* Optional: Change background color on hover */
.status-history-item:hover {
    background-color: #f0f8ff; /* Light blue background on hover */
}


/* Additional Repair Prices List Styling */
.additional-repair-list {
    margin-top: 15px; /* Space above the list */
    padding: 10px; /* Padding around the list */
    border: 1px solid #ccc; /* Border around the list */
    border-radius: 5px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background color */
}

.additional-repair-list p {
    margin: 5px 0; /* Space between items */
    padding: 8px; /* Padding for each item */
    border-bottom: 1px solid #e0e0e0; /* Separator between items */
}

/* Optional: Remove the last border for the last item */
.additional-repair-list p:last-child {
    border-bottom: none;
}
/* Styling for Filter Buttons */
.filter-button {
    background-color: #000; /* Black button color */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    margin-bottom: 6px; /* Reduce space around each button */
    min-width: 100px; /* Minimum width for uniformity */
}

.filter-button:hover {
    background-color: #333; /* Darker black on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, auto); /* Two buttons per row */
        gap: 4px; /* Reduce gap between buttons */
        justify-items: center;
    }

    .filter-button {
        width: auto; /* Avoid full width on mobile */
        padding: 6px;
        font-size: 0.95em;
        margin: 3px; /* Slightly reduce margin for tighter fit */
        min-width: 125px; /* Minimum width for uniformity */
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        grid-template-columns: repeat(3, auto); /* Three buttons per row on smaller screens */
        gap: 3px; /* Reduce gap further */
    }

    .filter-button {
        width: auto;
        margin: 3px; /* Reduce margin for compact spacing */
        font-size: 0.85em;
        min-width: 110px; /* Minimum width for uniformity */
    }
}
.shop-checkboxes {
    display: flex;
    flex-direction: column; /* Stack checkboxes vertically */
    margin-bottom: 20px; /* Space below the checkbox list */
}

.shop-checkbox {
    display: flex;
    align-items: center; /* Center vertically */
    margin-bottom: 10px; /* Space between checkboxes */
}

.shop-checkbox input[type="checkbox"] {
    margin-right: 10px; /* Space between checkbox and label */
    cursor: pointer; /* Change cursor on hover */
}

/* Optional: Add styles for better accessibility */
.shop-checkbox label {
    cursor: pointer; /* Change cursor on hover over the label */
}
/* Admin Functions Card Styles */
.admin-functions .container {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    align-items: center; /* Center the cards horizontally */
    gap: 20px; /* Space between cards */
}

.admin-functions .card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width on mobile */
    max-width: 600px; /* Adjust max width for larger screens */
    text-align: left; /* Align text to the left for better readability */
}
.admin-functions .card {
    @media (max-width: 768px) {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width on mobile */
    max-width: 600px; /* Adjust max width for larger screens */
    text-align: left; /* Align text to the left for better readability */
    }

.admin-functions h2 {
    margin-bottom: 10px; /* Space below the card titles */
}

.admin-functions input[type="text"], 
.admin-functions input[type="password"], 
.admin-functions input[type="email"],
.admin-functions select {
    width: 100%; /* Full width for inputs and selects */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Optional: Style the button to make it consistent */
.admin-functions button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.admin-functions button:hover {
    background-color: #0056b3;
}
#filter-heading {
    font-size: 20px; /* Font size */
    font-weight: bold; /* Make the text bold */
    color: #333; /* Text color */
    margin: 20px 0; /* Space above and below */
    text-align: center; /* Center align the text */
    padding: 10px; /* Padding for better spacing */
    background-color: #f9f9f9; /* Light background color */
    border: 1px solid #ccc; /* Optional: Add a border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


