:root {
    --garage-blue: #0e3a75;
}

body {
    background-color: #f8f9fa;
    font-size: 15px;
}


/* Ensure the Navbar uses the garage color */
.navbar {
    background-color: var(--garage-blue) !important;
    position: relative;
    padding: 0 !important;
    overflow: visible; /* Allows the skew to "poke out" if needed */
}

/* Desktop Specific Styling (100px Header) */
@media (min-width: 992px) {
    .navbar {
        height: 100px;
    }

    #headerImgContainer {
        height: 100px;
        background-color: #ffffff;
        /* Increased the first value (left padding) to 40px for breathing room */
        padding: 0 40px 0 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 5;
    }

    /* The Skewed Border Effect */
    #headerImgContainer::after {
        content: '';
        position: absolute;
        top: 0;
        right: -35px; /* Adjust this to move the point */
        height: 100px;
        width: 80px;
        background: #ffffff; /* Must match the container */
        transform: skew(-20deg);
        z-index: -1; /* Sits behind the logo but stays part of the white block */
        transform-origin: top;
    }

    .headerImg {
        max-height: 70px;
        width: auto;
        position: relative;
        z-index: 10;
    }

    /* Menu alignment */
    .navbar-nav {
        align-items: center;
        height: 100px;
    }

    .navbar-links-custom {
        margin-left: 70px; /* Space to clear the skewed point */
    }
}

/* Mobile Styling Fixes */
@media (max-width: 991px) {
    #headerImgContainer {
        background-color: #ffffff;
        padding: 10px 20px;
        display: inline-block;
        /* Remove skew on mobile for a cleaner look */
    }
    .headerImg {
        max-height: 45px;
    }
}

/* Custom Scrollbar for the list */
.cust-list-scroll::-webkit-scrollbar {
    width: 6px;
}
.cust-list-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* List Item Enhancements */
.customer-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0 !important;
}
.customer-item:first-child { border-top: 0; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    h2 { font-size: 1.5rem; }
    .btn { padding: 0.6rem 1rem; }
    .modal-dialog { margin: 0.5rem; }

    /* Make the Details Pane appear as a separate "page" feeling when loaded */
    #customerDetails {
        margin-top: 1rem;
        padding-bottom: 2rem;
    }
}

.text-primary { color: var(--garage-blue) !important; }
.btn-primary { background-color: var(--garage-blue); border-color: var(--garage-blue); }

.repair-row {
    transition: background-color 0.2s ease;
}
.repair-row:hover {
    background-color: #fcfcfc;
}

.border-primary { border-left-color: var(--garage-blue) !important; }
.border-danger { border-left-color: #dc3545 !important; }
.border-warning { border-left-color: #ffc107 !important; }

/* Custom Badge for plate in dashboard */
.badge.bg-dark {
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .repair-row .fs-5 { font-size: 1.1rem !important; }
    .repair-row small { font-size: 0.7rem; }
}

/* Add breathing room below navbar */
.main-wrapper {
    padding-top: 1.5rem;
}

/* Ensure buttons have spacing in mobile view */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Modal styling for vehicle entry */
#modalPlateInput {
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.fc-timegrid-slots tr {
    height: 1.5rem !important; /* Set a consistent base height */
}

.fc-timegrid-slot-label {
    vertical-align: top;
}

/* Ensure the calendar doesn't grow infinitely */
#calendar {
    max-height: 80vh;
    background: white;
}

/* Login specific header tweak */
.card-header {
    overflow: visible !important;
}

#loginLogoWrapper {
    position: relative;
    background: #fff;
}

/* Recreating the askew border on the right side of the login logo box */
#loginLogoWrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: -30px;
    height: 100%;
    width: 60px;
    background: #ffffff;
    transform: skew(-20deg);
    z-index: 5;
    transform-origin: top;
}

/* Ensure the event blocks have enough internal spacing for the new time row */
.fc-v-event {
    padding: 5px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-event-main-container {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Make sure the text doesn't overflow the 2-hour block */
.fc-event-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Make the grid lines a bit more visible since there are more of them */
.fc-timegrid-slot {
    height: 40px !important; /* Adjust this to make the "size" of 15 mins even bigger */
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Style for when an event is being dragged to a forbidden (overlapping) spot */
.fc-event-dragging {
    opacity: 0.7;
}

/* Ensure the 'No Entry' cursor shows up on overlap if the browser supports it */
.fc-event-overlap-disabled {
    cursor: not-allowed;
}

/* Add a small gap between side-by-side events */
.fc-timegrid-event-harness {
    margin-right: 2px !important;
}

/* Ensure the text stays inside the narrowed block */
.fc-event-main-container {
    padding: 2px;
    font-size: 0.8rem; /* Slightly smaller font for side-by-side view */
    overflow: hidden;
}

/* Add a subtle shadow to make overlapping start-times look distinct */
.fc-timegrid-event {
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* 2. Fix the transparency of the grid and slots */
.fc .fc-timegrid-slots,
.fc .fc-timegrid-cols,
.fc .fc-scrollgrid {
    background-color: #ffffff !important;
}

/* 3. Fix for the header/toolbar background when scrolling */
.fc .fc-scrollgrid-section-header th {
    background-color: #f8f9fa !important; /* Slight off-white for headers */
    z-index: 10;
}

/* 4. Ensure the parent card doesn't have overflow issues */
.card-body {
    background-color: #ffffff;
}

/* 5. Improve visibility of the 15-minute slot lines */
.fc-timegrid-slot-minor {
    border-top-style: dotted !important;
    border-top-color: #e0e0e0 !important;
}





/* Container padding */
.fc-event-main-container {
    padding: 5px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 1. The Time Row (07:30 - 08:30) */
.fc-event-main-container div:first-child {
    font-size: 1.1rem !important; /* Increased from 0.85rem */
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding-bottom: 3px;
    margin-bottom: 5px !important;
    display: block !important;
}

/* 2. The Title (Handmatige Invoer) */
.fc-event-title {
    font-size: 1.2rem !important; /* Large and clear */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* 3. The Description (leroy zij deur problemen) */
.fc-event-desc {
    font-size: 1.05rem !important; /* Significantly larger */
    line-height: 1.3;
    opacity: 1 !important; /* Full visibility */
    font-weight: 500;
    word-break: break-word;
}

/* Ensure the event block expands to show all text */
.fc-v-event .fc-event-main {
    color: #fff !important;
}

.fc-event-main-container .fc-event-title {
    font-size: 1.25rem !important; /* Customer Name */
    margin-bottom: 5px;
}

.fc-event-main-container .fc-event-desc {
    font-size: 1.1rem !important; /* Description & Address */
    line-height: 1.4;
    font-weight: 500;
}

/* Ensure the time row is also prominent */
.fc-event-main-container div:first-child {
    font-size: 1rem !important;
    padding-bottom: 5px;
    margin-bottom: 8px;
}

/* Force the search input to have clear contrast */
/*#customerSearchInput {*/
/*    background-color: #fff !important;*/
/*    color: #000 !important;*/
/*    border: 1px solid #444;*/
/*}*/

/* Placeholder color for dark background */
#customerSearchInput::placeholder {
    color: #aaa !important;
}

/* Note: Native <datalist> popups are rendered by the OS/Browser.
   To force the 'Search List' appearance, we target the specific
   webkit/blink shadows used by Chrome, Edge, and Safari.
*/
#customerSearchInput::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Makes the dropdown arrow white */
}

/* If your system is using a custom dropdown library (like Select2 or Choices.js),
   use the following. If you are using NATIVE datalist, the browser
   usually follows the 'color-scheme' property:
*/
:root {
    color-scheme: dark; /* This tells the browser to render native popups in Dark Mode */
}

/*!* Specific fix for the 'White on White' bug during focus *!*/
#customerSearchInput:focus {
    background-color: var(--garage-blue) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}