﻿/* ============================================
   Base & Typographic
   ============================================ */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    padding-top: var(--navbar-h);
    margin: 0;
    background-color: #fff;
}

/* ============================================
   Design Tokens
   ============================================ */
:root {
    --navbar-h: 65px; /* header height */
    --sidebar-w: 260px; /* left sidebar width */
    --adrail-w: 320px; /* right white rail width (xl+) */
    --brand-bg: #1a1f36; /* deep blue-gray */
    --brand-hover: #2b3250; /* darker hover tone */
    --brand-gold: #fbc513; /* VeloraFi gold */
}

/* ============================================
   Navbar (Header) — fixed, tight, with large logo
   ============================================ */

/* Reassert fixed-top behavior (prevents white gap above) */
.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar {
    min-height: var(--navbar-h);
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible; /* allow big logo to overflow upward */
}

    .navbar.bg-dark {
        background-color: #000 !important;
    }

/* Push LEFT nav links to the right on desktop (you liked 15rem) */
@media (min-width: 992px) {
    #navbarMain .navbar-nav.me-auto {
        margin-left: -5rem; /* adjust 10–18rem as needed */
    }

    .navbar-nav .nav-link {
        padding-left: .6rem;
        padding-right: .6rem;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    /* move the logo to the right */
    margin-left: 2rem; /* 🔹 pushes logo 3rem (~48px) right */
    margin-right: 1rem; /* keeps small gap before nav links */
    /* give the brand area a little more width for larger logo */
    min-width: 20rem;
}


@media (min-width: 992px) {
    .navbar-brand {
        min-width: 18rem; /* reserve space for the enlarged logo */
        margin-right: 1rem;
    }
}

/* Large logo WITHOUT increasing navbar height:
   - base height equals navbar height
   - visually scaled to ~2×
*/
.navbar-logo {
    height: var(--navbar-h);
    transform: scale(2.3); /* 🔹 increases visual size by ~15% more */
    transform-origin: left center;
    transition: transform .2s ease;
}

    .navbar-logo:hover {
        transform: scale(2.4);
    }


@media (max-width: 991.98px) {
    /* Slightly smaller on phones so it doesn’t crowd the toggler */
    .navbar-brand {
        min-width: 12rem;
    }

    .navbar-logo {
        transform: scale(1.6);
    }
}

.icon-gold {
    color: #FFD700 !important;
}

/* ============================================
   Sidebar (Offcanvas on mobile, pinned on lg+)
   ============================================ */
#appSidebar {
    --bs-offcanvas-width: var(--sidebar-w);
    /* Color/theme is controlled by .sidebar--light or .sidebar--brand */
}

    /* Shared structure */
    #appSidebar .offcanvas-body {
        padding: 0;
    }

    #appSidebar .sidebar-section {
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: .75rem 1rem .25rem;
    }

    #appSidebar .sidebar-link {
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .55rem 1rem;
        border-radius: .5rem;
        text-decoration: none;
        transition: background-color .15s ease, color .15s ease;
    }

        #appSidebar .sidebar-link.disabled {
            pointer-events: none;
        }

    /* ---------- LIGHT THEME (Customers / Anonymous) ---------- */
    #appSidebar.sidebar--light {
        --bs-offcanvas-bg: #fff;
        background-color: #fff !important;
        color: #212529;
        border-right-color: rgba(0,0,0,.1);
    }

        #appSidebar.sidebar--light .sidebar-section {
            color: #6c757d;
        }

        #appSidebar.sidebar--light .sidebar-link {
            color: #212529;
        }

            #appSidebar.sidebar--light .sidebar-link:hover,
            #appSidebar.sidebar--light .sidebar-link.active {
                background: rgba(13,110,253,.08);
                color: #0d6efd;
            }

            #appSidebar.sidebar--light .sidebar-link.disabled {
                color: #adb5bd;
            }

    /* ---------- BRAND THEME (Staff/Admin/Pros/Companies) ---------- */
    #appSidebar.sidebar--brand {
        --bs-offcanvas-bg: var(--brand-bg);
        background-color: var(--brand-bg) !important;
        color: #f8f9fa;
    }

        #appSidebar.sidebar--brand .sidebar-section {
            color: rgba(255,255,255,.6);
        }

        #appSidebar.sidebar--brand .sidebar-link {
            color: rgba(255,255,255,.85);
        }

            #appSidebar.sidebar--brand .sidebar-link:hover,
            #appSidebar.sidebar--brand .sidebar-link.active {
                background: var(--brand-hover);
                color: var(--brand-gold);
            }

            #appSidebar.sidebar--brand .sidebar-link.disabled {
                color: rgba(255,255,255,.5);
            }

/* Pin sidebar on desktop (≥992px) */
@media (min-width: 992px) {
    #appSidebar {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        width: var(--sidebar-w);
        height: calc(100vh - var(--navbar-h));
        transform: none !important; /* cancel offcanvas translate */
        visibility: visible !important; /* ensure it's visible */
        border-right: 1px solid rgba(0,0,0,.1);
        z-index: 1030;
    }

    .app-main {
        padding-left: var(--sidebar-w);
    }

    .offcanvas-backdrop {
        display: none !important;
    }
}

/* ============================================
   Right White Rail (Ads)
   ============================================ */
#rightAdRail {
    position: fixed;
    top: var(--navbar-h);
    right: 0;
    width: var(--adrail-w);
    height: calc(100vh - var(--navbar-h));
    background: #fff;
    border-left: 0; /* no divider unless visible */
    display: none; /* hidden < xl */
    z-index: 1029;
}

@media (min-width: 1200px) {
    #rightAdRail {
        display: block;
        border-left: 1px solid rgba(0,0,0,.08);
    }

    .app-main {
        padding-right: var(--adrail-w);
    }
}

/* ============================================
   Main / Footer Layout
   ============================================ */
.app-main {
    min-height: calc(100vh - var(--navbar-h));
}

/* ============================================
   Utilities & Components
   ============================================ */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.hover-lift {
    transition: transform .15s ease, box-shadow .15s ease;
}

    .hover-lift:hover {
        transform: translateY(-2px);
    }

.object-fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-gold {
    color: var(--brand-gold) !important;
}

.sidebar-link i {
    font-size: 1.1rem;
}

.sidebar-section + .sidebar-link {
    margin-top: .25rem;
}

.sidebar-nav li + li {
    margin-top: .15rem;
}

/* ============================================
   Mobile specifics
   ============================================ */
@media (max-width: 991.98px) {
    .app-main {
        padding: 0;
    }

    #appSidebar {
        position: fixed;
        z-index: 1040;
    }
    /* normal offcanvas */
    #rightAdRail {
        display: none !important;
    }
}

/* ============================================
   Footer (match navbar height and alignment)
   ============================================ */
.footer {
    height: var(--navbar-h); /* same height as header */
    display: flex;
    align-items: center; /* vertically center text */
    justify-content: center; /* horizontally center text */
    background-color: var(--bs-primary); /* keep Bootstrap primary blue */
    color: #fff; /* text color */
    font-size: 0.95rem;
}

    .footer .container {
        margin: 0; /* remove default Bootstrap spacing */
        padding: 0;
    }

    /*Mobile Application Button*/

.btn-gold {
    background-color: var(--brand-gold);
    border: none;
    color: #1a1f36;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

    .btn-gold:hover,
    .btn-gold:focus {
        background-color: #ffd84d; /* lighter gold hover */
        color: #000;
        box-shadow: 0 0 0 0.15rem rgba(251,197,19,0.4);
    }

    /*KNOWLEDGE VIDEOS*/


/* Mobile default (small height) */
/*.knowledge-video {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}
*/
/* Larger screens (desktop/tablet) */
/*@media (min-width: 768px) {
    .knowledge-video {
        height: 450px;
    }
}*/

/* --- Beauty Knowledge: force consistent video height across breakpoints --- */
.knowledge-frame {
    position: relative;
    width: 100%;
    height: 280px; /* mobile default height */
    overflow: hidden; /* crop overflow for cover effect */
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    background: #000; /* nice backdrop while loading */
}

    .knowledge-frame > .knowledge-video {
        position: absolute;
        inset: 0; /* top:0 right:0 bottom:0 left:0 */
        width: 100%;
        height: 100%; /* <-- key: fill the frame */
        object-fit: cover; /* crop to fill */
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        display: block;
    }

/* Tablet+ */
@media (min-width: 768px) {
    .knowledge-frame {
        height: 360px;
    }
}

/* Large desktop+ */
@media (min-width: 1200px) {
    .knowledge-frame {
        height: 450px;
    }
    /* your “looks perfect” height */
}

/* Fullscreen should show entire frame */
.knowledge-video:fullscreen,
.knowledge-video:-webkit-full-screen {
    object-fit: contain;
    background: #000;
}

@media (max-width: 576px) {
    .dropdown > .btn {
        min-width: 10rem;
    }
}

/*video:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}*/
    /* Smaller avatar */
/* Larger square avatar with rounded corners */
/* ================= Avatar (namespaced) ================= */
/* ================= Avatar (namespaced) ================= */
.prodet-avatar img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px; /* rounded-square */
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.prodet-avatar .placeholder {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

/* ================= Card polish (namespaced) ================= */
.prodet-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 22px rgba(0,0,0,.05);
}

.prodet-card-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.prodet-card-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: .2px;
}

.prodet-services-list .list-group-item {
    border-color: rgba(0,0,0,.06);
}

/* ============================================================
   IMPORTANT: MATCH PROFILE VIDEOS TO KNOWLEDGE INDEX SIZE EXACTLY
   Knowledge Index uses:
   - mobile: 280px
   - tablet (≥768px): 360px
   - large desktop (≥1200px): 450px
   ============================================================ */
.prodet-knowledge-frame {
    position: relative;
    width: 100%;
    height: 280px; /* ✅ SAME AS KNOWLEDGE INDEX (MOBILE) */
    overflow: hidden;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    background: #000;
}

    .prodet-knowledge-frame > .prodet-knowledge-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%; /* ✅ FILL THE FRAME */
        object-fit: cover; /* ✅ SAME CROPPED LOOK */
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        display: block;
        background: #000;
    }

/* ✅ TABLET+ (MATCH KNOWLEDGE INDEX) */
@media (min-width: 768px) {
    .prodet-knowledge-frame {
        height: 360px; /* ✅ SAME AS KNOWLEDGE INDEX (TABLET) */
    }
}

/* ✅ LARGE DESKTOP+ (MATCH KNOWLEDGE INDEX) */
@media (min-width: 1200px) {
    .prodet-knowledge-frame {
        height: 450px; /* ✅ SAME AS KNOWLEDGE INDEX (DESKTOP) */
    }
}


/* ================= Knowledge frame (namespaced & isolated) ================= */
/*.prodet-knowledge-frame {
    position: relative;
    width: 100%;
    height: 280px;*/ /* base height; independent from Knowledge index */
    /*overflow: hidden;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    background: #000;
}

    .prodet-knowledge-frame > .prodet-knowledge-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;*/ /* cover crop */
        /*border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        display: block;
    }

.prodet-video-tile .prodet-knowledge-video {
    background: #000;
}

@media (min-width: 992px) {*/ /* lg */
    /*.prodet-knowledge-frame {
        height: 300px;
    }
}

@media (min-width: 1400px) {*/ /* xl+ */
    /*.prodet-knowledge-frame {
        height: 320px;
    }
}*/

/* Sidebar offcanvas: make sure it sits above other mobile layers */
@media (max-width: 991.98px) {
    #appSidebar.offcanvas {
        z-index: 1065;
    }
    /* one above the default backdrop (1060) */
}

/* The book appointment and my recommended products buttons in the profile details view*/
/* === Professional Gold Button Style === */
.btn-gold {
    background-color: #d4af37; /* same gold tone as sidenav hover */
    color: #000; /* black text for contrast */
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

    .btn-gold:hover,
    .btn-gold:focus {
        background-color: #c7a025; /* slightly darker gold on hover */
        color: #000;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
        transform: translateY(-1px);
        text-decoration: none;
    }

    .btn-gold:active {
        background-color: #b8921f;
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
.sidebar-link i {
    font-size: 1.1rem;
    vertical-align: middle;
    color: inherit;
}

.sidebar-link span {
    vertical-align: middle;
    font-weight: 500;
}

/* Product Recommendation*/
.upload-tile .thumb {
    width: 96px;
    height: 96px;
}

    .upload-tile .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
    }
/* Make the validation summary nicer when there are errors */
.validation-summary-errors:empty {
    display: none;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

/*Professional Profile Upsert View*/

.upload-tile .thumb {
    width: 108px;
    height: 108px;
}

    .upload-tile .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

#dropTile.dragover {
    border-color: #86b7fe;
    background: #f0f8ff;
}

.service-row .form-control {
    min-height: 2.5rem;
}

/*This is the Product Upsert View to add functionality for drag and drop and immediate viewing*/

.product-img {
    width: 100%;
    height: auto;
}

/* Compact tile sized like a control */
.product-tile--compact {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    cursor: pointer;
}

.pointer-none {
    pointer-events: none;
}

.preview-grid.compact {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

    .preview-grid.compact .thumb {
        width: 64px;
        height: 64px;
        border: 1px solid #bbb9b9;
        border-radius: .5rem;
        overflow: hidden;
        background: #f8f9fa;
        position: relative;
    }

        .preview-grid.compact .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

.thumb .badge-primary {
    position: absolute;
    top: .25rem;
    left: .25rem;
}

.thumb .btn-remove {
    position: absolute;
    top: .15rem;
    right: .15rem;
    line-height: 1;
    padding: .05rem .35rem;
    border-radius: .35rem;
}

/* nice visual feedback when dragging */
#dropTile.dragover {
    border-color: #86b7fe;
    background: #f0f8ff;
}

/*This is the Upsert View for Investments on the Admin side*/

.pointer-none {
    pointer-events: none;
}

/* Compact, button-sized tile (matches your other screens) */
.upload-tile--compact {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    cursor: pointer;
}

#dropTile.dragover {
    border-color: #86b7fe;
    background: #f0f8ff;
}

/*This is the Transfers Upsert View with drag and drop functionality*/
.pointer-none {
    pointer-events: none;
}

/* Compact, button-sized tile consistent with other screens */
.upload-tile--compact {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    cursor: pointer;
}

#dropTile.dragover {
    border-color: #86b7fe;
    background: #f0f8ff;
}

/*Procurement Upsert View with the drag and drop and immediate view capabilities*/
.pointer-none {
    pointer-events: none;
}

/* Compact, button-sized tile consistent with other screens */
.upload-tile--compact {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    cursor: pointer;
}

#dropTile.dragover {
    border-color: #86b7fe;
    background: #f0f8ff;
}

/*This is the Beauty Knowledge or My Knowledge Upsert View */
.pointer-none {
    pointer-events: none;
}

/* Compact, button-sized tile consistent with other uploaders */
.upload-tile--compact {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    cursor: pointer;
}

#dropTile.dragover {
    border-color: #86b7fe;
    background: #f0f8ff;
}

/* Profile view details sections where it shows the services in the profile, it will show 4 and the rest will be a scroll down.*/

/* Services list: show ~4 items then scroll */

/* Services list: show ~4 items then scroll */
.service-scroll {
    max-height: 200px; /* CHANGED FROM 290px */
    overflow-y: auto;
}


/*.service-scroll {*/
    /* 4 items × ~68px each + a little padding; adjust if your row heights differ */
    /*max-height: 290px;
    overflow: auto;
}*/

/* Make each item height consistent so the 4-item window feels intentional */
.service-item {
    padding-top: .65rem;
    padding-bottom: .65rem;
}

/* Subtle, modern scrollbar */
.service-scroll::-webkit-scrollbar {
    width: 8px;
}

.service-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.service-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.15);
    border-radius: 8px;
}

.service-scroll:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.28);
}

/* Firefox scrollbar */
.service-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.28) transparent;
}

/*===============================================

    This is the css for add product to the MyKnowledge videos
=================================================
    */

/* ===== Upload tile ===== */
.upload-tile--compact {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    cursor: pointer;
}

#dropTile.dragover {
    border-color: #86b7fe;
    background: #f0f8ff;
}

/* ===== Video thumbs under tile ===== */
#videoThumbs .vthumb {
    position: relative;
    width: 120px;
    height: 80px;
    background: #000;
    border-radius: .5rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.1);
}

    #videoThumbs .vthumb video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        background: #000;
    }

    #videoThumbs .vthumb .closex {
        position: absolute;
        top: 4px;
        right: 4px;
        border: 0;
        border-radius: 50%;
        background: #dc3545;
        color: #fff;
        width: 22px;
        height: 22px;
        line-height: 20px;
        font-size: 14px;
        cursor: pointer;
        opacity: .9;
    }

/* ===== Chips next to the Select Products button ===== */
#selectedProductsChips .chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 2px 6px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

    #selectedProductsChips .chip img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    #selectedProductsChips .chip .x {
        border: 0;
        background: transparent;
        line-height: 1;
        font-size: 16px;
        cursor: pointer;
    }

/* ===== Product picker cards ===== */
.p-card {
    position: relative;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.p-imgwrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* close to product card ratio used on home */
    background: #f8f9fa;
    overflow: hidden;
}

    .p-imgwrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.p-card .pill {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    padding: .15rem .45rem;
    border-radius: 999px;
    font-size: .8rem;
    cursor: pointer;
    user-select: none;
}

    .p-card .pill.active {
        background: #198754;
        color: #fff;
        border-color: #198754;
    }

.p-body {
    padding: .5rem .6rem .7rem;
}

.p-name {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-meta {
    font-size: .8rem;
    color: #6c757d;
}

/* Small pointer helper for the disabled-looking button text */
.pointer-none {
    pointer-events: none;
}
/* ===== Selected Products Grid: mimic Product Upsert image tiles ===== */
.preview-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .5rem;
}

.thumb.product-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #bbb9b9;
    background: #fff;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .thumb.product-thumb img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        display: block;
    }

.thumb .badge-primary {
    position: absolute;
    left: .4rem;
    top: .4rem;
    z-index: 2;
}

.thumb .btn-remove {
    position: absolute;
    right: .4rem;
    top: .4rem;
    z-index: 3;
    width: 28px;
    height: 28px;
    line-height: 26px;
    border-radius: 50%;
    background: #dc3545; /* bootstrap danger */
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .thumb .btn-remove:hover {
        filter: brightness(0.95);
    }

/* ===== Picker card (modal) ===== */
.p-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s ease, transform .05s ease;
}

    .p-card:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }

.p-imgwrap {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background: #f7f7f8;
}

    .p-imgwrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.p-body {
    padding: .5rem .65rem .7rem;
}

.p-name {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
}

.p-meta {
    color: #6b7280;
    font-size: .8rem;
    margin-top: .1rem;
}

/* ===== Professional Select Pill ===== */
.select-pill {
    position: absolute;
    top: .5rem;
    right: .5rem;
    border-radius: 999px;
    padding: .25rem .55rem;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    background: rgba(255,255,255,.92);
    color: #111827;
    backdrop-filter: blur(3px);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: all .15s ease;
}

    .select-pill:hover {
        border-color: #9ca3af;
        background: #fff;
    }

    .select-pill.active {
        border-color: #16a34a;
        color: #065f46;
        background: #dcfce7;
    }

    .select-pill i {
        font-size: .9em;
    }

/* ===== Video small thumbs ===== */
.vthumb {
    position: relative;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

    .vthumb video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .vthumb .closex {
        position: absolute;
        top: 4px;
        right: 4px;
        border: none;
        background: #0009;
        color: #fff;
        width: 22px;
        height: 22px;
        line-height: 20px;
        border-radius: 12px;
        font-size: .8rem;
    }

.upload-tile--compact.dragover {
    outline: 2px dashed #0d6efd;
    outline-offset: 4px;
}

/* ============================================
   MyKnowledge Upsert — Taller videos (Create/Edit)
   - .ki-preview: the large preview on the right card
   - .ki-existing: each video in the "Existing videos" list
   ============================================ */


/ /* ============================================
   MyKnowledge Upsert — Video Preview & Existing Videos
   Responsive rules: width ↑20%, height ↓20%
   ============================================ */
/* 🟢 BASE (phones & small screens, <768px)
   - Video takes up 30% of screen width
   - Height slightly reduced by 20% (from 59vh → 47vh)
   - This ensures it stays compact but not too tall on mobile
*/
:root {
    --ki-w: 100%; /* 25% → +20% width increase */
    --ki-h: 47vh; /* 59vh → -20% height reduction */
}

/* 🟡 TABLETS (≥768px)
   - Slightly larger screens, keep same width
   - Reduce height again to keep visual balance
*/
@media (min-width: 768px) {
    :root {
        --ki-w: 100%; /* keep +20% wider than before */
        --ki-h: 44vh; /* 55vh → -20% */
    }
}

/* 🔵 LARGE DESKTOPS (≥1200px)
   - Wider layout: still use 30% width (aligned with right column)
   - Maintain height at 44vh for more horizontal balance
*/
@media (min-width: 1200px) {
    :root {
        --ki-w: 100%;
        --ki-h: 50vh;
    }
}

/* =========================
   🎥 Main Preview (top video)
   ========================= */
.ki-preview {
    width: var(--ki-w);
    height: var(--ki-h);
    max-width: 100%;
    display: block;
    margin-left: auto; /* align to right edge */
    background: #000;
    object-fit: contain; /* letterboxed view for preview */
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

/* =========================
   📼 Existing Videos List
   ========================= */
.ki-existing {
    width: var(--ki-w);
    height: calc(var(--ki-h) * 0.9); /* slightly shorter */
    display: block;
    margin-left: auto;
    background: #000;
    object-fit: cover; /* cropped look for thumbnails */
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    /* 🔴 Match the delete button width to each video tile */
    .ki-existing + form .btn {
        width: var(--ki-w) !important;
        display: block;
        margin-left: auto;
        margin-top: .5rem;
    }

/* 📝 Align the caption under the preview video */
#previewCaption {
    width: var(--ki-w);
    margin-left: auto;
    font-size: 0.875rem;
    color: #6c757d;
}


/* =========================
   The Shoppable link
   ========================= */

/* ===== Shoppable pill (top-left overlay on profile videos) ===== */
.prodet-knowledge-frame {
    position: relative;
}

.shop-pill {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .6rem;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff; /* white by default */
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    backdrop-filter: blur(2px);
    transition: all .15s ease;
}

    /* Hover/keyboard focus: green “selected” look */
    .shop-pill:hover,
    .shop-pill:focus,
    .shop-pill:active,
    .shop-pill.active {
        background: #dcfce7; /* pale green */
        color: #065f46; /* deep green text */
        border-color: #16a34a; /* green border */
        outline: none;
    }

/*@media (min-width: 992px) {*/ /* lg */
    /*.prodet-knowledge-frame {
        height: 300px;
    }
}

@media (min-width: 1400px) {*/ /* xl+ */
    /*.prodet-knowledge-frame {
        height: 320px;
    }
}*/

/*

    /* ===== Sticky video in product list view =====    
*/

    /* Keep the video visible while scrolling the product list on desktop */
    @media (min-width: 992px) {
        .shop-video-wrap

{
    top: .5rem;
    position: sticky;
}

}

/* Limit table column height if very long */
.shop-table-scroll {
    max-height: 70vh;
    overflow: auto;
}

.line-zero {
    opacity: .45;
}

    .line-zero .qty-input {
        background: #f8f9fa;
    }



/*For the Layut of the chat app*/
.chat-shell {
    height: 100%;
    min-height: 400px;
}

.offcanvas-chat .chat-shell {
    /* make the chat fill the offcanvas height */
    height: calc(100vh - 56px); /* offcanvas header approx height */
}

.chat-left-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-conversation-list {
    flex: 1;
    overflow-y: auto;
}

.chat-right-pane {
    height: 100%;
}
/* For the  for the layout*/

    /* Right-side chat drawer */
.offcanvas-chat {
    width: 420px; /* adjust as you like */
    max-width: 100%;
}

/* Iframe inside chat drawer */
.chat-offcanvas-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

/*The chat section*/
/* ============================================
   Chat messaging – right-side professional ribbon
   ============================================ */
/* ============================================
   Chat messaging – right-side professional ribbon
   ============================================ */
#chat-dock {
    position: fixed;
    /* Align roughly with the filter/user bar under the navbar */
    top: calc(var(--navbar-h) + 1.5rem); /* 65px navbar + ~1.5rem padding */
    right: 0;
    z-index: 1050;
}


/* Ribbon-style button hugging the right edge */
.chat-ribbon {
    position: relative;
    border-radius: 999px 0 0 999px; /* round on left, flat on right */
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.25);
    border: none;
    background: linear-gradient(90deg, #0d6efd, #0043a8); /* professional blue gradient */
}

/* Label text */
.chat-ribbon-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Icon */
.chat-ribbon i {
    font-size: 1.3rem;
}

/* Small unread badge attached to the ribbon */
.chat-unread-badge {
    position: absolute;
    top: -0.3rem;
    left: 0.25rem;
    font-size: 0.7rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* --- Chat shell full height inside offcanvas --- */
.chat-shell {
    height: 100%;
    min-height: 400px;
}

/* When used inside the right offcanvas, let it fill the panel */
.offcanvas-chat .chat-shell {
    height: calc(100vh - 56px); /* offcanvas header ~56px */
}

/* Left pane: conversations */
.chat-left-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-conversation-list {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Right pane: messages + composer */
.chat-right-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Messages area: stick to top, scroll when needed, less padding */
#chatMessages {
    flex: 1 1 auto;
    padding: 0.75rem 1rem 0.5rem 1rem; /* tighter top/bottom */
    overflow-y: auto;
    overflow-x: hidden;
}


/* Composer: fixed at bottom of chat pane */
.chat-composer {
    flex: 0 0 auto;
    background: #fff;
}

/* ============================================
   Embedded chat (Messaging?embed=1 in iframe)
   ============================================ */

/* Only affect the chat when we're in the embedded mode */
body.embed-chat {
    background-color: #f3f4f6; /* soft gray behind the card */
}

    /* Give some breathing room under the offcanvas header & above bottom */
    body.embed-chat .app-main {
        min-height: auto;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    /* Chat "card" inside the offcanvas
   - shorter than full height
   - looks like a professional panel
*/
    body.embed-chat .chat-shell {
        height: auto;
        min-height: calc(100vh - 7rem); /* top + bottom space */
        max-height: calc(100vh - 5rem); /* never hug both edges */
        margin: 0 auto;
        border-radius: 0.75rem;
        background: #ffffff;
        box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.18);
        overflow: hidden; /* scrolling stays inside lists */
    }

        /* Make the inner Bootstrap row respect the card height */
        body.embed-chat .chat-shell > .row {
            height: 100%;
        }

    /* Messages: closer to the header, but not jammed */
    body.embed-chat #chatMessages {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Composer: slim bar at the bottom of the card */
    body.embed-chat .chat-composer {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

/* ============================================
   Chat color theming – use ribbon blue
   ============================================ */

/* Reuse the ribbon gradient as a named color */
:root {
    --chat-blue-start: #0d6efd; /* same as ribbon start */
    --chat-blue-end: #0043a8; /* same as ribbon end */
}

/* LEFT PANE: active conversation = blue like the ribbon */
.chat-conversation-list .list-group-item.active {
    background: linear-gradient(90deg, var(--chat-blue-start), var(--chat-blue-end)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

    /* Make sure title + preview text are white on the active row */
    .chat-conversation-list .list-group-item.active .fw-semibold,
    .chat-conversation-list .list-group-item.active small {
        color: #fff !important;
    }

/* RIGHT PANE: your own message metadata (name + time) in blue */
.chat-meta-mine {
    color: var(--chat-blue-start) !important;
}

    /* The timestamp span inherits the blue */
    .chat-meta-mine span {
        color: inherit !important;
    }

/* Optional: give *your* bubbles the same blue gradient instead of plain primary */
.chat-bubble-mine {
    background: linear-gradient(135deg, var(--chat-blue-start), var(--chat-blue-end)) !important;
    color: #fff !important;
}

/*  This is the for the side bar to add professionalism*/

/* Section titles in sidebar */
.sidebar-nav .sidebar-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 0.75rem 0.25rem;
    opacity: 0.8;
}

/* Sidebar links layout */
.sidebar-nav .sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Brand-themed sidebar hover (applies to staff, pros, and now customers) */
.sidebar--brand .sidebar-link:hover,
.sidebar--brand .sidebar-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Sidebar icons */
.sidebar-nav .sidebar-link i {
    font-size: 1rem;
}



/* THIS IS TO MAKE THE CART SMALLER ALONG WITH THE CSS IN THE INDEX VIEW: */

/* Shrink just a bit more on very small screens */
/* ~15% smaller on small screens (same as Home Index) */

/* ============================================
   SHARED PRODUCT CARD BUTTONS (HOME + MAYORISTA)
   ============================================ */

/* Desktop & tablet size (slightly smaller than default .btn-sm) */
.product-card-actions .btn {
    padding-block: 0.25rem;
    font-size: 0.85rem;
}

.quick-cart-btn {
    min-width: 2.2rem;
    padding-inline: 0.35rem;
}

/* ~15% smaller on phones (≤ 576px) */
@media (max-width: 576px) {
    .product-card-actions .btn {
        font-size: 0.7rem;
        padding-block: 0.18rem;
    }

    .quick-cart-btn {
        min-width: 1.9rem;
        padding-inline: 0.35rem;
    }

    /* ============================================================
   ADMIN – ROLE REQUEST AVATAR (HARD OVERRIDE)
   ============================================================ */

    .prodet-avatar {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .prodet-avatar-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 16px;
        display: block !important; /* 🔥 FORCE VISIBILITY */
        max-width: none !important; /* 🔥 KILL BOOTSTRAP SIDE EFFECTS */
    }

    /* ============================================================
   IMPORTANT: MOBILE FRIENDLY VIDEO CARD SIZING
   ============================================================ */
    .knowledge-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-top-left-radius: 0.75rem;
        border-top-right-radius: 0.75rem;
    }

    .knowledge-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


    /* ============================================================
   AURA ICON SYSTEM
   GOLD HEART = KNOWLEDGE / SAVE / AURA
   ============================================================ */

    /* Primary Aura Gold (matches USA Drops gold tone) */
    :root {
        --aura-gold: #d4af37; /* classic metallic gold */
    }

    /* Aura icon default */
    .aura-icon {
        color: var(--aura-gold) !important;
        font-size: 1.05em;
        vertical-align: -0.1em;
    }

    /* Navbar-specific hard override (Bootstrap dark nav fights colors) */
    .navbar-dark .navbar-nav .nav-link .aura-icon {
        color: var(--aura-gold) !important;
    }

    /* Hover glow (subtle aura effect) */
    .navbar-dark .navbar-nav .nav-link:hover .aura-icon {
        color: #f5d76e !important;
        text-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
    }

    /* Optional: use same aura icon for save buttons later */
    .btn-aura i,
    .save-aura i {
        color: var(--aura-gold);
    }
  
}


/* ============================================================
   ORIGIN MAP ICON — LARGE, CONTROLLED, NAVBAR SAFE
   ============================================================ */
.origin-map-logo {
    height: 24px; /* anchor size (same as fs-4 icon) */
    width: auto;
    transform: scale(2.7); /* 🔥 3–4× visual size */
    transform-origin: left center;
    margin-left: -25px; /* 🔹 nudge left */
    vertical-align: middle;
    opacity: 0.95;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

    /* Hover polish */
    .origin-map-logo:hover {
        transform: scale(3.7);
        opacity: 1;
    }

/* 📱 Mobile safety */
@media (max-width: 576px) {
    .origin-map-logo {
        transform: scale(2.0); /* slightly smaller on phones */
        margin-left: -12px;
    }
}

/* Scrollable referrer dropdown */
.referrer-dropdown {
    max-height: 320px; /* adjust: 250–400px is ideal */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Optional: smoother scrolling on touch devices */
.referrer-dropdown {
    -webkit-overflow-scrolling: touch;
}


/* ============================================================
   BOOKING / CALENDAR STATES
   ============================================================ */

.slot-cancelled {
    position: absolute;
    left: .25rem;
    right: .25rem;
    border-radius: .5rem;
    padding: .25rem .4rem;
    background: rgba(220, 53, 69, .20);
    border: 1px solid rgba(220, 53, 69, .75);
    font-size: .8rem;
    line-height: 1.1;
    cursor: pointer;
    z-index: 2;
}


/* ===== Weekly grid ===== */
.wk-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    overflow: hidden; /* desktop ok */
    user-select: none;
}

/* header cells */
.wk-header {
    background: var(--bs-light);
    font-weight: 600;
    padding: .5rem;
    border-right: 1px solid var(--bs-border-color);
    white-space: nowrap; /* desktop ok */
}

/* === MOBILE: force 7 days to fit on screen === */
@media (max-width: 576px) {
    .wk-grid {
        /* Make columns compress instead of overflowing */
        grid-template-columns: 46px repeat(7, minmax(0, 1fr));
        overflow: visible; /* IMPORTANT: don’t clip days 4–7 */
    }

    .wk-header {
        padding: .35rem .15rem;
        font-size: .65rem;
        white-space: normal; /* IMPORTANT: allow shrink */
        text-align: center;
        line-height: 1.05;
    }

    .wk-hour {
        font-size: .7rem;
        padding: .2rem .25rem;
    }

    .wk-timecol {
        width: 46px;
    }

    .slot,
    .slot-available,
    .slot-booked,
    .slot-paid {
        font-size: .65rem;
        padding: .2rem .25rem;
    }
}

/* ============================================================
   WEEK CALENDAR (mobile horizontal swipe)
   ============================================================ */

/* The scroll container must exist in markup */
.wk-scroll {
    max-width: 100%;
}

/* Mobile swipe behavior */
@media (max-width: 576px) {
    .wk-scroll {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    /* Force the week grid to be wider than the phone so it scrolls */
    .wk-grid {
        min-width: 900px; /* bigger than most phones */
        grid-template-columns: 80px repeat(7, 118px); /* time + 7 days */
        overflow: visible !important;
    }

    .wk-header {
        white-space: nowrap;
        text-align: center;
    }
}

/* ============================================================
   CALENDAR / APPOINTMENTS: shared "square chip card" look
   (matches MyAppointments feel)
   ============================================================ */

.chip-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.10);
    box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
    transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}

    /* nice micro-interaction (optional) */
    .chip-booking:hover {
        transform: translateY(-1px);
    }

    /* ============================================================
   STATUS COLORS (same scheme you listed)
   ============================================================ */

    /* Pending (Gold) */
    .chip-booking.slot-pending,
    .chip-booking.slot-available { /* use for open slots if you want “gold availability” */
        background: rgba(255, 193, 7, .18);
        border-color: rgba(255, 193, 7, .65);
    }

    /* Confirmed (Light Green) */
    .chip-booking.slot-confirmed {
        background: rgba(25, 135, 84, .14);
        border-color: rgba(25, 135, 84, .55);
    }

    /* Cancelled (Red) */
    .chip-booking.slot-cancelled {
        background: rgba(220, 53, 69, .14);
        border-color: rgba(220, 53, 69, .55);
    }

    /* Completed (Dark Blue) */
    .chip-booking.slot-completed {
        background: rgba(13, 110, 253, .10);
        border-color: rgba(13, 110, 253, .35);
    }

    /* Customer Confirmed (Dark Green) */
    .chip-booking.slot-customerconfirmed {
        background: rgba(20, 108, 67, .18);
        border-color: rgba(20, 108, 67, .55);
    }

    /* Disputed (Purple) */
    .chip-booking.slot-disputed {
        background: rgba(111, 66, 193, .14);
        border-color: rgba(111, 66, 193, .55);
    }

    /* Cleared (Neutral / subtle gold-gray so it reads “freed up”) */
    .chip-booking.slot-cleared {
        background: rgba(108, 117, 125, .10);
        border-color: rgba(108, 117, 125, .25);
    }

/* My Calendar (Index) header: desktop vs mobile labels */
.wk-day-mobile {
    display: none;
}

@media (max-width: 576px) {
    .wk-day-desktop {
        display: none;
    }

    .wk-day-mobile {
        display: inline;
        font-size: .85rem;
    }
}
