
/*-- START: Base Styling --*/

/* Root, html & body */

/*:root {
    --primary-color: #ffe208;
    --secondary-color: #1a1a1a;
    --text-color: rgba(255, 255, 255, 0.87);
    --background-color: #121212;
    --card-bg: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --hover-color: #d2ba00;
    --hover-color-row: rgba(255, 226, 8, 0.15);
    --dropdown-hover-text-color: white;*/ /* White for hovered text */
    /*--transition-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --dropdown-bg: #2a2a2a;
}*/

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Heebo', sans-serif;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 70px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 50px;
    font-size: 1em;
    background-color: #f9f5ef; 
    color: #444;
}


/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Container & Cards */

.container {
    width: 100%;
    margin: 0 auto;
    margin-top: 0.7em;
    /* Consider using padding instead of margin for spacing */
}

.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.card-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    background-color: var(--card-bg);
    font-weight: 700;
    color: #fee300 !important;
    text-transform: uppercase;
}

    .card-header h2 {
        margin-top: 0.2rem;
        margin-bottom: 0;
    }

.card-title {
    font-size: 19px;
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    /* Remove margin-bottom to prevent extra spacing */
}

.card-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

    /* Controls */

    .card-body .form-label {
        margin-bottom: 0rem;
    }

.form-control {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    /* Loading State Styles */
    .form-control:disabled {
        background-color: #e9ecef;
        cursor: not-allowed;
    }

    /* Error State Styles */
    .form-control.is-invalid {
        border-color: #dc3545;
        padding-right: calc(1.5em + 0.75rem);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

/* Responsive styles */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 95vw;
    }
}

/* Footer Styling */
.footer-bar {
    background-color: #f8f9fa !important;
    border-top: 1px solid #f1f1f1;
    height: 50px;
}

/*-- END: Base Styling --*/

/*-- START: Login CSS --*/

/* Password visibility icon */

.eye {
    /* Consider using an SVG or icon font for better scalability */
    /*mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-95.4-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;*/
    width: 1.3em;
    height: 1.3em;
    z-index: 3;
}

.eye-slash {
    /* Consider using an SVG or icon font for better scalability */
    /*mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;*/
    width: 1.3em;
    height: 1.3em;
    z-index: 3;
}

.eyelabelcontainer {
    position: absolute;
    right: 1.7rem;
    top: 1.78rem;
}

.eyetainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    user-select: none;
    /* Consider using a variable for fill color */
    fill: #424242;
}

    .eyetainer .eye {
        position: absolute;
        animation: keyframes-fill 0.5s;
    }

    .eyetainer .eye-slash {
        position: absolute;
        animation: keyframes-fill 0.5s;
        display: none;
    }

    /* ------ On check event ------ */
    .eyetainer input:checked ~ .eye {
        display: none;
    }

    .eyetainer input:checked ~ .eye-slash {
        display: block;
    }

    /* ------ Hide the default checkbox ------ */
    .eyetainer input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 2.6rem;
        width: 2.6rem;
    }

/* ------ Animation ------ */
@keyframes keyframes-fill {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }
}

/* Container */

.login-container label {
    z-index: 4;
}

.login-container {
    border-radius: 20px;
    padding: 3em;
    width: 100%;
    max-width: 725px;
    margin-top: 80px;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    transition: box-shadow var(--transition-speed) ease;
}

    /* Inner Card */
    .login-container .inner-card {
        border-radius: 15px;
        padding: 2em;
        margin: 20px auto;
        width: 100%;
        max-width: 450px;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    /* Heading */
    .login-container h2,
    .login-container h3 {
        margin-bottom: 15px;
        /*  text-align: center;
    font-weight: 500;*/

        color: var(--primary-color);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    /* Subheading */
    /* You had a p tag here that was overriding all p tags, I've made it specific to the login container */
    .login-container p {
        text-align: center;
        margin-bottom: 25px;
        color: var(--text-color);
        opacity: 0.9;
    }

/* Validation */

.form-floating span.text-danger.field-validation-error {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 0.875em;
    margin-bottom: -1.5rem;
    z-index: 1;
}

/*-- END: Login CSS --*/

#productDetailModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#productDetailModal .modal-header {
    flex-shrink: 0;
}

#productDetailModal .modal-body {
    flex-grow: 1;
    overflow-y: auto;
}

#productDetailModal .modal-footer {
    flex-shrink: 0;
}

.order-information {
    padding-bottom: 30px;
}

.delivery-information {
    padding-bottom: 30px;
}

.cart-lines {
    padding-bottom: 30px;
}

.navbar {
    position: relative;
    min-height: 60px;
    overflow: visible;
}

.navbar-custom-icon {
    width: 20px;
    height: 20px;
}

#ordersSearchResultsTable tbody tr:hover {
    background-color: #ADD8E6;
}

.thin-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

    .thin-underline::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 1px;
        width: 100%;
          background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 15%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0) 100%
          );
    }

.input-bordered {
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 0.5rem;
    padding : 0.5rem ;
    transition: all 0.2s ease-in-out; /* Smooth transitions for focus */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    outline: none;    
}

.input-bordered:focus {
    border-color: #80bdff; /* Indigo border on focus */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); /* Soft focus ring */
}

.input-bordered::placeholder {
    color: #9ca3af; /* Lighter placeholder text */
}

.input-group {
    margin-bottom: 1.5rem; /* Increased spacing between input groups */
}

.input-label {
    display: block;
    font-weight: 600; /* Semi-bold label */
    color: #333;
    margin-bottom: 0.5rem; /* Space between label and input */
    font-size: 0.95rem; /* Slightly larger label font */
}

.download-link {
    display: inline-flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #006600;
    text-decoration: none;
}

    .download-link:hover {
        text-decoration: underline;
        color: #004400;
    }

    .download-link img {
        width: 20px;
        height: 20px;
    }

.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}