﻿
@font-face {
    font-family: 'Roboto';
    src: url('/Roboto-Regular.ttf');
    font-weight: normal;
}


@font-face {
    font-family: 'Roboto-Bold';
    src: url('/Roboto-Bold.ttf');
    font-weight: bold;
}



@font-face {
    font-family: 'Roboto-Medium';
    src: url('/Roboto-Medium.ttf');
    font-weight: normal;
}


body {
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 4px;
    background-color: #f5f3f1;
    -webkit-tap-highlight-color: transparent;
}

body, td, th {
    font-family: Roboto;
    font-weight: normal;
    font-size: 12px;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #F00;
}

a:active {
    text-decoration: none;
}

.textborderpadding {
    resize: none;
    border-radius: 16px;
    padding: 6px
}


.post-text-resize {
    min-height: 100px;
    max-height: 276px;
    overflow-y: auto;
    box-sizing: border-box;
    resize: none;
    border-radius: 16px;
    padding: 6px
}

.buttonborder {
    border-radius: 12px;
}


.sidemenu {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #2b2116;
    white-space: pre-line;
    color: #666;
}

.machines {
    font-family: "Roboto";
    font-size: 10px;
    font-weight: bold;
    color: #2b2116;
    white-space: pre-line;
    color: #666;
}

.longdescription {
    font-family: 'Roboto';
    font-size: 11px;
    font-style: normal;
    color: #3d3b3b;
    white-space: pre-line;
}


.panelindustries {
    background-color: #FFFFFF;
    border: solid 2px #e2e2e1;
    padding: 14px;
    background-color: #FFFFFF;
    z-index: 9999999;
    border-radius: 5px;
}

.linkindclose {
    color: #7b7b7c;
    font-family: 'Roboto';
    font-weight: bold;
    cursor: pointer;
}


.flagborder {
    border-radius: 5px;
    vertical-align: middle;
}



.flagborder1 {
    border-radius: 6px;
    vertical-align: middle;
}


.pagedisplaybottom {
    background-color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-color: #808080;
    border-width: 1px;
    width: 100%;
    height: 100%;
    padding-left: 4px;
    padding-right: 4px;
}



.pagedisplaytop1 {
    background-color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-color: #808080;
    border-width: 1px;
    margin-left: 0vw;
    margin-right: 0vw;
    width: 100%;
}


.pagedisplaybottom1 {
    background-color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-color: #808080;
    border-width: 1px;
    margin-left: 0vw;
    margin-right: 0vw;
    width: 100%;
}






.videodisplay {
    background-color: black;
    max-height: 450px;
    min-height: 150px;
    width: 100%;
}

.videodisplay1 {
    margin-left: 0vw;
    margin-right: 0vw;
    background-color: black;
    min-height: 350px;
    height: 100%;
}




.sectorname {
    font-family: Roboto-Bold;
    font-size: 13px;
    color: #8d8d8d;
    font-weight: bold;
    white-space: pre-line;
}

.sectorname1 {
    font-family: Roboto;
    font-size: 13px;
    color: #adacac;
    white-space: pre-line;
}


.iconmargin {
    padding-top: 8px;
}

.sectordetails {
    font-family: Roboto;
    padding-top: 8px;
    padding-bottom: 8px;
}

.sectordetailscolor {
    font-size: 15px;
    color: #1f1f1f;
    font-family: Roboto;
    white-space: pre-line;
}




.img-circle {
    border-radius: 50%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #F4F4F4;
    background-color: #FFFFFF;
    cursor: pointer;
    object-position: center center;
    display: block;
}


.img-circle1 {
    border-radius: 10px;
    cursor: pointer;
}


.img-circle1a {
    border-radius: 5px;
    z-index: 9999999 !important;
}

    .img-circle1a img {
        border-radius: 5px;
        z-index: 9999999 !important;
    }

.parentdisplaydesign {
    max-width: 800px;
    min-width: 350px;
    width: 1106px;
}



.parentdisplay {
    max-width: 1106px;
    min-width: 800px;
    width: 1106px;
}

.parentdisplay1 {
    margin-left: 0vw;
    margin-right: 0vw;
    max-width: 100%;
    min-width: 100%;
}


.sideprofile {
    border-radius: 50%;
    border-width: 3px;
    border-color: #f5f4f3;
    background-color: #FFFFFF;
}


.profilecover {
    height: 175px;
    overflow-y: hidden;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #FFFFFF;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 0px;
    border-top-color: #e9e8e7;
    border-left-color: #e9e8e7;
    border-right-color: #e9e8e7;
    border-top-style: solid;
    border-left-style: solid;
    border-right-style: solid;
    cursor: pointer;
    object-position: center center;
    display: block;
}




.profilecover1 {
    height: 195px;
    overflow-y: hidden;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    background-color: #FFFFFF;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 0px;
    border-top-color: #e9e8e7;
    border-left-color: #e9e8e7;
    border-right-color: #e9e8e7;
    border-top-style: solid;
    border-left-style: solid;
    border-right-style: solid;
    cursor: pointer;
    object-position: center center;
    display: block;
}


.profilecover2 {
    height: 125px;
    overflow-y: hidden;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #FFFFFF;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 0px;
    border-top-color: #e9e8e7;
    border-left-color: #e9e8e7;
    border-right-color: #e9e8e7;
    border-top-style: solid;
    border-left-style: solid;
    border-right-style: solid;
    cursor: pointer;
    object-position: center center;
    display: block;
}


.pagedisplaytop {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: white;
    border-color: #808080;
    border-width: 1px;
    width: 100%;
    height: 100%;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 20px;
}



.right-panel-sectors {
    /* Fixed positioning relative to the .page-container */
    overflow-y: auto;
    width: 280px;
    background-color: #FFFFFF;
    border-radius: 20px;
    height: 100%;
}


.searchtext {
    color: #dfdfe0;
}



.showsector {
    border-radius: 30px;
    vertical-align: middle;
    border-style: solid;
    border-width: 2px;
    border-color: #e2e2e1;
    background-color: #fcfcfc;
    position: fixed !important;
    /* You can adjust these values as needed */
    top: 50% !important;
    left: 60% !important;
    transform: translate(-50%, -50%);
    max-width: 330px;
    z-index: 999999 !important;
}

@media (max-width: 600px) {
    .showsector {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        max-width: 330px;
        z-index: 999999 !important;
    }


    .pagedisplaytop {
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }

    .pagedisplaybottom {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    body {
        background-color: #FFFFFF;
    }
}

.showsectorimage {
    border-radius: 30px;
    vertical-align: middle;
    cursor: pointer;
    max-width: 600px;
    width: 95%;
    border-style: solid;
    border-width: 1px;
    border-color: #8d8d8d;
    position: fixed !important;
    /* Center the panel */
    top: 40% !important; /* Adjusted from 40% to 50% for perfect centering */
    left: 50% !important;
    transform: translate(-50%, -50%); /* Adjusted transform for perfect centering */
    z-index: 99999999 !important;
    box-shadow: 0 0 65px 10px rgba(0, 0, 0, 0.3);
}


.watermarktext {
    color: #c4c4c6;
}



.pagedisplay {
    background-color: white;
    border-radius: 20px;
    border-color: #808080;
    border-width: 1px;
    height: 100%;
    padding-left: 4px;
    padding-right: 4px;
    max-width: 500px;
}

.generalfont {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.industryselect {
    font-family: "Roboto";
    color: #2663a3;
}

.generalfont {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.venturesuggestfont {
    font-family: "Roboto";
    font-weight: bold;
    color: #423f3d;
    cursor: pointer;
}

.industrycat {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #5b544e;
    white-space: pre-line;
    cursor: pointer;
}

.industrycat1 {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #fc7205;
    white-space: pre-line;
    cursor: pointer;
}



.industrycat2 {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #282624;
    white-space: pre-line;
    cursor: pointer;
}

.industry {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #2c2b2a;
    white-space: pre-line;
    cursor: pointer;
}




.machines {
    font-family: "Roboto";
    font-size: 10px;
    font-weight: bold;
    white-space: pre-line;
    color: #5b544e;
}

.inspiration {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #9f09b9;
    white-space: pre-line;
    cursor: pointer;
}



.producttype {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #345e2c;
    white-space: pre-line;
    cursor: pointer;
}

.producttype1 {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #58945b;
    white-space: pre-line;
    cursor: pointer;
}

.longdescription {
    font-family: 'Roboto';
    font-size: 11px;
    font-style: normal;
    color: #3d3b3b;
    white-space: pre-line;
}


.panelposttype {
    background-color: #FFFFFF;
    border: solid 2px #e2e2e1;
    padding: 14px;
    background-color: #FFFFFF;
    border-radius: 25px;
    z-index: 9999999;
}

.panelventurepost {
    background-color: #FFFFFF;
    border: solid 2px #e2e2e1;
    padding: 14px;
    background-color: #FFFFFF;
    border-radius: 30px;
    z-index: 99999999;
}

.panelindustriescategories {
    background-color: #FFFFFF;
    border: solid 2px #e2e2e1;
    padding: 14px;
    background-color: #FFFFFF;
    border-radius: 30px;
    z-index: 9999999999;
}


.panelindustries {
    background-color: #FFFFFF;
    border: solid 2px #e2e2e1;
    padding: 14px;
    background-color: #FFFFFF;
    border-radius: 30px;
    z-index: 999999999 !important;
}

.linkindclose {
    color: #7b7b7c;
    font-family: 'Roboto';
    font-weight: bold;
    cursor: pointer;
}



.labelheader {
    color: #999999;
    cursor: pointer;
}

.postimages {
    cursor: pointer;
}


.imagelist {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}





.buttonborder1 {
    border-radius: 8px;
}




.placeholder-container {
    width: 500px;
}


.post-placeholder-item {
    display: flex;
    align-items: flex-start;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 35px;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #FFFFFF;
}


.placeholder-avatar {
    width: 48px;
    height: 48px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin-right: 15px;
    margin-bottom: 10px;
    animation: loading-pulse 1.5s infinite ease-in-out;
}

.placeholder-avatar1 {
    width: 48px;
    height: 48px;
    background-color: #e1e1e6;
    border-radius: 50%;
    margin-right: 15px;
    margin-bottom: 10px;
    border: 1px solid #FFFFFF;
    animation: loading-pulse 1.3s infinite ease-in-out;
}


.placeholder-image-sector1 {
    width: 80%;
    height: 110px;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 18px;
    animation: loading-pulse 1.5s infinite ease-in-out;
}


.placeholder-content {
    flex-grow: 1;
}


.placeholder-line {
    height: 12px;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 8px;
    animation: loading-pulse 1.5s infinite ease-in-out;
}


.placeholder-image {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 14px;
    animation: loading-pulse 1.5s infinite ease-in-out;
}

.placeholder-image-sector {
    width: 80%;
    height: 80px;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 14px;
    animation: loading-pulse 1.5s infinite ease-in-out;
}

.post-placeholder-item-sector {
    display: flex;
    align-items: flex-start;
    padding-left: 3px;
    padding-right: 15px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 4px;
    background-color: #FFFFFF;
}

.placeholder-line.short {
    width: 40%;
}

.placeholder-line.medium {
    width: 75%;
}

.placeholder-line.long {
    width: 95%;
}


@keyframes loading-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}



#PanelHeaderLeftMobile, #PanelHeaderRightMobile {
    display: none;
}


.header-panel {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the content wrapper within the fixed header */
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    background-color: #f0f0f0;
    z-index: 1000;
    background-color: #fff;
    padding-top: 12px;
    padding-bottom: 8px;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom-style: solid;
    border-bottom-color: #e2e2e1;
    border-bottom-width: 1px;
}



/* --- Base Desktop Layout (All panels visible as columns, > 850px) --- */

.page-container {
    margin-left: auto;
    margin-right: auto;
    margin-top: 72px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 50px;
    width: fit-content;
}



.main-content {
    min-width: 330px;
    max-width: 500px;
    padding-left: 28px;
    padding-right: 28px;
    display: block !important;
}


#divleftPanel {
    width: 260px;
    flex-shrink: 0;
}

#RightPanelWrapper {
    position: sticky !important; /* FIXED: Wrapper sticks so BOTH the panel and stub scroll together */
    top: 70px; /* Distance from top of viewport when sticking */
    width: 280px; /* Matches your desired 260px width */
    flex-shrink: 0;
    background: transparent;
}




@media (min-width: 951px) {
    /* Targets the panel when it is a child of .page-container */
    .page-container > #divleftPanel,
    .page-container > #divRightPanelWrapper {
        /* CRITICAL: Disable all mobile positioning and animation */
        position: sticky !important;
        top: 70px !important;
        transform: none !important;
        transition: none !important;
        z-index: 1; /* Normal flow z-index */
        /* Ensure it is visible as a column */
        display: block !important; /* Or 'flex', 'grid', etc., for your column layout */
        width: 260px;
    }

    #leftPanelSpacer {
        display: block !important; /* Hide desktop search */
    }


    .main-content {
        width: 500px;
    }

    .page-container {
        width: 1080px;
    }
}


/* --- THE BRIDGE: Keeps Right Panel visible from 651px to 950px --- */
@media (max-width: 950px) and (min-width: 651px) {
    .page-container > #divRightPanelWrapper {
        display: block !important;
        position: sticky !important;
        width: 260px !important;
        flex: 0 0 260px !important;
        transform: none !important;
        z-index: 1;
    }




    .main-content {
        min-width: 330px;
        max-width: 500px;
        padding-left: 15px;
        padding-right: 20px;
        display: block !important;
    }


    .left-panel,
    .right-panel-w {
        display: block !important;
        z-index: 99999;
        transition: transform 0.3s ease-out;
        width: 260px
    }



    body > #divRightPanelWrapper {
        display: none !important;
    }
}



@media (max-width: 950px) {
    /* 1. Hide the Left Panel column */
    .page-container > #divleftPanel {
        display: none !important;
    }


    .main-content {
        min-width: 330px;
        max-width: 500px;
        padding-left: 15px;
        padding-right: 20px;
        display: block !important;
    }

    #PanelHeaderLeftMobile {
        display: block !important;
    }


    #PanelSearch {
        display: none !important; /* Hide desktop search */
    }


    #leftPanelSpacer {
        display: none !important; /* Hide desktop search */
    }

    .left-panel,
    .right-panel-w {
        display: block !important;
        z-index: 99999;
        box-shadow: none;
        min-height: 100vh;
        transition: transform 0.3s ease-out;
        padding: 0 15px 15px 15px;
        width: 260px
    }

    .left-panel {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        background-color: #FFFFFF;
    }
}



/* --- Breakpoint 2: Hide Right Panel (width <= 750px) --- */

@media (max-width: 650px) {
    /* 1. Hide the Right Panel column */
    .page-container > #divRightPanelWrapper {
        display: none !important;
    }

    .page-container > #divleftPanel {
        display: none !important;
    }


    .main-content {
        padding-left: 0;
        padding-right: 0;
        display: block !important;
        width: 100% !important;
        max-width: 500px !important;
    }


    #PanelHeaderRightMobile {
        display: block !important; /* Show icon to open right panel */
    }


    #PanelHeaderRight {
        display: none !important; /* Show icon to open right panel */
    }

    #leftPanelSpacer {
        display: none !important; /* Hide desktop search */
    }

    .left-panel,
    .right-panel-w {
        position: fixed;
        top: 0;
        z-index: 99999;
        box-shadow: none;
        min-height: 100vh;
        max-height: calc(100vh - 10px);
        transition: transform 0.3s ease-out;
        display: none;
        padding: 15px;
        width: 260px
    }


    #divRightPanelWrapper {
        position: fixed !important; /* Force fixed over sticky  */
        top: 0 !important; /* Force it to the very top  */
        right: 0 !important; /* Ensure it's pinned to the right [cite: 37] */
        height: 100vh !important; /* Fill the vertical screen  */
        margin-top: 0 !important; /* Remove any desktop margins */
        display: none; /* Controlled by is-open class [cite: 36, 39] */
        transform: translateX(100%); /* Start off-screen [cite: 37] */
        transition: transform 0.3s ease-out; /* Smooth slide  */
    }

        /* When the JS adds 'is-open', show it and slide it in */
        #divRightPanelWrapper.is-open {
            display: block !important; /* [cite: 39] */
            transform: translateX(0) !important; /* [cite: 43] */
        }
}



/* --- Panel Overlay CSS (Ensure this is present for the toggle to work) --- */
/* Body class to prevent main content scroll when overlay is open */

.body-no-scroll {
    overflow: hidden;
    touch-action: none;
}



/* Backrop style (optional, but recommended) */

#backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none; /* Hidden by default, shown by JS when a panel opens */
}


.left-panel.is-open,
.right-panel-w.is-open {
    transform: translateX(0);
}

/* Hidden State (Off-screen) */
.left-panel {
    left: 0;
    transform: translateX(-100%);
}

.right-panel-w {
    right: 0;
    transform: translateX(100%);
}

    /* Open State (Class applied by JS toggle) */
    /* Open State (Class applied by JS toggle) */
    .left-panel.is-open,
    .right-panel-w.is-open {
        transform: translateX(0);
    }

#NotificationArea {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* The bell icon */
.notification-toggle-icon {
    cursor: pointer;
}


#NotificationCount,
#NotificationCountMobile {
    position: absolute;
    top: -7px;
    right: -11px;
    z-index: 10;
    width: 12px;
    height: 12px;
    line-height: 12px;
    border-radius: 50%;
    background-color: #e50505; /* Red */
    color: white;
    font-size: 8.5px;
    font-weight: bold;
    text-align: center;
    padding: 4px;
    box-shadow: 0 0 0 2px #fff; /* White ring/border */
}


    #NotificationCount.hidden,
    #NotificationCountMobile.hidden {
        display: none;
    }


.notification-dropdown,
#NotificationDropdown {
    position: absolute;
    top: 30px;
    z-index: 100;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    width: 345px;
    max-width: 90vw;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, max-height 0.5s ease-in-out;
    right: -123px;
    left: auto;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transform: translateY(-10px);
}



.notification-list {
    padding: 0 5px 0 5px !important;
    margin: 0 !important;
    overflow-y: auto;
    max-height: 500px;
    list-style: none;
}

    .notification-list.scrollbar-active {
        padding-right: 0px !important;
        margin-right: 2px !important;
    }



.notification-dropdown.show,
#NotificationDropdown.show {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.no-notifications-message {
    padding: 20px;
    text-align: left;
    font-family: Roboto;
    font-weight: bold;
    color: #494c4e;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 5px 14px 14px;
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    margin-bottom: 12px;
    text-align: left;
    transition: max-height 0.45s ease-in-out, opacity 0.45s ease-in-out, padding 0.45s ease-in-out, margin 0.45s ease-in-out;
}

    .notification-item:last-child {
        border-bottom: none;
    }


    .notification-item:hover {
        cursor: pointer;
        background-color: #fbf9f9;
        border-radius: 18px;
    }


    .notification-item:active {
        box-shadow: 0 0 0 1px rgba(255, 167, 102, 0.20);
        border-radius: 18px;
    }

    /* Unread State (Request 10) */
    .notification-item.unread {
        padding: 14px 5px 14px 14px;
        border-radius: 18px;
        text-align: left;
    }

        .notification-item.unread:hover {
            background-color: #fbf9f9;
            border-radius: 18px;
        }


.notification-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
    flex-grow: 1;
    position: relative;
    border-radius: 8px;
    transition: background-color 0.2s;
}



.avatar-area {
    position: relative;
    width: 50px;
    min-width: 40px;
    height: 50px;
    margin-right: 14px;
    flex-shrink: 0;
}

.notif-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    background-color: #FFFFFF;
}



/* --- Message Area --- */
.message-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    line-height: 1.1;
    padding-top: 5px;
    text-align: left;
}


.notification-message {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.1;
    transition: color 0.2s;
    white-space: normal;
    word-wrap: break-word;
    color: rgba(0, 0, 0, 0.35);
}

.notification-subject {
    font-size: 12px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.35);
    margin: 0;
    padding: 1px 0 4px 0;
    white-space: normal;
}

.notification-item.unread .notification-subject {
    font-family: Roboto;
    font-weight: 600;
    color: #484546;
    display: flex;
    align-items: flex-start;
    text-align: left;
}


.notification-item.unread .notification-message {
    font-family: Roboto;
    font-weight: bolder;
    color: #494c4e;
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.notification-time {
    font-size: 7pt;
    color: rgba(0, 0, 0, 0.25);
    text-align: left;
}


.notification-item.unread .notification-time {
    font-size: 7pt;
    color: #8a6a6a;
    text-align: left;
}

.notif-actions {
    display: flex;
    flex-shrink: 0; /* Do not shrink */
    align-items: flex-start;
    padding-top: 5px; /* Vertical align with the message/avatar */
}


.action-icon {
    position: absolute;
    bottom: -10px;
    margin-left: 35px;
    width: 14px;
    height: 14px;
    padding: 3px;
    box-sizing: content-box;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.notif-dismiss-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: all 0.2s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}



    .notif-dismiss-btn:hover {
        color: #e50505; /* Red icon color */
        background-color: rgba(0, 0, 0, 0.05); /* Light gray circle */
    }



.notification-item.dismissing {
    opacity: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    overflow: hidden;
    transition: max-height 0.45s ease-in-out, opacity 0.45s ease-in-out, padding 0.45s ease-in-out, margin 0.45s ease-in-out;
}

    /* Ensure the link inside also collapses with the item */
    .notification-item.dismissing .notification-link {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .notification-item.dismissing .notif-dismiss-btn {
        opacity: 0 !important; /* It should disappear with the item */
    }


/* --- 4. Notification Toast (New Notification Popup) --- */

.notification-toast {
    position: fixed;
    bottom: 75px;
    left: 50%;
    z-index: 9999999999999999 !important;
    /* Keeps the Slide-Up animation intact */
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    min-width: 240px;
    max-width: 320px;
    font-family: Roboto, Arial, sans-serif;
    /* Centering Logic */
    display: flex;
    align-items: center; /* Vertical center */
    gap: 10px;
    min-height: 50px;
}

    .notification-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0px);
        pointer-events: auto;
    }

/* Specific Style Variations */
.toast-error {
    font-size: 12px;
    font-weight: bold;
    justify-content: center; /* Horizontal center icon + text */
    text-align: center; /* Center multi-line text */
}

.toast-success {
    font-size: 12px;
    font-weight: bold;
    justify-content: center; /* Horizontal center icon + text */
    text-align: center; /* Center multi-line text */
}



/* Toast Avatar (Requested: Gray Border) */
.toast-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ccc;
    background-color: #e9e8e7;
}

/* Toast Content */
.toast-content-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}



.toast-text-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows it to take all remaining space */
    overflow: hidden; /* Important for ellipsis on children */
    min-width: 0; /* Important for flex items with overflow */
}


.toast-subject {
    font-size: 11px;
    color: #ccc; /* Lighter color for secondary text */
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.toast-message {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    max-width: 220px !important;
    padding-right: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal; /* Allow wrapping */
    word-break: break-word; /* Prevents long words from breaking bounds */
}

.toast-action-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* 3. THE ICONS (Consolidated Sizes) */
.toast-action-icon {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    width: 26px; /* Matching the action icon for symmetry */
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    /* Apply positioning to the dropdowns */
    .notification-dropdown,
    #NotificationDropdownMobile {
        width: 90vw;
        max-width: 345px;
        left: auto;
        right: -28px;
        transform: translateY(-10px);
    }

        .notification-dropdown.show,
        #NotificationDropdownMobile.show {
            transform: translateY(0);
        }



    .notif-dismiss-btn {
        opacity: 0.4 !important; /* Override the default opacity: 0 */
        background-color: rgba(0, 0, 0, 0.05) !important;
    }

    /* 2. Hide the UNREAD dot when the button is visible, to prevent overlap */
    .notification-item.unread .unread-dot-indicator {
        display: none !important;
    }

    /* 3. Ensure the button gets a slight background when tapped/hovered for feedback */
    .notif-dismiss-btn:hover,
    .notif-dismiss-btn:active {
        background-color: rgba(0, 0, 0, 0.1) !important;
    }
}



.notification-header {
    /* Required to give the header a visible boundary */
    background-color: rgba(251, 251, 251, 0.00);
    border-bottom: 1px solid #e8e8e8;
    /* Your existing layout and font properties */
    padding: 18px 14px 14px 14px;
    font-size: 13pt;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    /* Ensure height is determined by padding and content */
    height: auto;
}


/* 1. Define the footer as a vertical flex container */
.notification-footer {
    border-top: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column; /* Forces children to stack vertically */
    align-items: center; /* Centers children horizontally */
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
    text-align: center;
}

/* 2. Explicitly style the links to behave as block-level flex children */
.markallread-link {
    display: block; /* Forces the link to take up the full width of its row */
    font-size: 9pt;
    font-weight: bold;
    color: #575655;
    text-decoration: none;
    margin-bottom: 3px; /* Removes inherited margins */
}

/* 3. The Pill remains an inline-flex element, which works fine inside the column */
.notification-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 15px;
    font-size: 8px;
    line-height: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #b0b0b0;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 6px 8px;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

    /* 🔥 Soft Red Shadow & Font Glow on Hover */
    .notification-pill-btn:hover {
        color: #e53935; /* Soft red text color change */
        border-color: rgba(229, 57, 53, 0.3);
        box-shadow: 0 0 6px rgba(229, 57, 53, 0.4); /* Soft red container aura */
        text-shadow: 0 0 3px rgba(229, 57, 53, 0.2); /* Soft red text aura */
    }

    /* 💥 Deeper Soft Glow on Click */
    .notification-pill-btn:active {
        color: #c62828;
        border-color: rgba(198, 40, 40, 0.5);
        box-shadow: 0 0 10px rgba(198, 40, 40, 0.6); /* More intense click shadow */
        text-shadow: 0 0 4px rgba(198, 40, 40, 0.3);
        transform: scale(0.97); /* Subtle physical click feedback */
    }


.unread-dot-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 32, 203, 0.90); /* Muted Red Color */
    position: absolute;
    top: 19px;
    right: 16px;
    z-index: 1;
}


.notif-actions {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    padding-top: 5px;
    margin-left: auto;
    padding-right: 14px;
    width: 44px;
}

.notif-dismiss-btn {
    background: none;
    border: none;
    color: #787575;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    opacity: 0; /* Hidden */
    transition: opacity 0.2s ease;
    position: absolute;
    top: 10px; /* Vertically centers the button */
    right: 6px; /* Horizontally centers the button in the column */
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 2; /* CRITICAL: Ensure button is above the dot */
}

/* --- Visibility Toggle on Hover --- */

/* Show button on hover (Fade in) */
.notification-item:hover .notif-dismiss-btn {
    opacity: 1; /* Show the button */
    background-color: rgba(0, 0, 0, 0.05); /* Gray hover circle */
}



.notification-item.unread .unread-dot-indicator {
    display: block;
}

.notification-item.unread:hover .unread-dot-indicator {
    display: none !important;
}



.notif-dismiss-btn:hover {
    color: #e50505;
    background-color: rgba(0, 0, 0, 0.1);
}




/* FILE UPLAODER CSS - REFACTORED FOR SLIDE ANIMATION */


.wor1-file-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: none;
    transition: none;
    overflow: auto;
}


    .wor1-file-modal-container:not(.hidden) {
        display: flex;
        pointer-events: auto;
    }


    .wor1-file-modal-container.hidden {
        display: none;
    }


.wor1-file-modal-content {
    background-color: white;
    border-radius: 35px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 85%;
    max-width: 450px;
    padding: 24px;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(100vh);
}


.wor1-file-modal-container:not(.hidden) .wor1-file-modal-content {
    transform: translateY(0);
}



.wor1-file-close {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(229, 231, 235, 0.6);
    transition: background-color 0.3s, transform 0.1s;
    cursor: pointer;
    border: none;
}

    .wor1-file-close:hover {
        background-color: rgba(229, 231, 235, 0.9);
    }

    .wor1-file-close:active {
        transform: scale(0.95);
    }

    .wor1-file-close svg {
        color: #9ca3af;
        height: 24px;
        width: 24px;
        transition: color 0.3s;
    }

    .wor1-file-close:hover svg,
    .wor1-file-close:active svg {
        color: #dc2626;
    }



.hidden {
    display: none !important;
}

.wor1-file-modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}


.wor1-file-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.5rem;
    gap: 0.5rem;
}

.wor1-file-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: white;
    border-bottom-left-radius: 25px; /* <--- NEW: Match the main box radius */
    border-bottom-right-radius: 25px; /* <--- NEW: Match the main box radius */
    display: flex;
    justify-content: center; /* Centers child elements (the button) horizontally */
}

/* 5. Interaction Container (Replaces max-w-[280px] min-h-[150px] relative) */
.wor1-file-interaction-container {
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    min-height: 150px;
    margin: 0 auto;
    position: relative;
}



/* 7. Placeholder Button Styling */
.wor1-file-placeholder-btn {
    border: 2px dashed #d1d5db;
    border-radius: 18px;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    /* ADDED STRUCTURAL FIXES */
    width: 100%;
    min-height: 200px; /* Gives it a nice large dropzone area */
    box-sizing: border-box;
}

    .wor1-file-placeholder-btn:hover {
        border-color: #dc2626; /* hover:border-red-600 */
    }



/* 8. Preview Grid */
/* Styling for the container that holds the preview content */
.wor1-file-preview-grid {
    /* Removed fixed height so it organically wraps around the image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #d1d5db;
    border-radius: 1.25rem;
    padding: 10px;
    position: relative;
    width: 100%;
    max-width: 100%; /* Prevents modal blowout */
    box-sizing: border-box;
}

/* The Grid Layout */
.image-grid, .video-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%; /* Ensure internal grid doesn't overflow */
    box-sizing: border-box;
}

/* Individual Media Wrapper */
.media-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f9fafb; /* The gray background */
    /* Padding here creates the space */
    padding: 3px;
    box-sizing: border-box;
    line-height: 0;
}

/* Image Item Stylings */
.preview-img-item {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Video Player Display */
.videodisplay {
    width: 100%; /* Replaces the hardcoded 250px */
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto;
}

/* 9. Upload Button (Replaces bg-red-600 hover:bg-red-700 disabled:opacity-50) */
.wor1-file-upload-btn {
    background-color: #dc2626;
    color: white;
    font-weight: bold;
    padding: 8px 24px;
    border-radius: 9999px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

    .wor1-file-upload-btn:hover:not(:disabled) {
        background-color: #b91c1c;
    }

.wor1-upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 10. Progress Area */
.wor1-file-progress-area {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.wor1-file-upload-message {
    padding: 8px 0;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 600;
}

.text-file-green-600 {
    color: #059669;
}

.text-red-600 {
    color: #dc2626;
}


/* Add this inside your existing <style> block in compose.aspx */
@media (max-width: 639px) {
    /* Max width of 639px targets phones/small screens */
    #innerModalBox {
        max-height: calc(100vh - 8px) !important; /* Ensure height respects top/bottom 4px gap */
        margin: 8px; /* Creates a 4px margin on all sides */
    }
}

.dismiss-btn:hover svg {
    color: #dc2626 !important; /* Forces the red color on hover */
}

.dismiss-btn:active svg {
    color: #dc2626 !important; /* Forces the red color on hover */
}

.textmargin {
    padding: 6px;
    border-radius: 8px;
}



.is-hidden {
    display: none;
}

/*SEARCH CSS*/

.search-panel-popup {
    display: none;
}

/* Popup Box Container - BASE STYLES */
.search-popup-container {
    position: fixed;
    /* Desktop Base Dimensions */
    max-width: 480px;
    max-height: 500px;
    width: 95%;
    min-height: 500px;
    background-color: white;
    border-radius: 30px;
    /* Desktop border is retained, mobile will override it */
    border: 2px solid #C0C0C0;
    padding: 18px;
    box-sizing: border-box;
    z-index: 1001;
    /* Animation Base Transitions */
    transition: transform 0.4s ease-out, top 0.4s ease-out, border-radius 0.4s ease-out, box-shadow 0.4s ease-out;
}

/* --- CLOSE BUTTON STYLE (BOTTOM RIGHT FIX) --- */
.search-close-button {
    position: absolute;
    bottom: 18px;
    right: 18px;
    font-size: 28px;
    font-family: Arial, sans-serif;
    line-height: 24px;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #808080; /* Base color for 'X' */
    background: rgba(128, 128, 128, 0.1); /* Faint gray circle background */
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease-in-out, background 0.2s ease-in-out;
}

    .search-close-button:hover {
        color: #ff0000; /* <-- ONLY 'X' TURNS RED */
        background: rgba(128, 128, 128, 0.1); /* Keep circle color the same */
    }


    .search-close-button:active {
        color: #ff0000; /* <-- ONLY 'X' TURNS RED */
        background: rgba(128, 128, 128, 0.1); /* Keep circle color the same */
    }

@media (min-width: 601px) {
    .search-popup-container {
        left: 50%;
        top: 100%;
        transform: translate(-50%, 0);
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25);
    }


        .search-popup-container.is-active {
            top: 50%;
            transform: translate(-50%, -30%);
        }

    /* Results container size adjusted for the close button space (No Change) */
    .search-results-container {
        max-height: calc(500px - 100px - 50px);
    }
}



@media (max-width: 600px) {
    .search-popup-container {
        /* Full width and FLUSH with screen */
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        /* 🔥 CRITICAL FIX: Increased height by 3vh (from 55vh to 58vh) for keyboard clearance */
        height: calc(70vh + 5px);
        max-height: calc(70vh + 5px);
        min-height: auto;
        border: none;
        border-radius: 30px 30px 0 0;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
        /* CLOSED STATE: Start position: Off-screen at the bottom */
        top: 100%;
        transform: translateY(0%);
    }

        /* FIX: State when the drawer is active/visible (toggled by JS) 
       This replaces the problematic selector .search-panel-popup[style*="block"] .popup-container
    */
        .search-popup-container.is-active {
            top: 30vh; /* OPEN STATE: Drawer slides up to 30vh from top */
            transform: translateY(0);
        }

    .search-results-container .mobile-scroll-fix {
        max-height: calc(70vh - 150px) !important;
        overflow-y: auto !important;
    }

    .search-results-container {
        max-height: calc(58vh - 150px);
    }

    /* Class used by JS to disable transitions during resize */
    .resize-transition-disabled {
        transition: none !important;
    }
}


.search-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #f2f0ee;
    border-radius: 35px;
    width: 100%;
    height: 28px;
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 8px 14px 8px 10px;
}

.search-text-box {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 4px;
    background: transparent;
    font-family: Roboto;
    font-size: 15px;
    color: #444444;
    font-weight: bold;
}

.search-icon {
    height: 28px;
    width: 28px;
    cursor: pointer;
}

/* Note: .search-results-container max-height is set in media queries */

.search-separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-item:hover {
        background-color: #f9f9f9;
    }

    .search-result-item strong {
        background-color: #ffff00;
        padding: 0 2px;
        border-radius: 3px;
        font-weight: bold;
    }

    .search-result-item img {
        margin-right: 10px;
    }

.search-history-item {
    transition: opacity 0.4s ease-out, height 0.4s ease-out, margin-bottom 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out, transform 0.4s ease-out, border 0.4s ease-out, box-shadow 0.4s ease-out;
    overflow: hidden;
}


.searchpanel {
    display: block;
    border-radius: 18px;
    cursor: pointer;
}

.sys-alerts {
    position: fixed;
    bottom: 30px;
    left: 50%;
    z-index: 9999;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    height: 20px;
    padding: 15px;
    background-color: rgba(29, 27, 27, 0.9);
    color: #eaeaea;
    border-radius: 35px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    font-size: 8pt;
    color: #dbd8d8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    display: flex;
    align-items: center; /* Vertically centers the text */
    justify-content: center; /* Horizontally centers the text */
    text-align: center;
}


    .sys-alerts.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

/* --- WOR1 Store Modal Overlay (Base) --- */
.wor1-modal-overlay {
    display: none; /* Initially hidden. JS changes this to 'flex' */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* --- WOR1 Store Modal Content (Desktop/Default) --- */
.wor1-modal-content {
    background-color: #fefefe;
    border: 2px solid #e1e1e1;
    position: relative;
    width: 90%;
    max-width: 440px;
    max-height: 500px; /* Fixed height for the container */
    height: auto;
    border-radius: 35px; /* Modal container is rounded */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 0, 0, 0.1);
    /* Start position: Fully off-screen at bottom for slide-up effect (Desktop & Mobile) */
    transform: translateY(100vh);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    /* Flex Layout for Header/Body/Footer */
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Class added by JS to trigger the slide-in animation */
.wor1-modal-overlay.show-modal .wor1-modal-content {
    transform: translateY(0);
}

/* --- Modal Header (Fixed) --- */
.wor1-modal-header {
    padding: 30px 30px 15px 30px;
    flex-shrink: 0;
    z-index: 1001;
    background-color: #fefefe;
    border-radius: 35px 35px 0 0;
    /* Added border for clean separation */
    border-bottom: 1px solid #eee;
}

.store-title {
    font-family: 'Roboto-Bold';
    font-size: 1.6em;
    color: #585858;
    margin: 0;
    text-align: center;
}

/* --- Modal Body (Scrollable) --- */
.wor1-modal-body {
    padding: 15px 30px;
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Modal Footer (Fixed) --- */
.wor1-modal-footer {
    padding: 15px 30px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    z-index: 1001;
    background-color: #fefefe;
    border-radius: 0 0 35px 35px;
    border-top: 1px solid #eee;
}

/* --- Store Close Button (Positioned inside the footer) --- */
.store-close-btn {
    position: static;
    background-color: rgba(150, 150, 150, 0.1);
    border: none;
    cursor: pointer;
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease-out;
    /* FIX: Move button up by 4px and right by 8px */
    margin-top: -4px;
    margin-right: -12px;
}

    .store-close-btn:hover {
        background-color: rgba(150, 150, 150, 0.25);
    }

.close-icon {
    font-family: Arial, sans-serif;
    font-size: 29px;
    line-height: 1;
    font-weight: 300;
    color: #bbb;
    transition: color 0.3s ease-out;
}

.store-close-btn:hover .close-icon {
    color: #FF4444; /* Bright red on hover */
}


.store-close-btn:active .close-icon {
    color: #FF4444;
}



/* ----------------------------------------------------------------
    --- WOR1 Store Item Styles (Sleek Layout) ---
    ---------------------------------------------------------------- */

.wor1-store-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Item Container: Flexbox, soft shadow, rounded --- */
.wor1-store-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 0 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    gap: 15px;
}

/* --- 1. Item Icon: Smaller Size (35px) --- */
.item-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}

/* --- 2. Item Details: Wider Description and Price Placement --- */
.item-details {
    flex-grow: 1; /* Allows description to stretch horizontally */
    overflow: hidden;
}

    .item-details h4 {
        margin: 0 0 4px 0;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.1em;
    }

    .item-details p {
        margin: 0 0 5px 0;
        font-size: 0.9em;
        color: #666;
    }

/* --- Price: Under Description --- */
.item-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #ff6600;
    white-space: nowrap;
    display: block;
    margin-top: 0;
}

/* --- 3. Actions: Vertical stack (Qty/Buy) on the right --- */
.item-price-actions {
    display: flex;
    flex-direction: column; /* Stack quantity and buy button vertically */
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 10px;
    flex-shrink: 0;
    margin-top: 0;
    margin-right: 10px;
}


.quantity-selector {
    position: relative;
    width: 65px;
    flex-shrink: 0; /* Prevents shrinking */
}

    .quantity-selector input {
        width: 100%;
        height: 32px;
        padding: 0 4px 0 4px;
        line-height: 32px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e9e8e7;
        border-radius: 12px;
        cursor: pointer;
        font-size: 0.9em;
    }

.quantity-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 75px;
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease-in-out, border 0.1s ease;
    z-index: 100;
    border-color: transparent;
}

    .quantity-dropdown.active {
        max-height: 200px;
        overflow-y: auto;
    }

.quantity-option {
    padding: 5px 10px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 3px;
}

    .quantity-option:last-child {
        margin-bottom: 0; /* Remove margin from the last item */
    }

    .quantity-option:hover {
        background-color: #fcf3e7;
    }

/* --- 4. Buy Button: Positioned below Qty --- */
.buy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: box-shadow 0.2s, border 0.2s;
    border: 1px solid transparent;
    border-radius: 50%;
    flex-shrink: 0; /* Prevents shrinking */
}

    .buy-button img {
        height: 32px;
        width: auto;
        display: block;
    }

    .buy-button:hover {
        box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1); /* Soft Red Shadow */
        border-color: rgba(248, 11, 11, 0.40);
    }

/* ----------------------------------------------------------------
    --- Mobile Styling (App Drawer from Bottom) ---
    ---------------------------------------------------------------- */

@media (max-width: 600px) {

    /* 4. FIX: Forces the modal content to the bottom for the drawer effect */
    .wor1-modal-overlay {
        align-items: flex-end;
    }

    .wor1-modal-content {
        /* Mobile Requirements */
        width: 100%; /* Mobile Flush Width */
        max-width: 100%;
        height: 70vh; /* Mobile Height: 70vh */
        max-height: 70vh;
        margin: 0;
        padding: 0;
        /* Rounded borders only on top for drawer effect */
        border-radius: 35px 35px 0 0;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
        /* Start position: Fully off-screen at the bottom (restores slide-up animation) */
        transform: translateY(100%);
        transition: transform 0.5s ease-out;
    }

    /* 4. FIX: Active class to trigger the mobile slide-in */
    .wor1-modal-overlay.show-modal .wor1-modal-content {
        transform: translateY(0);
    }

    /* Adjust content padding for mobile view */
    .wor1-modal-header {
        padding: 30px 15px 15px 15px;
    }

    .wor1-modal-body {
        padding: 15px 15px;
    }

    .wor1-modal-footer {
        padding: 15px 15px 15px 15px;
    }

    .store-close-btn {
        margin-top: 0px;
        margin-right: 0px;
    }
}


.energizegif-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.energizegif-overlay {
    max-width: 15%; /* Updated from 25% */
    max-height: 15%; /* Updated from 25% */
    opacity: 1;
    transition: opacity 0.3s ease-out;
    margin-top: 66px; /* Updated from 30px */
    margin-left: 85px; /* New position */
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%);
}


.show-container {
    visibility: visible;
}

.energizegiffade-out {
    opacity: 0;
}

.panelhelaamount {
    padding: 8px;
    border-radius: 8px;
    z-index: 999999999999999999 !important;
}

.helabalance {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #2b2116;
    white-space: pre-line;
    color: #3d3b3b;
}

#PanelEnergizePost {
    z-index: 999999999999 !important;
}

.panelEnergize_post {
    position: fixed;
    z-index: 1000;
    max-width: 300px;
    background-color: #FFFFFF;
    border: 1px solid #bfbfbe;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    width: 222px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.7s ease-out; /* Add this line */
    opacity: 0; /* Default hidden state */
    pointer-events: none; /* Disables interaction when hidden */
}

    .panelEnergize_post.show-container {
        opacity: 1;
        pointer-events: auto;
    }


#PanelHelaTopup {
    z-index: 9999999999999 !important;
}

.panelMpesa_topup {
    display: block; /* Controlled by JS */
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 222px;
    padding: 16px;
    background-color: #FFFFFF;
    border: 1px solid #bfbfbe;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Added for depth to match Energize */
    z-index: 9999999999999 !important;
}


.hela-amount-button {
    display: block;
    margin-bottom: 3px;
    min-width: 50px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-family: Roboto;
    font-size: 9pt;
    color: #666666;
    padding: 8px 8px 8px 4px;
    background-color: transparent;
    border: none;
    transition: background-color 0.15s;
}

    .hela-amount-button:hover {
        background-color: #fef7ea;
    }

    .hela-amount-button:active {
        background-color: #fef7ea;
    }

    .hela-amount-button.selected {
        background-color: #eee;
        color: #2b2116;
    }

.hela-list-container {
    position: absolute;
    z-index: 1010;
    width: 63px;
    background-color: white;
    border-bottom: 1px solid #e2e2e1;
    border-left: 1px solid #e2e2e1;
    border-right: 1px solid #e2e2e1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0;
    max-height: 0;
    overflow: hidden; /* Keeps content hidden during max-height: 0 transition */
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.show-hela-list {
    max-height: 160px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px;
    overflow-y: auto; /* Enables vertical scrollbar only when needed */
}


.energize-close-button-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 3px;
    padding: 0px 0 0px 1px;
    width: 24px;
    height: 24px;
    font-size: 14pt;
    line-height: 1;
    font-family: Roboto;
    color: #777777;
    background-color: #f1f1f1;
    border: none;
    border-radius: 50%;
    transform: translateY(1px);
    transition: color 0.2s ease-in-out, background-color 0.2s;
}

    .energize-close-button-x:hover,
    .energize-close-button-x:focus {
        color: #e53935;
        background-color: #eeeeee;
        border: none;
        outline: none;
    }

    .energize-close-button-x:active {
        color: #c62828;
        background-color: #dddddd;
    }


.text-green-hela {
    color: #73c608; /* Standard vibrant green, similar to Tailwind 'green-600' */
}

.text-red-hela {
    color: #DC2626; /* Standard vibrant red, similar to Tailwind 'red-600' */
}


.energize-action-icon {
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
    transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
    cursor: pointer;
}

    .energize-action-icon:hover {
        /* Soft red glow on hover */
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
        border-color: #ffcccc !important; /* Lighter border color on hover */
    }

    .energize-action-icon:active {
        /* Stronger, tighter red glow on click */
        box-shadow: 0 0 10px 1px rgba(255, 0, 0, 0.8);
        transform: scale(0.98); /* Optional: slight press effect */
    }


.energized-glow {
    box-shadow: 0 0 6px rgba(115, 198, 8, 0.7); /* Permanent, subtle green glow */
    transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
    cursor: pointer;
}

    .energized-glow:hover {
        box-shadow: 0 0 8px rgba(115, 198, 8, 0.8); /* Using #73c608 */
        border-color: #d8f5b8 !important; /* Lighter green border color on hover */
    }

    .energized-glow:active {
        box-shadow: 0 0 8px 1px rgba(115, 198, 8, 0.8); /* Using #73c608 */
        transform: scale(0.98);
    }


.htmlbutton {
    cursor: pointer;
    background-color: #fff;
}





.user-details-popup {
    position: fixed;
    z-index: 9999999 !important;
    width: 300px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.95);
    transition: opacity 0.3s ease-out, transform 0.2s ease-out, visibility 0s 0.3s;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(3px);
}

    /* Show on hover or when pinned */
    .user-details-popup.show {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        transition-delay: 0s;
    }



.popup-loading {
    padding: 20px;
    text-align: center;
    color: #9CA3AF;
}

.media-overlay {
    position: fixed;
    z-index: 9999999999 !important;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}




.media-container {
    position: fixed;
    width: 400px;
    min-height: 240px;
    max-height: 450px;
    height: auto;
    box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.4);
    z-index: 999999999999999 !important;
    background: #100f0f;
    border-radius: 24px;
    border: 3px solid rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.media-content-area {
    width: 100%;
    /* Ensure the content area matches the container's height constraints */
    min-height: 240px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    overflow: hidden;
}

    .media-content-area img,
    .media-content-area video {
        width: 100%;
        min-height: 240px;
        max-height: 400px;
        height: auto;
        object-fit: cover;
        /* CHANGE THIS: 'center' ensures equal cropping top and bottom */
        object-position: center center;
        border-radius: 22px;
        display: block;
    }


@media (max-width: 520px) {
    .media-container {
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        /* Maintain the height constraints so the crop logic works on mobile */
        min-height: 240px;
        max-height: 450px;
        height: auto;
        /* Flexbox is required here to keep the content area vertically centered */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        border-radius: 22px;
        z-index: 99999999999999 !important;
    }

    /* Apply the crop logic to the actual media inside the container on mobile */
    .media-content-area img,
    .media-content-area video {
        width: 100%;
        height: auto;
        min-height: 240px;
        max-height: 450px;
        object-fit: cover;
        object-position: center center; /* Equal crop top and bottom */
    }

    .media-overlay {
        position: fixed;
        /* Ensure overlay is behind the container but above the page */
        z-index: 99999999999998 !important;
    }
}

#MediaEnlargementOverlay {
    display: none;
    position: fixed;
    z-index: 99999999999999999 !important;
}


#userDetailsPopupModal {
    display: none;
    position: fixed;
    z-index: 999999999999999 !important;
}




/* --- Emoji Trigger Icon (15x15) --- */
.emoji-trigger-icon {
    width: 15px;
    height: 15px;
    cursor: pointer;
    vertical-align: middle;
    display: inline-block;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

    .emoji-trigger-icon:hover,
    .emoji-trigger-icon:active {
        transition: box-shadow 0.2s, filter 0.2s;
        box-shadow: 0 0 0 1px rgba(200, 50, 50, 0.4), 0 1px 2px rgba(200, 50, 50, 0.4);
    }

/* --- Emoji Modal Container --- */
.emoji-tray-modal {
    display: none;
    position: fixed;
    width: 365px;
    max-height: 500px;
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    box-sizing: border-box;
    padding: 15px 10px 0 15px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .emoji-tray-modal {
        width: 305px;
    }
}
/* --- Search Box Styling --- */
.emoji-search-container {
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.emoji-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 13px;
    font-family: Roboto, sans-serif;
    color: #333;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #f7f7f7;
}

    .emoji-search-input:focus {
        border-color: #ee0202;
        box-shadow: 0 0 0 2px rgba(238, 2, 2, 0.2);
    }


/* --- Modal Header (Below search box) --- */
.modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* --- Base Style for Footer Buttons --- */
.footer-button {
    font-family: Roboto;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #999;
    border: none;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 8px 12px;
    border-radius: 18px;
}

    .footer-button:hover,
    .footer-button:active {
        background-color: #e0e0e0;
        color: #333;
    }

/* --- Close Button Style (Applies to the 'X' button) --- */
.close-button {
    font-family: Roboto, sans-serif;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #666;
    border: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 4px 8px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
}

    #CloseEmojiModal:hover,
    .close-button:hover {
        background-color: #e0e0e0;
        color: #ee0202;
    }

/* 🔥 FIX 2: Absolute Positioning for Footer Visibility (Guaranteed to be visible) */
.modal-footer {
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    padding: 5px 15px 15px 5px;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    z-index: 10001;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* --- Color Selection Tray --- */
.color-selection-tray {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.1s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

    .color-swatch.active {
        border-color: #ee0202;
        transform: scale(1.15);
    }

/* --- Scrolling Wrapper (EmojiGrid) --- */
.emoji-grid,
.emoji-content-scroll-wrapper {
    /* This height now assumes the footer is positioned absolutely */
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0px;
}

    /* Custom Scrollbar Styling */
    .emoji-grid::-webkit-scrollbar,
    .emoji-content-scroll-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .emoji-grid::-webkit-scrollbar-track,
    .emoji-content-scroll-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }

    .emoji-grid::-webkit-scrollbar-thumb,
    .emoji-content-scroll-wrapper::-webkit-scrollbar-thumb {
        background-color: #e0e0e0;
        border-radius: 4px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

/* --- Emoji Categories and Lists (Fixes Chopping) --- */
.emoji-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px 0;
    width: 100%;
    justify-content: flex-start;
}

.emoji-item {
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    padding: 3px;
    border-radius: 6px;
    transition: background-color 0.1s ease;
    width: 25px;
    height: 25px;
    line-height: 25px;
}

    .emoji-item:hover {
        background-color: #f0f0f0;
    }

.section-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 15px 0;
}



.feed-button {
    /* Basic Button Structure */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    /* Mobile Fix: Removes the dark square on click */
    -webkit-tap-highlight-color: transparent;
    /* Dimensions & Shape: Height 45px (As per last snippet) */
    height: 42px;
    padding: 0 23px;
    border-radius: 23px;
    border: none;
    gap: 8px;
    background-color: #ee0202 !important;
    /* Soft, DARK, uniform shadow on load */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    /* Use 'all' for smooth transitions */
    transition: all 0.2s ease;
}

/* Icon Styling */
.feed-icon {
    height: 20px;
    width: 20px;
    vertical-align: middle;
}

/* Text Styling (Default) */
.feed-text {
    color: #FFFFFF; /* White text on load */
    font-family: Roboto;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    /* Right padding for text */
    padding-right: 4px;
    transition: color 0.2s ease;
}

/* --- HOVER / ACTIVE STATES --- */

.feed-button:hover,
.feed-button:active {
    /* NEW: Mid-Gray background for hover contrast (from your snippet) */
    background-color: #efeeee !important;
    /* NEW: Red shadow on hover/active for theme consistency */
    box-shadow: 0 0 6px 0 #ee0202;
}

    /* Text color change on hover/active */
    .feed-button:hover .feed-text,
    .feed-button:active .feed-text {
        /* NEW: Red text color to match the theme/shadow */
        color: #ee0202;
    }

.create-post-button {
    /* Base style: Round, fixed size, no padding */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important; /* Makes it perfectly round */
    text-decoration: none;
    /* Inherit base colors and shadow from the .feed-button definition for consistency */
    background-color: #ee0202 !important;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

    /* Apply the exact same HOVER / ACTIVE states as .feed-button */
    .create-post-button:hover,
    .create-post-button:active {
        background-color: #efeeee !important;
        box-shadow: 0 0 6px 0 #ee0202;
    }

    /* Ensure the icon maintains its size (relying on .feed-icon for 20px size) */
    .create-post-button .create-post-icon {
        height: 20px;
        width: 20px;
    }


.close-button-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f2f1f1; /* Light gray circle bg */
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

    .close-button-wrapper:hover {
        background-color: #f1f0ee; /* Mid gray circle bg on hover */
    }





.close-icon-swapper {
    display: block;
    vertical-align: middle;
}



#ImageCloseUserPopup {
    cursor: pointer;
    padding: 12px; /* Extra room for thumbs */
    margin: -12px; /* Offset so layout doesn't move */
    -webkit-tap-highlight-color: transparent;
}


.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

    .media-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.remove-media {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220, 38, 38, 0.8); /* Theme Red */
    color: white;
    border-radius: 50%;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.headerleft {
    width: 200px;
}

@media (max-width: 480px) {
    .headerleft {
        width: 200px;
    }
}

@media (max-width: 380px) {
    .headerleft {
        width: 200px;
    }
}

html, body {
    /* Disables the browser's pull-to-refresh and back/forward swipe navigation */
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
    /* Prevents the browser from handling touch actions on the edges */
    touch-action: pan-y;
}

/* Container for the modal overlay */
#pesapalModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999999999999 !important;
    align-items: flex-end;
}

/* The actual modal/drawer box */
#pesapalModalContent {
    background: #fff;
    width: 100%;
    height: 85vh;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    position: relative;
    transform: translateY(100%);
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    border-left: 1px solid rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(0, 0, 0, 0.25);
    border-bottom: none;
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    padding: 10px;
    touch-action: none;
    overflow: hidden !important;
    -webkit-overflow-scrolling: touch;
    contain: strict;
}
/* Drawer Handle Bar */
.pesapal-drawer-handle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0 20px 0;
    cursor: grab;
}

.pesapal-drawer-handle {
    width: 50px;
    height: 5px;
    background-color: #ccc;
    border-radius: 10px;
}

/* Logic for showing the modal */
#pesapalModalOverlay.active {
    display: flex;
}

    #pesapalModalOverlay.active #pesapalModalContent {
        transform: translateY(0);
    }

#pesapalIframe {
    height: 100%;
    border: none;
    display: block;
    flex-grow: 1;
    image-rendering: -webkit-optimize-contrast; /* Sharpens edges */
    backface-visibility: hidden;
    transform: translateZ(0); /* Forces Hardware Acceleration */
    -webkit-transform: translateZ(0);
    scrollbar-width: none;
    -ms-overflow-style: none;
    filter: blur(0) !important;
    transform: scale(1);
}

    #pesapalIframe::-webkit-scrollbar {
        display: none;
    }


@media (min-width: 768px) {
    #pesapalModalOverlay {
        align-items: center;
        justify-content: center;
    }

    #pesapalModalContent {
        width: 100%;
        border-radius: 30px;
        transform: scale(0.9);
        opacity: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.25) !important;
        contain: content;
        height: 600px !important;
        max-height: 600px !important;
        padding: 20px;
        max-width: 460px;
    }

    .pesapal-drawer-handle-container {
        display: none; /* Hide handle on desktop */
    }

    #pesapalModalOverlay.active #pesapalModalContent {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floating X Button */
.pesapal-round-close {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    z-index: 10;
}

.pesapal-x-icon {
    position: relative;
    width: 22px;
    height: 22px;
}

    .pesapal-x-icon::before, .pesapal-x-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1.5px;
        background-color: #333;
        border-radius: 2px;
    }

    .pesapal-x-icon::before {
        transform: rotate(45deg);
    }

    .pesapal-x-icon::after {
        transform: rotate(-45deg);
    }

.pesapal-round-close:hover .pesapal-x-icon::before,
.pesapal-round-close:hover .pesapal-x-icon::after {
    background-color: #ff0000 !important;
}





#PanelWor1Users, #PanelSectors {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.4s ease-in-out, margin-bottom 0.4s ease-in-out;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0px 0px 0px 1px;
    width: 240px;
}

.right-panel-toggle-button {
    height: 24px;
    padding: 2px 8px;
    width: auto;
    min-width: 35px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background-color: #f8f8f8;
    margin: 0 3px;
    box-shadow: none;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .right-panel-toggle-button:hover {
        background-color: #f0f0f0;
    }

    /* Active State: Panel is VISIBLE, indicated by soft red glow */
    .right-panel-toggle-button.active {
        /* Soft red glow: 0px offset, 5px blur, 0px spread, 40% opacity */
        box-shadow: 0 0 5px 0 rgba(255, 0, 0, 0.4);
    }

    /* Hidden State: Panel is HIDDEN, indicated by NO red glow */
    .right-panel-toggle-button.inactive {
        box-shadow: none;
        opacity: 0.8;
    }

.panel-half-height {
    height: 315px !important;
    background-color: #FFFFFF;
    width: 240px;
}


.panelUsers, .panelSectors {
    overflow: visible;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease-in-out, transform 0.5s cubic-bezier(0, 1, 0, 1);
    display: block !important;
    transform: translateY(0px);
    pointer-events: none;
    height: auto;
}

.panelSectors {
    opacity: 0;
}

.panel-hidden {
    padding-top: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-30px) !important;
    overflow: hidden !important; /* Lock it down when hidden */
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    background-color: #FFFFFF;
    width: 240px;
}



.panel-visible {
    /* Height is handled by JS, but we need enough room here */
    max-height: 1000px;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.icon-bar-wrapper {
    display: flex;
    align-items: center;
    padding: 11px 14px 6px 14px;
    justify-content: center;
}

.post-icon {
    cursor: pointer;
    margin-right: 8px;
    transition: transform 0.1s ease;
}

.post-icon1 {
    cursor: pointer;
    margin-right: 6px;
    transition: transform 0.1s ease;
}

.post-icon:hover {
    transform: scale(1.1); /* Subtle hover effect */
}

.icon-spacer {
    width: 15px;
}




/* Throbber Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.button-publishing {
    position: relative;
    pointer-events: none; /* Prevent double clicks */
    opacity: 0.8;
}

    .button-publishing::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        margin-top: -8px;
        margin-left: 10px;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 0.8s linear infinite;
    }


.pre-publish-container {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 14px;
    margin-top: -10px;
    display: flex; /* Added to make the centering properties work */
    flex-direction: column; /* Keeps label on top of the grid */
    align-items: center;
    justify-content: center;
}

.pre-publish-label {
    font-size: 11px;
    font-weight: bold;
    color: #888;
    margin-top: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}



/* The Remove Button (The Circle) */
.remove-media-circle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px; /* Slightly larger for better tap target */
    height: 26px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100; /* Cranks it above the media */
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

    /* The "X" Icon (FontAwesome) */
    .remove-media-circle i {
        font-size: 12px;
        color: #555;
        transition: color 0.2s ease;
    }

    /* --- INTERACTION STATES --- */

    /* HOVER: Circle turns light red/white, X and Border turn bright red */
    .remove-media-circle:hover {
        background-color: #fffafa;
        border-color: #e74c3c;
        transform: scale(1.15);
    }

        .remove-media-circle:hover i {
            color: #e74c3c; /* Bright Red "X" */
        }

    /* ACTIVE: Shrink effect when clicking */
    .remove-media-circle:active {
        transform: scale(0.9);
        background-color: #e74c3c;
    }

        .remove-media-circle:active i {
            color: #ffffff; /* Turns white for high contrast while pressing */
        }



/* 1. Backdrop */
.pdf-sheet-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.015);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .pdf-sheet-overlay.pdf-active {
        display: flex;
        opacity: 1;
    }

/* 2. Midnight Glass Container */
.pdf-sheet-container {
    background: rgba(8, 10, 15, 0.96);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .pdf-sheet-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 94vh;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        transform: translateY(100%);
        will-change: transform; /* Tells the mobile GPU to prepare for animation */
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden !important;
    }

    body.no-scroll {
        overflow: hidden !important;
        position: fixed; /* Prevents background "bounce" on iOS */
        width: 100%;
        height: 100%;
        touch-action: none;
    }
}

@media (min-width: 769px) {
    #pdfSheetContainer, .pdf-sheet-container {
        width: 780px;
        height: 842px;
        border-radius: 22px;
        overflow-x: hidden !important;
    }

    .pdf-drag-handle {
        display: none;
    }
}

.pdf-active .pdf-sheet-container {
    transform: translateY(0);
}

/* 3. Header & Glint */
.pdf-sheet-header {
    position: relative;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.pdf-header-glint {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.01), rgba(255,255,255,0.12), transparent);
    transform: skewX(-30deg);
    animation: glint-sweep 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes glint-sweep {
    0% {
        left: -150%;
    }

    15% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.pdf-title-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 2;
}

/* 4. AI Score Ring */
.pdf-ai-badge {
    color: #10b981;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(16, 185, 129, 0.45); /* Green Ring */
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    background: rgba(16, 185, 129, 0.05);
    margin-left: -1px;
}

.pdf-title-text {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: #f1f5f9;
    margin: 0;
    /* Force text wrapping and break long unbroken words/URLs */
    overflow-wrap: break-word;
    word-wrap: break-word; /* Legacy fallback */
    word-break: break-word; /* Ensures compatibility across WebKit/Blink browsers */
}

/* 5. Same-Size Action Buttons */
.pdf-header-actions {
    display: flex;
    gap: 10px;
}

.pdf-custom-btn {
    all: unset; /* Reset button defaults */
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .pdf-custom-btn:hover {
        background: rgba(16, 185, 129, 0.2);
        border-color: #10b981;
    }

/* 6. Hiding Scrollbars (The Clip Shield) */
.pdf-sheet-body {
    flex: 1;
    background: #000;
    overflow: hidden !important;
}

.pdf-iframe-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: relative;
    background-color: #121212 !important;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden !important;
}

.pdf-iframe-wrapper-with-toolbar {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    position: relative;
    background-color: #121212 !important;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden !important;
}

.pdf-loading-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Controlled dynamically by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.pdf-throbber {
    width: 50px; /* Adjust size as needed for throbber.gif */
    height: 50px;
    object-fit: contain;
}

.pdf-loading-text {
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #555566;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}



.pdf-iframe-view {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    overflow: hidden !important;
    opacity: 0; /* Starts hidden; shifts smoothly to 1 when complete */
    transition: opacity 0.25s ease-in-out;
}

body.not-chrome .pdf-iframe-wrapper-with-toolbar {
    height: 100% !important; /* */
}

body.not-chrome .pdf-iframe-view {
    width: 100% !important; /* */
}

/* Mobile Drag Handle */
.pdf-drag-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 12px auto 8px auto;
    flex-shrink: 0;
}


.pdfname {
    color: #333;
    cursor: pointer;
}

.pdfdetails {
    color: #a5a1a1;
    cursor: pointer;
}

.pdfholder {
    padding-top: 5px;
    padding-bottom: 5px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 15px;
    width: 100%;
    cursor: pointer;
}

/* Styling for the Gear/Toolbar Toggle */
.pdf-toolbar-toggle {
    transition: all 0.3s ease !important;
}


.pdf-toolbar-active {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.pdf-toolbar-toggle {
    transition: all 0.3s ease !important;
}

#pdfFrame {
    transition: opacity 0.2s ease;
    background-color: #121212; /* Matches the plugin's dark mode background */
}

/* Tooltip Parent */
.wor1-tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Tooltip Design - Bottom Positioned */
.wor1-tooltip-text {
    visibility: hidden;
    width: 140px;
    background-color: #f6f6f6; /* Using your red accent */
    color: #dc2626;
    text-align: center;
    border-radius: 12px; /* Slightly tighter than 12px for small tooltips */
    padding: 6px 4px;
    position: absolute;
    z-index: 100;
    /* Move to Bottom */
    top: 135%;
    left: 50%;
    margin-left: -70px; /* Centers the 140px width */
    /* Wor1 Aesthetic */
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-5px); /* Gentle slide-in effect */
    pointer-events: none;
    border: 1px solid #f2f2f2;
}

    /* Tooltip Arrow - Pointing Up */
    .wor1-tooltip-text::after {
        content: "";
        position: absolute;
        bottom: 100%; /* Position at the top of the red box */
        left: 50%;
        margin-left: -6px;
        border-width: 6px;
        border-style: solid;
        /* Arrow color matches the box, pointing UP */
        border-color: transparent transparent #f2f2f2 transparent;
    }


.wor1-tooltip-container:hover .wor1-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Ends at natural position */
}


.toggle-icon {
    width: 30px;
    height: 16px;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}


    .toggle-icon:active {
        transform: scale(0.9);
    }


/* --- Action Modal Backdrop --- */
.action-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.001); /* Slightly darker backdrop for focus */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999999999999999 !important;
}

.action-modal-content {
    position: relative;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    width: 300px;
    max-width: 300px;
    padding: 25px;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(245, 245, 245, 0.72);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid #cc0606;
    background-image: linear-gradient(rgba(245, 245, 245, 0.72), rgba(245, 245, 245, 0.72)), linear-gradient(155deg, #b8b8b8, #ffffff, #e2e2e1, #ffffff, #f6f6f6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), /* Soft outer lift */
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9), /* Sharp top-edge 'glint' */
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.05); /* Subtle bottom weight */
}

/* Dark Mode Adjustment: Deep Charcoal Glass */
.dark-mode .action-modal-content {
    background: rgba(35, 35, 35, 0.8);
    background-image: linear-gradient(rgba(35, 35, 35, 0.8), rgba(35, 35, 35, 0.8)), linear-gradient(145deg, #444, #888, #222, #888, #444);
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


.action-modal-footer {
    display: flex;
    gap: 12px;
}

    /* Shared Button Base for depth */
    .action-modal-footer button {
        flex: 1;
        padding: 14px;
        border-radius: 14px;
        border: 1px solid rgba(0, 0, 0, 0.05); /* Very faint edge */
        font-weight: 600;
        cursor: pointer;
        font-size: 14px;
        transition: transform 0.1s ease, box-shadow 0.2s ease;
        /* The Depth Secret: Soft lift + Inner light catch */
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

        /* Depth Hover/Active states */
        .action-modal-footer button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
        }

        .action-modal-footer button:active {
            transform: translateY(0);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* "Pressed" look */
        }

/* --- Color Specific Depths --- */

.btn-secondary {
    /* Slight grey gradient for a 'brushed' feel */
    background: linear-gradient(180deg, #ffffff 0%, #eeeeee 100%);
    color: var(--text-main);
}

.btn-danger {
    /* Richer depth for your red */
    background: linear-gradient(180deg, #e61b1b 0%, #db0909 100%);
    color: white;
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-primary {
    /* Apple-style soft depth blue */
    background: linear-gradient(180deg, #3395ff 0%, #007aff 100%);
    color: white;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Dark Mode Button Adjustments */
.dark-mode .btn-secondary {
    background: linear-gradient(180deg, #444444 0%, #333333 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.05);
}


#actionModalTitle {
    font-size: 18px;
    font-family: 'Roboto';
    font-weight: 700;
    color: #d80303;
    padding-bottom: 6px;
}

#actionModalMessage {
    font-size: 14px;
    font-family: 'Roboto';
    font-weight: 700;
    color: #2b2116;
    padding-bottom: 12px;
}


/* The Preview Box */
.action-modal-post-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fcfbfb;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #cbcaca;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
}

/* 1. THE FIX: The text wrapper needs min-width: 0 to allow truncation to work */
.action-modal-preview-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.action-modal-preview-media {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid #e2e2e1;
}

    .action-modal-preview-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.action-modal-preview-header {
    font-weight: bold;
    font-size: 8pt;
    color: #888;
    margin-bottom: 1px;
    /* Prevent long names from stretching the box */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-modal-preview-text {
    font-size: 7.5pt;
    color: #666;
    line-height: 1.3;
    /* Line clamping logic */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 2. THE FIX: Handle long unbreakable strings like URLs */
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 1. Base Class for Rounded Edges (Shared with Publish Button) */
.buttonborder {
    border-radius: 10px; /* Adjust this value to match your existing curvature */
    transition: all 0.2s ease;
}

    /* 2. Primary Publish Button Hover */
    .buttonborder:hover {
        filter: brightness(1.1);
        cursor: pointer;
    }

/* 3. Flanking Icon Button Containers (The Circles/Squares) */
.icon-button-container {
    background-color: #F9F9F9 !important; /* Very-very light gray */
    border: 1px solid #e9e9e9 !important; /* Light gray border */
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative; /* Essential for positioning the '✓' checkmark */
    cursor: pointer;
    overflow: hidden;
}

    /* 4. Hover State for Icon Containers */
    .icon-button-container:hover {
        background-color: #F9F9F9 !important; /* Slightly darker light-gray */
        border-color: #e9e9e9 !important;
        filter: brightness(0.98);
    }

/* 5. Specific Hover for the Delete Button (Optional: Light Red Tint) */
.delete-btn-hover:hover {
    background-color: #FFF5F5 !important;
    border-color: #e9e9e9 !important;
}

/* 6. Icon Scaling Effect */
.icon-button-container img {
    transition: transform 0.2s ease;
    display: block;
}

.icon-button-container:hover img {
    transform: scale(1.1);
}

/* 7. Success Checkmark Styling */
#saveSuccessCheck {
    position: absolute;
    display: none;
    width: 26px; /* Slightly larger than the 20px save icon */
    height: 26px;
    pointer-events: none;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Center it perfectly */
}

/* --- 1. Drag Handle (Enhanced for Mobile) --- */
.set-post-sector-drag-handle {
    display: none; /* Hidden on desktop */
    width: 50px;
    height: 5px;
    background: #e8e8e8;
    border-radius: 10px;
    margin: 15px auto 10px auto;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 1022;
}

/* --- 2. MOBILE BOTTOM-UP DRAWER (FLUSH SIDES) --- */
@media (max-width: 768px) {
    .set-post-sector-modal-overlay {
        align-items: flex-end !important; /* Forces to bottom of screen */
    }

    .set-post-sector-modal-content {
        width: 100% !important; /* Full width */
        max-width: 100% !important;
        margin: 0 !important; /* Flush against edges */
        border-radius: 30px 30px 0 0 !important; /* Top round only */
        max-height: 88vh !important;
        transform: translateY(100%); /* Start hidden below */
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        /* Slide Logic: Start hidden below */
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        /* Faint border (No bottom on mobile) */
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-bottom: none !important;
    }

    /* Active State for Drawer Slide-up */
    .set-post-sector-modal-overlay.set-post-sector-is-open .set-post-sector-modal-content {
        transform: translateY(0);
    }

    .set-post-sector-drag-handle {
        display: block; /* Show handle */
    }

    .set-post-sector-modal-header {
        padding-top: 10px !important;
    }

    .set-post-sector-data-list-sectors {
        padding: 25px 35px !important; /* Optimized padding for mobile */
    }
}

/* --- 3. Modal Overlay --- */
.set-post-sector-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Dimmed backdrop */
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

    .set-post-sector-modal-overlay.set-post-sector-is-open {
        display: flex;
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

/* --- 4. Modal Container (Desktop) --- */
.set-post-sector-modal-content {
    width: 90%;
    max-width: 430px;
    background: #fbfbfb;
    border-radius: 30px;
    max-height: 65vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    /* Faint soft border */
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: scale(0.9) !important; /* Start slightly smaller */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out;
}

.set-post-sector-modal-overlay.set-post-sector-is-open .set-post-sector-modal-content {
    opacity: 1;
    transform: scale(1) !important;
}

/* --- 5. Modal Header --- */
.set-post-sector-modal-header {
    padding: 25px 20px 15px 20px;
    background: #fbfbfb;
    border-bottom: 1px solid #f3f4f6;
}

#modalHeaderCaption {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin: 0;
}

/* --- 6. Scrollable Body --- */

.set-post-sector-data-list-sectors {
    flex: 1;
    overflow-y: auto;
    padding: 55px; /* Desktop spaciousness */
    background: #fbfbfb;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling for iOS */
    /* Hide scrollbar for Firefox */
    scrollbar-width: none !important;
    /* Hide scrollbar for IE and older Edge */
    -ms-overflow-style: none !important;
}

    /* 2. Hide scrollbar for Chrome, Safari, and newer Edge (Standard CSS version) */
    .set-post-sector-data-list-sectors::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

.set-post-sector-modal-footer {
    position: absolute;
    bottom: 20px; /* 20px from the bottom edge */
    right: 20px; /* 20px from the right edge */
    width: auto; /* Let it shrink to the button size */
    background: transparent !important;
    border: none !important;
    display: flex;
    pointer-events: none;
    z-index: 999; /* Ensure it stays on top of cards */
    margin: 0; /* Clear any conflicting margins */
    padding: 0; /* Clear any conflicting padding */
}

.set-post-sector-close-btn {
    width: 54px; /* Slightly larger for a premium floating feel */
    height: 54px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    color: #808080;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    pointer-events: auto; /* Re-enable clicks for the button itself */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Shadow is key for the floating look */
}

    .set-post-sector-close-btn:hover,
    .set-post-sector-close-btn:active {
        background: #f3f4f6 !important;
        color: #ef4444 !important;
        transform: rotate(90deg);
    }

/* --- 8. Card Styling & Images --- */
.set-post-sector-sector-item {
    background: #fbfbfb;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    margin-bottom: 35px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.11);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .set-post-sector-sector-item img.sector-main-img {
        width: 100%;
        height: 180px; /* Taller images as requested */
        border-radius: 20px;
        object-fit: cover;
        display: block;
    }

    .set-post-sector-sector-item:hover {
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.11);
        transform: translateY(-2px);
    }

.active-sector-selection {
    border: 1px solid #ef4444 !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.1) !important;
}



/* 1. The Container - Base (Mobile: Drawer Style) */
#contentModal .contentModal-container {
    background: #fff;
    /* Drawer style: Rounded only at the top for mobile */
    border-radius: 30px 30px 0 0;
    width: 100%;
    max-width: 650px;
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 999999999 !important;
    display: flex;
    flex-direction: column;
    height: 85vh;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    border: 2px solid #d9d6d6;
    border-bottom: none;
    overflow: hidden; /* Important to clip the iframe corners */
}

/* 2. Active State for Slide-in */
#contentModal.active .contentModal-container {
    bottom: 0;
}

/* 3. Desktop Style (Fully Rounded & Centered) */
@media (min-width: 768px) {
    #contentModal .contentModal-container {
        border-radius: 25px !important;
        border: 2px solid #d9d6d6;
        bottom: 50% !important;
        /* Center perfectly on both axes */
        transform: translate(-50%, 50%) !important;
        height: 85vh;
        width: 500px; /* Default width */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        transition: width 0.3s ease; /* Smooth expansion */
    }

    /* Target the container when the parent has the .wide-modal class */
    #contentModal.wide-modal .contentModal-container {
        width: 650px !important;
    }
}

/* 4. The Header - Centered & Increased */
.contentModal-header {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    background: #fff;
    text-align: center;
    z-index: 10;
}

#contentModalTitle {
    margin: 5px 0 0 0 !important;
    font-size: 1.2rem !important;
    font-weight: 800;
    color: #000;
}

#contentModalStatusBadge {
    margin-right: 0 !important;
    margin-bottom: 4px;
}

/* 5. Floating Close Button */
.contentModal-floating-close-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f2f2f2;
    border: none;
    font-size: 18px;
    font-weight: 900;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 10002;
    outline: none;
}

    /* Close Button: Hover (Uniform Red Shadow) */
    .contentModal-floating-close-btn:hover {
        color: #ff0000;
        background: #fff;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    }

    .contentModal-floating-close-btn:active {
        color: #cc0000;
        transform: scale(0.9) rotate(90deg);
    }

/* 6. Body & Iframe with HIDDEN SCROLLBARS */
.contentModal-body {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    /* Hide scrollbars for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    /* Hide scrollbars for Chrome, Safari and Opera */
    .contentModal-body::-webkit-scrollbar,
    #contentFrame::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

#contentFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Ensure the iframe itself doesn't show bars */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Overlay */
.contentModal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 10000;
}




/* Overlay Background - Blur Removed */
.featureDev-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* backdrop-filter removed */
    z-index: 1000000;
}

/* Container Logic */
.featureDev-modal .featureDev-modal-container {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    position: fixed;
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.15, 0, 0.15, 1), opacity 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    height: 450px;
    z-index: 999999999 !important;
}

/* Drawer Handle */
.featureDev-drawer-handle {
    width: 40px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 12px auto 0;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .featureDev-drawer-handle {
        display: block;
    }

    .featureDev-modal .featureDev-modal-container {
        bottom: 0;
        left: 50%;
        width: 100%;
        max-height: 85vh;
        border-radius: 25px 25px 0 0;
        border-bottom: none;
        transform: translateX(-50%) translateY(100%);
    }
}

@media (min-width: 769px) {
    .featureDev-modal .featureDev-modal-container {
        top: 50%;
        left: 50%;
        width: 420px;
        border-radius: 30px;
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
}

/* Modal Active State */
.featureDev-modal.active .featureDev-modal-container {
    opacity: 1;
}

@media (max-width: 768px) {
    .featureDev-modal.active .featureDev-modal-container {
        transform: translateX(-50%) translateY(0);
    }
}

@media (min-width: 769px) {
    .featureDev-modal.active .featureDev-modal-container {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Header & Body */
.featureDev-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f8f8f8;
    text-align: center;
}

.featureDev-modal-title-text {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
}

.featureDev-modal-body {
    text-align: center;
    padding: 40px 20px;
}

/* GIF Centered */
.featureDev-gif {
    display: block;
    margin: 15px auto; /* Auto margins for perfect horizontal centering */
    width: 180px;
    height: auto;
    border-radius: 15px;
}

/* Pulse Animation Keyframes */
@keyframes featureDev-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.featureDev-status-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #bbb;
    letter-spacing: 1px;
    margin-bottom: 5px;
    animation: featureDev-pulse 2.5s ease-in-out infinite;
    text-transform: uppercase;
}

.featureDev-notice {
    color: #03a1fe;
    font-size: 14px;
    font-weight: 700;
    padding-left: 5px;
    padding-right: 5px;
    display: block;
    line-height: 1.5;
}

.featureDev-notice-sub {
    color: #999;
    font-size: 12px;
    font-weight: 500;
    padding-left: 20px;
    padding-right: 20px;
    display: block;
    line-height: 1.5;
}
/* Floating X Close Button */
.featureDev-floating-close-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f2f2f2;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s ease;
}

    .featureDev-floating-close-btn:hover, .featureDev-floating-close-btn:active {
        color: #ff3b30;
        background: #fff0f0;
        transform: scale(1.1);
    }

.privacyterms {
    font-family: "Roboto";
    font-size: 14px;
    font-weight: bold;
    color: #2b2116;
    white-space: pre-line;
    color: #666;
}

    .privacyterms:hover {
        color: #ff0000;
    }

    .privacyterms:active {
        color: #ff0000;
    }

/* Container Button */
.apk-download-btn {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 10px 14px;
    min-width: 220px;
    height: 45px;
    text-decoration: none;
    border: 1px solid #f8f8f8;
    transition: all 0.3s ease;
}

    .apk-download-btn:hover {
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
        border-color: #dc2626;
        transform: scale(0.956);
    }

/* Icon */
.apk-icon {
    height: 32px;
    margin-right: 12px;
}

/* Text Content Area */
.apk-info {
    flex-grow: 1;
    line-height: 1;
}

.apk-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    color: #4b5563;
    padding-top: 3px;
    margin-bottom: 2px;
}

.apk-title {
    font-size: 0.85rem;
    font-weight: 900;
    display: block;
    color: #dc2626;
}

/* Vertical Separator */
.apk-divider {
    width: 1px;
    height: 24px;
    background-color: #d1d5db;
    margin: 0 10px;
}

/* Release Date Stats */
.apk-meta {
    font-size: 0.55rem;
    color: #9ca3af;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 55px;
}



.mpesa-amount-button {
    display: block;
    margin-bottom: 3px;
    min-width: 50px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-family: Roboto;
    font-size: 9pt;
    color: #666666;
    padding: 8px 8px 8px 4px;
    background-color: transparent;
    border: none;
    transition: background-color 0.15s;
}

    .mpesa-amount-button:hover {
        background-color: #fef7ea;
    }

    .mpesa-amount-button:active {
        background-color: #fef7ea;
    }

    .mpesa-amount-button.selected {
        background-color: #eee;
        color: #2b2116;
    }

.mpesa-list-container {
    position: absolute;
    z-index: 1010;
    width: 75px;
    background-color: white;
    border-bottom: 1px solid #e2e2e1;
    border-left: 1px solid #e2e2e1;
    border-right: 1px solid #e2e2e1;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0;
    max-height: 0;
    overflow: hidden; /* Keeps content hidden during max-height: 0 transition */
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.show-mpesa-list {
    max-height: 160px;
    opacity: 1;
    transform: translateY(0);
    padding: 8px;
    overflow-y: auto; /* Enables vertical scrollbar only when needed */
}


.auto-expanding-textarea {
    min-height: 120px !important;
    max-height: 400px !important;
    resize: none; /* Prevents manual resizing from breaking layout */
    overflow-y: hidden;
    box-sizing: border-box;
    /* Do NOT add transition: height here; it breaks text contraction math */
}

    .auto-expanding-textarea.scroll-active {
        overflow-y: auto;
    }




/* ==========================================================================
   ⚡ GLASSMORPHIC RED-THEME INSTALLATION BANNER
   ========================================================================== */
:root {
    --twa-red: #e63946;
}

.twa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

    .twa-banner.hidden {
        display: none !important;
        opacity: 0;
        pointer-events: none;
    }

.twa-banner-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Row wrapper for Logo (Left) and Text (Right) */
.twa-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
    padding-right: 32px;
    box-sizing: border-box;
}

/* Logo Box: Perfect circle with zero inner padding */
.twa-logo {
    width: 46px;
    height: 46px;
    margin-right: 14px;
    border-radius: 11px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    object-fit: contain;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    flex-shrink: 0;
}

.twa-text {
    flex-grow: 1;
    text-align: left;
}

    .twa-text h4 {
        margin: 0 0 2px 0;
        font-size: 15px;
        font-weight: 800;
        color: #1a1a1a;
        line-height: 1.2;
    }

    .twa-text p {
        margin: 0;
        font-size: 12px;
        color: #666666;
        line-height: 1.2;
    }

/* Action Buttons Layout Configuration */
.twa-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.twa-btn, .twa-btn-secondary {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none !important;
}

.twa-btn {
    background: var(--twa-red);
    color: #ffffff !important;
    border: none;
    transition: opacity 0.2s ease;
}

    .twa-btn:hover {
        opacity: 0.9;
    }

.twa-btn-secondary {
    background: transparent;
    color: var(--twa-red);
    border: 1px solid var(--twa-red);
    transition: background 0.2s ease, color 0.2s ease;
}

    .twa-btn-secondary:hover {
        background: var(--twa-red);
        color: #ffffff !important;
    }

/* Close Button: Soft light-gray background disc, turning Red on hover */
.twa-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f0f0f2;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #75757a;
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .twa-close:hover {
        background-color: #ffeef0;
        color: var(--twa-red);
    }

/* Snooze Toggle footer container adjustments */
.twa-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 12px;
    font-size: 11px;
    color: #888;
}

    /* 🟢 Contained Toggle Switch Engine with 2px padding (Track Reduced by 3px) */
    .twa-toggle-wrapper .toggle-jockey {
        position: relative;
        display: inline-flex;
        align-items: center;
        width: 25px; /* 28px - 3px */
        height: 12px;
        margin: 0;
    }

        .twa-toggle-wrapper .toggle-jockey input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    /* The tracking rail */
    .twa-toggle-wrapper .slider-red {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #d1d1d6;
        transition: background-color 0.25s ease;
        border-radius: 12px;
    }

        /* The sliding knob */
        .twa-toggle-wrapper .slider-red:before {
            position: absolute;
            content: "";
            height: 8px;
            width: 8px;
            left: 2px; /* 2px padding */
            top: 2px; /* 2px padding */
            background-color: #ffffff;
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

    .twa-toggle-wrapper input:checked + .slider-red {
        background-color: var(--twa-red);
    }

        .twa-toggle-wrapper input:checked + .slider-red:before {
            transform: translateX(13px); /* 13px travel + 8px knob + 4px padding = 25px track */
        }

/* ⚡ Compact Viewports */
@media (max-width: 340px) {
    .twa-banner {
        padding: 16px;
    }

    .twa-logo {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
}


/* ==========================================
   GLASSMORPHIC PUSH INSTRUCTION MODAL
   ========================================== */
.push-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .push-modal-overlay.show {
        opacity: 1;
    }

.push-modal-box {
    background: rgba(250, 250, 250, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 24px 20px 30px 20px;
    width: 320px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.12), 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.push-modal-overlay.show .push-modal-box {
    transform: translateY(0) scale(1);
}

.push-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #888;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
}

    .push-modal-close:hover,
    .push-modal-close:active {
        background: #ffebee;
        color: #e53935;
    }

.push-modal-badge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e53935;
    margin-bottom: 12px;
    display: block;
}

.push-modal-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #494c4e;
    line-height: 1.5;
    margin: 0;
}

.applogoclick {
    transition: filter 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    display: inline-block;
}

    /* 🎯 HOVER STATE: Soft Red Glow */
    .applogoclick:hover {
        filter: brightness(1.1) drop-shadow(0 0 2px rgba(239, 68, 68, 0.4)); /* Subtle red halo */
    }

    /* 🎯 CLICK/ACTIVE STATE: Snappy push down + Intense Red Glow */
    .applogoclick:active {
        transform: scale(0.96); /* Clean tactile feedback click */
        filter: brightness(1.3) drop-shadow(0 0 2px rgba(255, 36, 0, 0.5)); /* Intense neon red flash */
        transition: transform 0.05s ease; /* Makes the mechanical press down feel instant */
    }



/* --- 2. Inner Panel Scrollbar Clearance --- */
#PanelUserList,
#PanelSectorItems {
    margin-bottom: 10px !important;
    border-top-right-radius: 20px;
}



/* --- 2. The Inner White Panel --- */
#divRightPanel {
    width: 100%;
    max-height: 782px;
    overflow: hidden; /* Safely clips internal content/scrollbars only */
    background-color: #FFFFFF;
    border-radius: 20px;
    isolation: isolate;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 3. The Stub Positioning (Now Hanging Below) --- */
.right-profile-toggle-stub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    position: absolute;
    /* SUCCESS: Negative value pushes it exactly 15px below the wrapper's bottom edge */
    bottom: -42px;
    right: 14px;
    background-color: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Slightly stronger shadow since it's floating */
    z-index: 100; /* Keeps it floating above everything */
    transition: background-color 0.2s ease;
}

    .right-profile-toggle-stub:hover {
        background-color: #e5e5e5;
    }

    .right-profile-toggle-stub img {
        width: 14px;
        height: auto;
        transition: transform 0.4s ease;
    }


/* --- 4. Arrow Flip Direction on State Change --- */
@media (min-width: 951px) {
    /* 1. Base initialization for smooth rotation animation */
    #rightStubIcon {
        transition: transform 0.25s ease-in-out !important;
        transform: rotate(180deg) !important;
        display: block;
    }

    /* 2. 🎯 HTML MATCHED SIBLING SELECTOR: 
          When #divRightPanel gets the 'right-panel-collapsed' class from JS,
          look immediately next to it (+) and rotate the icon inside the stub. */
    #divRightPanel.right-panel-collapsed + .right-profile-toggle-stub #rightStubIcon {
        transform: rotate(0deg) !important;
    }
}

/* Hide on mobile */
@media (max-width: 950px) {
    .right-profile-toggle-stub {
        display: none !important;
    }
}

/* Styling for the circular close button */
.cancel-user-card-trigger {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.10); /* Protects readability on bright backgrounds */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    user-select: none;
    transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
    /* 🔥 Reset browser native button styles */
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    /* 🔥 Style the '✕' text character directly */
    color: #e0e0e0;
    font-size: 9px; /* Controls the exact scale of your X */
    font-weight: 400;
    line-height: 1;
}

    /* Hover & Active States */
    .cancel-user-card-trigger:hover,
    .cancel-user-card-trigger:active {
        background-color: rgba(0, 0, 0, 0.10); /* Slightly darkens background circle */
        transform: scale(1.1);
        color: #ff4d5a; /* 🔥 Turns the text character itself to crisp UI red */
    }

/* Container styling with integrated scrolling rules */
.user-panel-container {
    padding-top: 0px; /* 🎯 Creates a permanent visual cushion at the ceiling */
    box-sizing: border-box;
    scroll-behavior: smooth;
}




/* ==========================================================================
   Side Profile Image - Tactile Responsive State
   ========================================================================== */
.sideprofileimage {
    display: inline-block;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f5f4f3;
    background-color: #FFFFFF;
    cursor: pointer;
    /* Premium smooth animation transitions */
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, border-color 0.2s ease;
}

    /* 1. Vvvvery soft red glow aura on hover */
    .sideprofileimage:hover {
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
        border-color: #fca5a5 !important; /* Tints the border slightly red */
    }

    /* 2. Tactile scale compression & prominent deep soft glow on tap or click */
    .sideprofileimage:active {
        transform: scale(0.96); /* Elegant, subtle physical press feedback */
        box-shadow: 0 0 12px rgba(220, 38, 38, 0.55);
    }

/* ==========================================================================
   Profile Images Base & Global Utility
   ========================================================================== */
.profile_image {
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #F4F4F4;
    background-color: #FFFFFF;
    cursor: pointer;
}
