/**********************************************************************************************************************
 * Link  is a Social Network for enable distributed user to involve, collaborate and communicate .
 * Copyright(C) 2019 Indie Studio. All rights reserved.
 * https://indiestd.com/
 * info@indiestd.com
 *********************************************************************************************************************/

/* Style for user notification icons in navbar */
#user-notification-icons {
    display: flex;
    align-items: center; /* Vertically align items in the center */
}

    #user-notification-icons > li {
        margin-left: 5px; /* Add some spacing between icons */
        margin-right: 5px;
    }

        /* Adjust spacing for the first/last child if necessary, or specific icons */
        #user-notification-icons > li:first-child {
            margin-left: 0;
        }

        #user-notification-icons > li:last-child {
            margin-right: 0;
        }

/* Align username and logout button on the same row */
.user-info-logout-item {
    display: flex;
    align-items: center; /* Vertically align items */
}

    .user-info-logout-item #logoutForm {
        margin-left: 10px; /* Add some space between username and logout button */
    }

footer {
    position: fixed;
    bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
}

/*Custom bootstrap*/
.padding-sm {
    margin-left: -67px !important;
    margin-right: -67px !important;
}

.input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group {
    z-index: 0;
    margin-left: -1px;
}

/*End Custom bootstrap*/

.footer-content {
    color: #e2e2e2;
    margin: 0px 0px 0px 23px;
}

/* Default .body-content for mobile (< 768px) */
.body-content {
    margin-top: 40px;
    margin-bottom: 50px; /* For footer */
    margin-left: 55px; /* Accommodates collapsed left menu (65px width) */
    /*margin-right: 15px;*/ /* Standard right padding */
    /*padding-left: 10px;*/ /* Inner padding */
    /*padding-right: 10px;*/ /* Inner padding */
    /* overflow-x: hidden; */ /* Optional: Prevent horizontal scroll if content is too wide */
}

/* Tablet view (768px to 999px) */
@media (min-width: 768px) {
    .body-content {
        margin-left: 200px; /* Accommodates expanded left menu (200px width) */
        margin-right: 15px; /* Right menu hidden, so standard padding */
        padding-left: 15px;
        padding-right: 15px;
        width: auto; /* Allow margins to dictate width */
    }

    .right-content {
        display: none; /* Hide right sidebar for iPad Mini */
    }
}

/* Tablet view (>= 790px to 999px) - Right sidebar visible */
@media (min-width: 790px) {
    .body-content {
        margin-right: 300px; /* Accommodate fixed right menu (300px width) */
        /* margin-left, padding, and width: auto are inherited from (min-width: 768px) */
    }

    .right-content {
        display: block !important; /* Ensure right sidebar is visible */
    }

    /* If .thirdcol-content is part of the right sidebar, ensure it's also visible. 
       The rule hiding .thirdcol-content in '@media all and (max-width: 1000px)' 
       might need to be changed to '@media all and (max-width: 789px)' 
       or this needs to override it. */
    /* .thirdcol-content {
        display: block !important; 
    } */
}

/* Desktop view (>= 1000px) */
@media (min-width: 1000px) {
    .body-content {
        margin-left: 200px; /* Expanded left menu */
        margin-right: 300px; /* Accommodates fixed right menu (300px width) */
        padding-left: 15px;
        padding-right: 15px;
        width: auto; /* Allow margins to dictate width */
    }
}

.container {
    padding-left: 25px;
    padding-right: 0px;
}

.sub-search {
    border-radius: 20px 0px 0px 20px !important;
}

.main-search {
    border-radius: 20px 0px 0px 20px !important;
}

#search {
    border-radius: 0px 16px 14px 0px;
    background: #fff;
}

.form-group label {
    font-size: 15px;
    font-weight: bold;
    color: #8c9091;
}

/* === General Layout - Desktop First === */
.left-content {
    position: fixed;
    top: 42px; /* Navbar height - VERIFY THIS VALUE */
    bottom: 0;
    left: 0;
    width: 200px; /* Desktop width */
    background-color: #f8f9fa; /* Bootstrap default light background */
    padding: 15px;
    overflow-y: auto; /* Allow scrolling for menu items */
    z-index: 1020; /* Below navbar (typically 1030), above most content */
    border-right: 1px solid #dee2e6; /* Bootstrap default border color */
    transition: width 0.2s ease-in-out, padding 0.2s ease-in-out;
    transform: none !important; /* Ensure no JS is hiding it via transform */
    display: block !important; /* Ensure it's displayed */
    visibility: visible !important; /* Ensure it's visible */
}

    /* Custom styles for left menu text and icons in wide mode (screens > 767px) - V6 */
    .left-content > .global-links > .group-content > h4 {
        font-size: 22px !important; /* Increased title size */
        margin-bottom: 9px !important; /* Adjusted margin */
    }

    .left-content > .global-links > .group-content > a {
        font-size: 22px !important; /* Increased text size */
        padding: 11px 14px !important; /* Increased padding */
        display: flex;
        align-items: center;
        color: #333740; /* Default text color for light mode */
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

/* Dark mode specific text color for links */
body.dark-mode .left-content > .global-links > .group-content > a {
    color: #E0E0E0 !important; /* Light text color for dark mode */
}
    /* Icon color in dark mode - assuming icons might need a lighter color too */
    body.dark-mode .left-content > .global-links > .group-content > a i,
    body.dark-mode .left-content > .global-links > .group-content > a [class*="fa-"] {
        color: #B0B0B0 !important; /* Lighter icon color for dark mode */
    }


.left-content > .global-links > .group-content > a:hover {
    background-color: #d8d8d8;
    color: #003366; /* Default hover text color */
}

body.dark-mode .left-content > .global-links > .group-content > a:hover {
    background-color: #4a4a4a; /* Dark mode hover background */
    color: #FFFFFF !important; /* Dark mode hover text color */
}


.left-content > .global-links > .group-content > a img {
    width: 36px !important; /* Increased img icon size */
    height: 36px !important; /* Increased img icon size */
    margin-right: 18px !important; /* Increased space */
    vertical-align: middle;
}

.left-content > .global-links > .group-content > a i,
.left-content > .global-links > .group-content > a [class*="fa-"] {
    font-size: 34px !important; /* Increased font icon size */
    margin-right: 18px !important; /* Increased space */
    width: 38px !important; /* Increased width for alignment */
    text-align: center;
    color: #495057; /* Default icon color for light mode */
}
/* End of custom styles for left menu V6 */

/* Styles for collapsed (mobile) left menu - icon over text (max-width: 767px) */
@media (max-width: 767px) {
    .left-content {
        width: 65px !important; /* Slightly wider for text under icons */
        padding-left: 3px !important; /* Adjust padding */
        padding-right: 3px !important;
    }

        .left-content > .global-links > .group-content > h4 {
            font-size: 12px !important; /* Smaller font for titles */
            text-align: center !important;
            padding: 0px !important; /* Adjusted padding to prevent collapse */
            margin-bottom: 4px !important;
            color: #333333; /* Default title color for light mode, ensure visibility */
            /* The inline styled div within h4 will retain its background */
        }

    body.dark-mode .left-content > .global-links > .group-content > h4 {
        color: #D8D8D8 !important; /* Light title color for dark mode */
    }

    .left-content > .global-links > .group-content > a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 7px 3px !important; /* Adjusted padding */
        text-align: center !important;
        font-size: 10px !important; /* Smaller font for link text */
        line-height: 1.15 !important;
        min-height: 55px !important; /* Min height for icon + 1-2 lines of text */
        color: #454545; /* Default link text color for light mode */
        word-break: break-word; /* Allow long words to break */
    }

    body.dark-mode .left-content > .global-links > .group-content > a {
        color: #C8C8C8 !important; /* Light link text for dark mode */
    }

    .left-content > .global-links > .group-content > a img,
    .left-content > .global-links > .group-content > a i,
    .left-content > .global-links > .group-content > a [class*="fa-"] {
        margin-right: 0 !important; /* Remove side margin */
        margin-bottom: 3px !important; /* Space between icon and text */
    }

    .left-content > .global-links > .group-content > a img {
        width: 26px !important; /* Mobile icon size */
        height: 26px !important; /* Mobile icon size */
    }

    .left-content > .global-links > .group-content > a i,
    .left-content > .global-links > .group-content > a [class*="fa-"] {
        font-size: 24px !important; /* Mobile font icon size */
        width: auto !important; /* Natural width for font icon */
        /* Icon color for light mode will be inherited or use default */
    }

    body.dark-mode .left-content > .global-links > .group-content > a i,
    body.dark-mode .left-content > .global-links > .group-content > a [class*="fa-"] {
        color: #A8A8A8 !important; /* Icon color for dark mode on mobile */
    }

    .left-content > .global-links > .group-content > a:hover {
        background-color: #f0f0f0; /* Subtle hover for light mode */
    }

    body.dark-mode .left-content > .global-links > .group-content > a:hover {
        background-color: #3a3a3a; /* Subtle hover for dark mode */
    }
}
/* End of mobile styles for left menu */

/* Styles for right-side menu (Groups) in mobile view - Attempt 3 (max-width: 767px) */
@media (max-width: 767px) {
    .right-content {
        padding-top: 5px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

        .right-content #movable-groups-section h4 {
            font-size: 14px !important;
            text-align: center !important;
            margin-bottom: 8px !important;
            color: #333333;
        }

    body.dark-mode .right-content #movable-groups-section h4 {
        color: #D8D8D8 !important;
    }

    /* Ensure the UL itself doesn't constrain its children */
    .right-content ul#group-list.scrollbar {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important; /* Allow content to overflow vertically if needed */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 0 !important; /* Reset padding if any from scrollbar class */
        margin-left: 0 !important; /* Reset margin */
    }

    /* div#group-list-items is the flex container */
    .right-content div#group-list-items {
        list-style-type: none !important; /* Though it's a div, good to be sure */
        padding-left: 0 !important;
        margin-left: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start;
        gap: 8px;
    }

        /* Individual list items (direct children of the flex container) */
        .right-content div#group-list-items > li {
            width: calc(33.333% - 6px); /* Aim for 3 items per row */
            box-sizing: border-box;
            /* Ensure li itself doesn't have properties that prevent wrapping/sizing */
            float: none !important;
            display: block !important; /* Or flex, but block should be fine for width */
            margin-bottom: 0 !important; /* gap on parent handles this */
        }

            /* Links within list items - stacking icon and text */
            .right-content div#group-list-items > li > a {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: flex-start;
                text-align: center !important;
                font-size: 10px !important;
                line-height: 1.2 !important;
                color: #454545;
                text-decoration: none !important;
                padding: 5px 3px !important;
                min-height: 55px;
                word-break: break-word;
                background-color: #f9f9f9;
                border-radius: 4px;
                height: 100%; /* Make <a> take full height of <li> */
            }

    body.dark-mode .right-content div#group-list-items > li > a {
        color: #C8C8C8 !important;
        background-color: #383838;
    }

    /* Icons within the links */
    .right-content div#group-list-items > li > a img,
    .right-content div#group-list-items > li > a i,
    .right-content div#group-list-items > li > a [class*="fa-"] {
        margin-bottom: 4px !important;
    }

    .right-content div#group-list-items > li > a img {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50%;
    }

    .right-content div#group-list-items > li > a i,
    .right-content div#group-list-items > li > a [class*="fa-"] {
        font-size: 28px !important;
    }

    body.dark-mode .right-content div#group-list-items > li > a i,
    body.dark-mode .right-content div#group-list-items > li > a [class*="fa-"] {
        color: #B0B0B0 !important;
    }

    /* Hover effect for links */
    .right-content div#group-list-items > li > a:hover {
        background-color: #e8e8e8;
    }

    body.dark-mode .right-content div#group-list-items > li > a:hover {
        background-color: #4a4a4a;
    }
}
/* End of mobile styles for right-side menu (Groups) - Attempt 3 */

/* Styles for MOVED "Groups" list when it's in the NAVBAR DROPDOWN (max-width: 999px, as JS moves it at <1000px) */
@media (max-width: 999px) { /* JS moves items at < 1000px, so this applies when moved */

    /* Assuming the ul#group-list is inside a .dropdown-menu or similar navbar structure */
    /* Let's style the container of the list items first */
    .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul, /* Common Bootstrap structure */
    #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul /* Direct child of placeholder */ {
        padding: 5px !important; /* Padding for the dropdown area housing the groups */
        min-width: 200px; /* Give the dropdown some base width */
        /* Override any scrollbar styles that might conflict */
        height: auto !important;
        max-height: 300px !important; /* Allow some scroll if many items, but not fixed height */
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

        /* The div#group-list-items becomes the flex container for the li elements */
        .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items,
        #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items {
            display: flex !important;
            flex-wrap: wrap !important;
            justify-content: flex-start; /* Or space-around if preferred */
            gap: 8px; /* Spacing between items */
            padding: 0 !important; /* Reset padding */
            margin: 0 !important; /* Reset margin */
        }

            /* Individual list items (li) */
            .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items > li,
            #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items > li {
                width: calc(50% - 4px); /* Aim for 2 items per row in dropdown, accounting for 8px gap */
                /* (8px gap / 2 items = 4px adjustment per item) */
                list-style-type: none !important;
                margin-bottom: 0 !important; /* gap handles this */
                padding: 0 !important;
                box-sizing: border-box;
                background-color: #f9f9f9; /* Background for each item */
                border-radius: 4px;
            }

    body.dark-mode .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items > li,
    body.dark-mode #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items > li {
        background-color: #383838; /* Darker background for items in dark mode */
    }

    /* Links (a) within list items - stacking icon and text */
    .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items > li > a,
    #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items > li > a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center; /* Center content vertically if space allows */
        text-align: center !important;
        font-size: 11px !important; /* Slightly larger for dropdown readability */
        line-height: 1.2 !important;
        color: #333333;
        text-decoration: none !important;
        padding: 8px 5px !important;
        min-height: 60px;
        word-break: break-word;
        height: 100%;
    }

    body.dark-mode .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items > li > a,
    body.dark-mode #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items > li > a {
        color: #E0E0E0 !important;
    }

    /* Icons (img) within the links */
    .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items > li > a img,
    #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items > li > a img {
        width: 28px !important;
        height: 28px !important;
        border-radius: 50%;
        margin-bottom: 5px !important; /* Space between icon and text */
    }

    /* Hover effect for links */
    .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items > li > a:hover,
    #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items > li > a:hover {
        background-color: #e8e8e8;
    }

    body.dark-mode .navbar-nav .dropdown-menu ul#group-list.js-moved-group-ul div#group-list-items > li > a:hover,
    body.dark-mode #navbar-right-menu-placeholder ul#group-list.js-moved-group-ul div#group-list-items > li > a:hover {
        background-color: #4a4a4a;
    }
}
/* End of styles for MOVED "Groups" list in NAVBAR DROPDOWN */

.feed-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 12px 7px;
    background: #e9ebee;
    overflow: auto;
    margin-bottom: 52px;
}

    .feed-content .recentcontainer {
        border-radius: 2px;
        border: 1px solid #dddfe2;
        margin-bottom: 15px;
        overflow: hidden;
    }

        .feed-content .recentcontainer .newpostheader, .feed-content .recentcontainer .newpostfooter {
            padding: 4px 5px;
            background: #f6f7f9;
        }

            .feed-content .recentcontainer .newpostheader li, .feed-content .recentcontainer .newpostfooter li {
                display: inline-block;
                width: 100%;
                text-align: center;
            }

                .feed-content .recentcontainer .newpostheader li:first-child, .feed-content .recentcontainer .newpostfooter li:first-child {
                    float: left;
                }

                .feed-content .recentcontainer .newpostheader li:last-child, .feed-content .recentcontainer .newpostfooter li:last-child {
                    float: right;
                }

            .feed-content .recentcontainer .newpostheader h4, .feed-content .recentcontainer .newpostfooter h4 {
                font-size: 14px;
                margin: 10px 5px;
                color: #666;
            }

            .feed-content .recentcontainer .newpostheader a:first-child, .feed-content .recentcontainer .newpostfooter a:first-child {
                margin-right: 5px;
            }

            .feed-content .recentcontainer .newpostheader a, .feed-content .recentcontainer .newpostfooter a {
                font-size: 14px;
            }

                .feed-content .recentcontainer .newpostheader a img, .feed-content .recentcontainer .newpostfooter a img {
                    width: 40px;
                    height: 40px;
                    margin: 5px 5px 0 5px;
                }

                .feed-content .recentcontainer .newpostheader a .name, .feed-content .recentcontainer .newpostfooter a .name {
                    position: relative;
                    top: -6px;
                }

                .feed-content .recentcontainer .newpostheader a .fa, .feed-content .recentcontainer .newpostfooter a .fa {
                    display: inline-block;
                    margin: 5px;
                }

            .feed-content .recentcontainer .newpostheader > span, .feed-content .recentcontainer .newpostfooter > span {
                position: relative;
                top: -6px;
                left: -4px;
                font-size: 14px;
            }

            .feed-content .recentcontainer .newpostheader p, .feed-content .recentcontainer .newpostfooter p {
                position: relative;
                top: -22px;
                left: 55px;
                font-size: 12px;
            }

                .feed-content .recentcontainer .newpostheader p a, .feed-content .recentcontainer .newpostfooter p a {
                    font-size: 12px;
                    color: #4b4f56;
                    margin-right: 5px;
                }

            .feed-content .recentcontainer .newpostheader .rightsideofpost, .feed-content .recentcontainer .newpostfooter .rightsideofpost {
                position: relative;
                top: -73px;
                float: right;
            }

                .feed-content .recentcontainer .newpostheader .rightsideofpost .personpostmenu, .feed-content .recentcontainer .newpostfooter .rightsideofpost .personpostmenu {
                    color: #4b4f56;
                }

            .feed-content .recentcontainer .newpostheader li a, .feed-content .recentcontainer .newpostfooter li a {
                font-size: 14px;
                color: #4b4f56;
                margin-right: 5px;
            }

                .feed-content .recentcontainer .newpostheader li a .fa, .feed-content .recentcontainer .newpostfooter li a .fa {
                    display: inline-block;
                    margin: 5px;
                }

        .feed-content .recentcontainer .community-counter {
            padding: 4px 5px;
            background: #f6f7f9;
        }

            .feed-content .recentcontainer .community-counter li a {
                font-size: 14px;
                color: #4b4f56;
                margin-right: 5px;
            }

                .feed-content .recentcontainer .community-counter li a .fa {
                    display: inline-block;
                    margin: 5px;
                }

        .feed-content .recentcontainer .newpost textarea, .feed-content .recentcontainer .newpost .postcontent {
            display: inherit;
            padding: 10px;
            width: 100%;
            height: 100%;
            background: #f6f7f9;
        }

        .feed-content .recentcontainer .newpost .postcontent {
            position: relative;
            margin-top: -40px;
            padding-bottom: 40px;
            white-space: pre-line;
        }

        .feed-content .recentcontainer .newpostfooter {
            margin-top: 1px;
        }

        .feed-content .recentcontainer .commentpost {
            display: inherit;
            background: #f6f7f9;
            margin-top: -1px;
        }

            .feed-content .recentcontainer .commentpost img {
                margin: 10px;
                height: 40px;
            }

            .feed-content .recentcontainer .commentpost .input-group-btn {
                display: inline-block;
                background: #fff;
            }

                .feed-content .recentcontainer .commentpost .input-group-btn a {
                    margin-top: 10px;
                }

        .feed-content .recentcontainer:nth-child(1) .newpostfooter li:first-child .fa {
            color: #96b756;
        }

        .feed-content .recentcontainer:nth-child(1) .newpostfooter li:nth-child(2) .fa {
            color: #f1c04e;
        }

        .feed-content .recentcontainer:nth-child(1) .newpostfooter li:last-child a:last-child {
            font-size: 20px;
        }

@media (min-width: 1000px) {
    .thirdcol-content { /* This class is added to _RightSideMenue.cshtml's main div */
        position: fixed;
        top: 42px; /* Below navbar */
        bottom: 0;
        right: 0;
        width: 300px;
        background-color: #f6f7f9; /* Example background, consider theme */
        padding: 12px 7px;
        overflow-y: auto; /* Vertical scroll for content */
        overflow-x: hidden;
        z-index: 1010; /* Ensure proper stacking */
        border-left: 1px solid #dddfe2; /* Optional: visual separation */
    }
}

/* Styles for .thirdcol-content below 1000px if not handled by JS: */
/* By default, if responsive-menu.js moves its children, this div might be empty or hidden. */
/* If it needs to be explicitly hidden when not fixed: */
/* @media (max-width: 999px) { */
/*    .thirdcol-content { */
/*        display: none; */
/*    } */
/* } */

.thirdcol-content > div > a, .thirdcol-content > div > p {
    font-size: 12px;
}

.thirdcol-content .section-content {
    border-radius: 2px;
    border: 1px solid #dddfe2;
    margin: 0 0 15px 0;
    overflow-y: hidden;
    padding: 4px 5px;
    background: #f6f7f9;
}

    .thirdcol-content .section-content h4:nth-child(1) {
        font-size: 14px;
        margin: 6px;
        padding: 6px;
        color: #888;
    }

        .thirdcol-content .section-content h4:nth-child(1) a {
            float: right;
            color: #8a8a8a;
        }

    .thirdcol-content .section-content p a {
        display: block;
    }

        .thirdcol-content .section-content p a span:not(:first-child) {
            display: inline-block;
            margin-left: 4px;
            font-size: 9px;
            padding: 1px 2px;
            color: #545454;
            background: #fff;
            border: 1px solid #b8b8b8;
        }

    .thirdcol-content .section-content a {
        font-size: 14px;
        margin-right: 5px;
    }

        .thirdcol-content .section-content a img {
            width: 64px;
            height: 64px;
            margin: 5px 5px 0 5px;
        }

        .thirdcol-content .section-content a .fa {
            display: inline-block;
            margin: 5px;
        }

    .thirdcol-content .section-content p:nth-child(3) {
        text-align: right;
        margin: -20px 0 4px 0;
        padding: 2px;
        width: 80%;
    }

        .thirdcol-content .section-content p:nth-child(3) a {
            display: inline-block;
            position: relative;
            top: -18px;
        }

    .thirdcol-content .section-content p:nth-child(4) {
        margin-top: -64px;
        margin-left: 75px;
        font-size: 12px;
    }

        .thirdcol-content .section-content p:nth-child(4) a:not(:nth-child(1)) {
            font-size: 12px;
            color: #4b4f56;
            margin-right: 5px;
        }

    .thirdcol-content .section-content p:nth-child(7) {
        text-align: center;
    }

        .thirdcol-content .section-content p:nth-child(7) a {
            width: 20%;
            display: inline-block;
            color: #333;
        }

        .thirdcol-content .section-content p:nth-child(7) .fa {
            display: block;
        }

    .thirdcol-content .section-content .activetrend, .thirdcol-content .section-content .activetrend .fa {
        color: #1273b8;
    }

    .thirdcol-content .section-content .trend-feed ul {
        margin: 0 30px;
        padding: 0;
        /*list-style: square url("http://i.imgur.com/Etzny0O.png");
    */
    }

        .thirdcol-content .section-content .trend-feed ul li {
            font-size: 12px;
        }

            .thirdcol-content .section-content .trend-feed ul li span:nth-child(1) {
                color: #999;
            }

    .thirdcol-content .section-content .trend-feed div a {
        float: left;
        font-size: 12px;
        margin-top: 4px;
    }

        .thirdcol-content .section-content .trend-feed div a:first-child {
            padding: 4px 0 0 4px;
        }

        .thirdcol-content .section-content .trend-feed div a:last-child {
            float: right;
            padding: 4px 0 0 4px;
        }

    .thirdcol-content .section-content:nth-child(1) > a:nth-child(2) {
        float: right;
        color: #8a8a8a;
    }

    .thirdcol-content .section-content:nth-child(4) {
        font-size: 12px;
    }

        .thirdcol-content .section-content:nth-child(4) h4 {
            float: left;
        }

        .thirdcol-content .section-content:nth-child(4) a:nth-child(2) {
            margin-top: 10px;
            float: right;
        }

        .thirdcol-content .section-content:nth-child(4) div {
            padding: 5px;
        }

            .thirdcol-content .section-content:nth-child(4) div a {
                display: block;
            }

                .thirdcol-content .section-content:nth-child(4) div a img {
                    width: 100%;
                    height: auto;
                }

                .thirdcol-content .section-content:nth-child(4) div a:hover {
                    text-decoration: none;
                }

            .thirdcol-content .section-content:nth-child(4) div div {
                padding: 5px 5px 0 5px;
                font-size: 12px;
            }

                .thirdcol-content .section-content:nth-child(4) div div div {
                    padding: 0;
                }

                .thirdcol-content .section-content:nth-child(4) div div:nth-child(3) {
                    color: #878787;
                }

    .thirdcol-content .section-content:nth-child(5) a {
        font-size: 12px;
    }

.right-content {
    display: none;
    position: fixed;
    top: 42px;
    bottom: 0;
    right: 0;
    width: 207px;
    padding: 12px 7px;
    /*background: #e9ebee;
    */
    background: #ffffff8a;
    overflow-x: auto;
    border-left: 1px solid #dbdcde;
}

.primary-body-content {
    position: relative; /* Allows margin-left to push content */
    margin-top: 42px; /* Match navbar height - VERIFY THIS VALUE */
    margin-left: 200px; /* Match desktop .left-content width */
    padding: 20px;
    width: auto; /* Allow it to fill remaining space */
    overflow-y: auto; /* If main content needs to scroll */
    transition: margin-left 0.2s ease-in-out;
    transform: none !important; /* Ensure no JS is misplacing it via transform */
}

/* === End General Layout === */

.panel-primary {
    border-color: #cecece;
}

.probutton .btn {
    width: 94px;
    height: 31px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 13px;
}
/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}
/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}
/* QR code generator */
#qrCode {
    margin: 15px;
}
/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    .container-fast-link {
        position: fixed;
        bottom: 0;
        width: 288px;
        height: 70px;
        padding: 10px;
        color: #fff;
        border-color: #646262;
        background-color: rgba(0, 0, 0, 0.39);
        /*border-radius: 30px;*/
        cursor: move;
        left: 7%;
    }

    .left-content {
        width: 60px !important;
        padding: 10px 0 !important; /* Remove side padding, keep top/bottom */
        background-color: #343a40 !important; /* Darker for mobile, as per previous attempts */
        border-right: 1px solid #222 !important;
        overflow-x: hidden !important; /* Prevent horizontal scrollbar on narrow menu */
        /* Retain other !important flags from previous attempts if needed for JS conflicts */
        position: fixed !important; /* Already fixed, but ensure it */
        top: 42px !important;
        bottom: 0 !important;
        left: 0 !important;
        /*z-index: 1050 !important;*/
        /* Ensure it's above other content */
    }

    .primary-body-content {
        margin-left: 60px !important;
        padding: 15px 10px !important; /* Adjust padding for smaller screen */
        /* Retain other !important flags from previous attempts if needed for JS conflicts */
    }

    .feed-content {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 15px 10px !important;
    }

    /* Optional: To hide text and only show icons in the narrow menu */
    .left-content .global-links a {
        font-size: 0; /* Hide text by making font-size 0 */
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        text-align: center;
        display: block; /* Make links block for better touch targets */
    }

        .left-content .global-links a img,
        .left-content .global-links a .fa { /* For FontAwesome icons */
            font-size: 24px; /* Increase icon font size */
            width: 24px; /* Explicit width for img icons */
            height: 24px; /* Explicit height for img icons */
            margin-right: 0 !important; /* Remove any right margin if icons had text next to them */
            display: inline-block !important;
            vertical-align: middle;
        }



    .left-content .group-content a {
        font-size: 0; /* Hide text by making font-size 0 */
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        text-align: center;
        display: block; /* Make links block for better touch targets */
        color: #eaeaea; /* Match global-links color if needed */
    }

        .left-content .group-content a img,
        .left-content .group-content a .fa { /* For FontAwesome icons */
            font-size: 20px; /* Slightly smaller than global-links icons, or adjust as needed */
            width: 20px;
            height: 20px;
            margin-right: 0 !important;
            display: inline-block !important;
            vertical-align: middle;
        }

    .left-content .group-content {
        margin-bottom: 5px !important; /* Reduce spacing between groups of links */
    }
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

.panel-primary > .panel-heading {
    color: #ffffff;
    background-color: #a12c2c;
    border-color: #a12c2c;
}

.user-profile {
    /*background: -webkit-linear-gradient(left, #3931af, #00c6ff);
    */
    margin-top: 1%;
    padding: 1%;
}

.user-profile-left {
    text-align: center;
    /*color: #fff;
    */
    margin-top: 2%;
}

.user-profile-right {
    background: #fff;
}

.user-profile-left img {
    width: 100%;
    -webkit-animation: mover 2s infinite alternate;
    animation: mover 2s infinite alternate;
}

@-webkit-keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.btn.active {
    display: none;
}

.btn span:nth-of-type(1) {
    display: none;
}

.btn span:last-child {
    display: block;
}

.btn.active span:nth-of-type(1) {
    display: block;
}

.btn.active span:last-child {
    display: none;
}

.check-circle-small {
    width: 25px;
    height: 25px;
    border-radius: 100%;
    display: block;
    padding: 5px;
    background: #659ec5;
    color: white;
    font-size: small;
}

.img1-thumbnail {
    margin-top: 20px;
    width: 200px;
    height: 200px;
    border: 10px solid #d2d2d2;
}

body {
    background-color: #e9ebee;
}
/*textarea, .form-control {
     border: 0;
     border-radius: 0;
     resize: none;
}
*/
.active-status {
    background: rgb(67, 172, 106) !important;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.inactive-status {
    background: rgb(240, 65, 36) !important;
    border-radius: 50%;
    height: 7px;
    width: 7px;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060 !important; /* Ensure topbar and its children are above left-content */
    padding: 6px 26px;
    height: 42px;
    background: #3b5e95;
    border-bottom: 1px solid #294c7b;
    /* overflow: hidden; */ /* Test: Removed to see if it affects dropdown z-index/visibility */
}

    .topbar .right-group {
        float: right;
    }

        .topbar .right-group .link-group {
            position: relative;
            top: -4px;
            display: inline-block;
            padding: 0;
        }

            .topbar .right-group .link-group a {
                padding: 9px 8px;
                color: #fff;
                font-size: 12px;
            }

                .topbar .right-group .link-group a img {
                    display: inline-block;
                    width: 24px;
                    height: 24px;
                    margin-right: 9px;
                }

                .topbar .right-group .link-group a:hover {
                    background: #355486;
                    text-decoration: none;
                }

            .topbar .right-group .link-group:nth-child(2) a {
                margin-right: 16px;
                border-left: 1px solid #355485;
            }

        .topbar .right-group .notification-group {
            display: inline-block;
            position: relative;
            top: 3px;
        }

            .topbar .right-group .notification-group .link-group a {
                margin: 0;
                border: 0;
            }

            .topbar .right-group .notification-group a {
                color: #17253c;
                font-size: 21px;
            }

                .topbar .right-group .notification-group a:hover {
                    color: #111;
                    background: transparent;
                }

        .topbar .right-group .link-group:nth-child(4) a {
            margin-left: 16px;
            border-left: 1px solid #355485;
        }

    .topbar .search-box {
        display: inline-block;
        width: calc(100vw - 72%);
    }

        .topbar .search-box .input-group * {
            font-size: 12px;
            height: 25px;
            border: 1px solid #fff;
            background: #fff;
            outline: 0;
        }

        .topbar .search-box .input-group button {
            color: #7a7a7a;
            -webkit-transition: all ease 150ms;
            transition: all ease 150ms;
        }

            .topbar .search-box .input-group button:hover {
                color: #000;
            }

/* Problematic .left-content block - should be controlled by earlier definitions and media queries
.left-content {
    position: fixed;
    top: 42px;
    bottom: 0;
    width: 60px;
    box-shadow: 0 14px 28px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.22);
    background-color: #343a40;
    overflow: auto;
}
*/

/*    .left-content .global-links {
        padding: 10px;
        margin-left: 10px;
   }*/

.left-content .global-links a {
    display: inline-block;
    color: #eaeaea;
    font-size: 12px;
    width: 100%;
    padding: 2px 8px;
}

    .left-content .global-links a img {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }

.left-content .global-links .counter {
    float: right;
    color: #e9ebee;
}

    .left-content .global-links .counter .fa-ellipsis-h {
        font-size: 20px;
    }

.left-content .global-links .activepage {
    padding-top: 5px;
    background: #e9ebee;
    border-radius: 2px;
    border: 1px solid #dddfe2;
}

.left-content a:last-child .fa-caret-down {
    margin-right: 12px;
}

.feed-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 24px 24px;
    background: #e9ebee;
    overflow: auto;
    margin-bottom: 52px;
}

.thirdcol-content .section-content {
    border-radius: 2px;
    border: 1px solid #dddfe2;
    margin: 0 0 15px 0;
    overflow-y: hidden;
    padding: 4px 5px;
    background: #f6f7f9;
}

    .thirdcol-content .section-content h4:nth-child(1) {
        font-size: 14px;
        margin: 6px;
        padding: 6px;
        color: #888;
    }

        .thirdcol-content .section-content h4:nth-child(1) a {
            float: right;
            color: #8a8a8a;
        }

    .thirdcol-content .section-content p a {
        display: block;
    }

        .thirdcol-content .section-content p a span:not(:first-child) {
            display: inline-block;
            margin-left: 4px;
            font-size: 9px;
            padding: 1px 2px;
            color: #545454;
            background: #fff;
            border: 1px solid #b8b8b8;
        }

    .thirdcol-content .section-content a {
        font-size: 14px;
        margin-right: 5px;
    }

        .thirdcol-content .section-content a img {
            width: 64px;
            height: 64px;
            margin: 5px 5px 0 5px;
        }

        .thirdcol-content .section-content a .fa {
            display: inline-block;
            margin: 5px;
        }

    .thirdcol-content .section-content p:nth-child(3) {
        text-align: right;
        margin: -20px 0 4px 0;
        padding: 2px;
        width: 80%;
    }

        .thirdcol-content .section-content p:nth-child(3) a {
            display: inline-block;
            position: relative;
            top: -18px;
        }

    .thirdcol-content .section-content p:nth-child(4) {
        margin-top: -64px;
        margin-left: 75px;
        font-size: 12px;
    }

        .thirdcol-content .section-content p:nth-child(4) a:not(:nth-child(1)) {
            font-size: 12px;
            color: #4b4f56;
            margin-right: 5px;
        }

    .thirdcol-content .section-content p:nth-child(7) {
        text-align: center;
    }

        .thirdcol-content .section-content p:nth-child(7) a {
            width: 20%;
            display: inline-block;
            color: #333;
        }

        .thirdcol-content .section-content p:nth-child(7) .fa {
            display: block;
        }

    .thirdcol-content .section-content .activetrend, .thirdcol-content .section-content .activetrend .fa {
        color: #1273b8;
    }

    .thirdcol-content .section-content .trend-feed ul {
        margin: 0 30px;
        padding: 0;
        /*list-style: square url("http://i.imgur.com/Etzny0O.png");
    */
    }

        .thirdcol-content .section-content .trend-feed ul li {
            font-size: 12px;
        }

            .thirdcol-content .section-content .trend-feed ul li span:nth-child(1) {
                color: #999;
            }

    .thirdcol-content .section-content .trend-feed div a {
        float: left;
        font-size: 12px;
        margin-top: 4px;
    }

        .thirdcol-content .section-content .trend-feed div a:first-child {
            padding: 4px 0 0 4px;
        }

        .thirdcol-content .section-content .trend-feed div a:last-child {
            float: right;
            padding: 4px 0 0 4px;
        }

    .thirdcol-content .section-content:nth-child(1) > a:nth-child(2) {
        float: right;
        color: #8a8a8a;
    }

    .thirdcol-content .section-content:nth-child(4) {
        font-size: 12px;
    }

        .thirdcol-content .section-content:nth-child(4) h4 {
            float: left;
        }

        .thirdcol-content .section-content:nth-child(4) a:nth-child(2) {
            margin-top: 10px;
            float: right;
        }

        .thirdcol-content .section-content:nth-child(4) div {
            padding: 5px;
        }

            .thirdcol-content .section-content:nth-child(4) div a {
                display: block;
            }

                .thirdcol-content .section-content:nth-child(4) div a img {
                    width: 100%;
                    height: auto;
                }

                .thirdcol-content .section-content:nth-child(4) div a:hover {
                    text-decoration: none;
                }

            .thirdcol-content .section-content:nth-child(4) div div {
                padding: 5px 5px 0 5px;
                font-size: 12px;
            }

                .thirdcol-content .section-content:nth-child(4) div div div {
                    padding: 0;
                }

                .thirdcol-content .section-content:nth-child(4) div div:nth-child(3) {
                    color: #878787;
                }

    .thirdcol-content .section-content:nth-child(5) a {
        font-size: 12px;
    }

.feed-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 24px 24px;
    background: #e9ebee;
    overflow: auto;
    margin-bottom: 52px;
}

.right-content {
    display: none;
    position: fixed;
    top: 42px;
    bottom: 0;
    right: 0;
    width: 207px;
    padding: 12px 7px;
    /*background: #e9ebee;
    */
    background: #ffffff8a;
    overflow-x: auto;
    border-left: 1px solid #dbdcde;
}

    .right-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 40%;
        overflow: auto;
    }

        .right-content ul li {
            display: block;
            padding: 5px 5px 15px 5px;
            width: 100%;
            border-bottom: 1px solid #a3a3a3;
            cursor: pointer;
        }

    .right-content ul {
        list-style: none;
        padding: 0;
        height: 40%;
        overflow: auto;
    }

    .right-content h4 {
        font-size: 12px;
        margin-top: 15px;
        color: #474747;
        text-transform: uppercase;
    }

    .right-content ul li {
        display: block;
        padding: 5px 5px 15px 5px;
        width: 100%;
        border-bottom: 0px solid #e9ebee;
        cursor: pointer;
    }

        .right-content ul li a {
            padding: 5px;
            font-size: 12px;
        }

        .right-content ul li img {
            display: inline-block;
            width: 32px;
            height: 32px;
        }

        .right-content ul li b, .right-content ul li span {
            color: #000;
        }

        .right-content ul li span {
            display: block;
            float: right;
            position: relative;
            top: 8px;
            font-size: 9px;
            padding: 1px 2px;
            color: #545454;
            background: #fff;
            border: 1px solid #b8b8b8;
        }

        .right-content ul li .fa {
            float: right;
            position: relative;
            top: 8px;
            color: #1f0;
        }

        .right-content ul li a:hover {
            text-decoration: none;
        }

        .right-content ul li:hover {
            background: #ccc;
        }

@media all and (max-width: 700px) {
    .left-content {
        display: none;
    }

    .feed-content {
        left: 0;
    }

    .topbar .right-group > .link-group {
        display: none;
    }
}

@media all and (max-width: 1000px) {
/* Ensure .thirdcol-content is not hidden if it's part of the right sidebar 
    .thirdcol-content {
        display: none;
    } 
*/

    .feed-content {
        right: 0;
    }
}

@media all and (min-width: 1000px) {
    .feed-content {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 24px 24px;
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    .right-content {
        right: 0;
    }
}

@media all and (min-width: 1200px) {
    .feed-content {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 24px 24px;
    }

    .right-content {
        display: block;
    }
}

.pointer {
    cursor: pointer;
}

.ib {
    display: inline-block;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.tc {
    text-align: center;
}
/* Group List */
.group-box {
    padding: 60px 0px;
}

.group-box-part {
    background: #FFF;
    border-radius: 0;
    padding: 60px 10px;
    margin: 30px 0px;
}
/*End Group List */
/*Start userMain*/
.group-user-list {
    background: #fff;
}

.userMain .userBlock {
    float: left;
    width: 100%;
    /*box-shadow: 0px 0px 23px -3px #ccc;*/
    padding-bottom: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    background: #fff;
    border-radius: 4px !important;
}

    .userMain .userBlock .backgrounImg {
        float: left;
        overflow: hidden;
        height: 77px;
    }

        .userMain .userBlock .backgrounImg img {
            width: auto;
        }

    .userMain .userBlock .userImg {
        text-align: center;
    }

        .userMain .userBlock .userImg img {
            width: 80px;
            height: 80px;
            margin-top: -39px;
            border-radius: 100%;
            border: 5px solid #fff;
        }

    .userMain .userBlock .userDescription {
        text-align: center;
    }

        .userMain .userBlock .userDescription h5 {
            margin-bottom: 2px;
            font-weight: 600;
        }

        .userMain .userBlock .userDescription p {
            margin-bottom: 5px;
        }

        .userMain .userBlock .userDescription .btn {
            padding: 0px 23px 0px 23px;
            height: 22px;
            border-radius: 0;
            font-size: 12px;
            background: #0198dd;
            color: #fff;
        }

            .userMain .userBlock .userDescription .btn:hover {
                opacity: 0.7;
            }

    .userMain .userBlock .followrs {
        display: inline-flex;
        margin-right: 10px;
        border-right: 1px solid #ccc;
        padding-right: 10px;
    }

        .userMain .userBlock .followrs .number {
            font-size: 15px;
            font-weight: bold;
            margin-right: 5px;
            margin-top: -1px;
        }
/*End userMain*/
/*Start groupMain*/
.group-list {
    background: #fff;
    margin-bottom: 35px;
}

body.dark-mode .group-list {
    background: #23272b !important;
}

.groupMain .groupBlock {
    float: left;
    width: 100%;
    /*box-shadow: 0px 0px 23px -3px #ccc;*/
    padding-bottom: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

body.dark-mode .groupMain .groupBlock {
    background: #23272b !important;
    border: 1px solid #3a3a3a !important;
}

.groupMain .groupBlock .backgrounImg {
    float: left;
    overflow: hidden;
    height: 77px;
}

    .groupMain .groupBlock .backgrounImg img {
        width: auto;
    }

.groupMain .groupBlock .groupImg {
    text-align: center;
}

    .groupMain .groupBlock .groupImg img {
        width: 130px;
        height: 130px;
        margin-top: -38px;
        border-radius: 100%;
        border: 5px solid #fff;
    }

.groupMain .groupBlock .groupDescription {
    text-align: center;
}

    .groupMain .groupBlock .groupDescription h5 {
        margin-bottom: 2px;
        font-weight: 600;
        color: #23272b;
    }

body.dark-mode .groupMain .groupBlock .groupDescription h5 {
    color: #E0E0E0 !important;
}

.groupMain .groupBlock .groupDescription p {
    margin-bottom: 5px;
}

.groupMain .groupBlock .groupDescription .btn {
    padding: 0px 23px 0px 23px;
    height: 22px;
    border-radius: 0;
    font-size: 12px;
    background: #0198dd;
    color: #fff;
    transition: background 0.2s, color 0.2s;
}

body.dark-mode .groupMain .groupBlock .groupDescription .btn {
    background: #14597e !important;
    color: #E0E0E0 !important;
}

.groupMain .groupBlock .groupDescription .btn:hover {
    opacity: 0.7;
    background: #0171b3 !important;
}

body.dark-mode .groupMain .groupBlock .groupDescription .btn:hover {
    background: #0d3a53 !important;
    color: #fff !important;
}

.groupMain .groupBlock .followrs {
    display: inline-flex;
    margin-right: 10px;
    border-right: 1px solid #ccc;
    padding-right: 10px;
}

body.dark-mode .groupMain .groupBlock .followrs {
    border-right: 1px solid #444 !important;
}

.groupMain .groupBlock .followrs .number {
    font-size: 15px;
    font-weight: bold;
    margin-right: 5px;
    margin-top: -1px;
}

.groupMain .groupBlock .viewers {
    display: inline-flex;
    margin-right: 10px;
    padding-right: 10px;
}

    .groupMain .groupBlock .viewers .number {
        font-size: 15px;
        font-weight: bold;
        margin-right: 5px;
        margin-top: -1px;
    }
/*End groupMain*/
.emoji-menu {
    bottom: 58px;
    position: absolute;
    right: 0;
    z-index: 999999;
    /*width: 248px;
    */
    overflow: hidden;
    border: 1px #dfdfdf solid;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
    -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.emoji-picker-icon {
    margin-right: 20px;
}

.main-textarea-wrapper > .emoji-menu {
    bottom: -197px;
    position: absolute;
    right: 0;
    z-index: 999999;
    /*width: 248px;
    */
    overflow: hidden;
    border: 1px #dfdfdf solid;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
    -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.notification-content {
    padding-left: 35px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 300;
    display: block;
    word-wrap: break-word;
    white-space: normal
}

.notification-title {
    color: #bee2e8;
    padding-left: 35px;
    word-wrap: break-word;
    white-space: normal
}

.notification-seen {
    color: #73d6f5;
    float: right;
}

.notification-date {
    padding-left: 35px;
    padding-right: 10px;
    color: #ffffff;
    font-size: 12px;
    padding-top: 1px;
    float: right;
}

.notification-list {
    height: auto;
    max-height: 300px;
    overflow-x: hidden;
    width: auto;
    width: 300px;
    border-radius: 4px;
}

.notification-container {
    border-bottom: 1px solid #e6ecf5;
}

.dropdown-menu > li > a {
    padding: 19px 15px;
}

.main-search {
    height: 32px;
    width: 100%;
    border-style: solid;
}
/*General*/
.btn {
    border-radius: 25px;
}

.btn-follow {
    border-radius: 25px !important;
}

.btn-transparent {
    color: #fffbfb;
    background-color: #e7e7e700;
    border-color: #b7bfc2
}
/*input {
     border-radius: 10px;
}
*/
.label {
    border-radius: 7px;
}

.textarea {
    border-radius: 5px !important;
}

/*----main search ---------*/

.input-group-btn .btn-group {
    display: flex !important;
}

.main-search-dropdown-btn {
    height: 32px;
    background: #fff;
    border-radius: 0px;
}

@media screen and ( max-width: 1000px) {
    .main-search-dropdown-menu {
        padding: 9px 25px;
        min-width: 200px;
        background-color: #ffffffed !important;
        border-color: #f1f1f1 !important;
        border-radius: 4px;
    }
}

@media screen and ( min-width: 1001px) {
    .main-search-dropdown-menu {
        padding: 9px 25px;
        min-width: 300px;
        background-color: #ffffffed !important;
        border-color: #f1f1f1 !important;
        border-radius: 4px;
    }
}

header {
    font-family: 'Lobster', cursive;
    text-align: center;
    font-size: 25px;
}

#info {
    font-size: 18px;
    color: #555;
    text-align: center;
    margin-bottom: 25px;
}

a {
    color: #074E8C;
}

.scrollbar-left-side_menu::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.scrollbar-left-side_menu::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.scrollbar-left-side_menu::-webkit-scrollbar-thumb {
    background-color: #a5a5a5;
}

.scrollbar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.scrollbar::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: #a5a5a5;
}

.scrollbar-body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.scrollbar-body::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.scrollbar-body::-webkit-scrollbar-thumb {
    background-color: #a5a5a5;
}

.logo {
    margin: -13px 0px 0px -17px;
}

/*Circle button*/
.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}

    .btn-circle.btn-lg {
        width: 50px;
        height: 50px;
        padding: 10px 16px;
        font-size: 18px;
        line-height: 1.33;
        border-radius: 25px;
    }

    .btn-circle.btn-xl {
        width: 70px;
        height: 70px;
        padding: 10px 16px;
        font-size: 24px;
        line-height: 1.33;
        border-radius: 35px;
    }

.btn-fixed {
    position: fixed;
    bottom: 0px;
    right: 0px;
}

.fast-btn-link {
    color: #4b4f56;
    background: #fff;
}


/* Ensure navbar and its dropdowns are above the left menu */
.navbar-collapse.in,
.navbar-collapse.show {
    z-index: 2000 !important; /* Container for dropdowns */
    position: relative !important; /* Ensure stacking context for z-index */
    transform: translateZ(0); /* Attempt to force new stacking context / rendering layer */
    max-height: 640px;
}

    /* Dropdowns within the expanded navbar or the JS placeholder */
    .navbar-collapse.in .dropdown-menu,
    .navbar-collapse.show .dropdown-menu,
    #navbar-right-menu-placeholder .dropdown-menu { /* For JS moved items that become dropdowns */
        position: absolute !important; /* Standard dropdown positioning to break out of flow */
        z-index: 2005 !important; /* Must be higher than its .navbar-collapse container */
    }

/*fast-link*/
.container-fast-link {
    position: fixed;
    bottom: 0;
    width: 288px;
    height: 70px;
    padding: 10px;
    color: #fff;
    border-color: #646262;
    background-color: rgba(0, 0, 0, 0.39);
    /*border-radius: 30px;*/
    cursor: move;
    right: 40%;
}

/* End fast-link*/

/* Dark mode logo handling */
.logo-dark {
    display: none; /* Hidden by default */
}

body.dark-mode .logo-light {
    display: none; /* Hide light logo in dark mode */
}

body.dark-mode .logo-dark {
    display: inline-block !important; /* Show dark logo in dark mode */
}

.ping {
    background: #E0F7FA !important;
    margin-left: 5px !important;
    margin-right: 5px !important;
}

/* Dark mode for left content background */
body.dark-mode .left-content {
    background-color: #252524 !important;
    color: #E0E0E0 !important; /* Default text color for left content */
}

/* Dark mode for feed content background */
body.dark-mode .feed-content {
    background-color: #252524 !important;
    color: #E0E0E0 !important; /* Default text color for feed content */
}

    /* Ensure specific elements within feed-content also get dark styling if needed */
    body.dark-mode .feed-content h3 { /* Example for h3 tags */
        color: #E0E0E0 !important;
    }

body.dark-mode .appheader { /* Targeting appheader specifically as it's a common container */
    background-color: #252524 !important;
    color: #E0E0E0 !important;
}

body.dark-mode .tabstripdiv { /* Targeting tabstripdiv for its background */
    background-color: #252524 !important; /* Or a slightly different dark shade if preferred for tabs */
}

/* Adjust tab button colors for dark mode */
body.dark-mode .tabbuttondiv {
    background-color: #404040 !important; /* Darker background for tabs */
    color: #E0E0E0 !important; /* Light text for tabs */
    border: 1px solid #505050 !important; /* Border for tabs */
}

    body.dark-mode .tabbuttondiv:hover {
        background-color: #505050 !important; /* Slightly lighter on hover */
    }

/* Ensure the div containing the timeline and other preview elements gets a dark background */
body.dark-mode .previewshowdivwrapper,
body.dark-mode .divPreviewRight,
body.dark-mode .previewscenedivwrapper,
body.dark-mode .divPreviewLeft,
body.dark-mode .previewlayoutdivwrapper {
    background-color: #252524 !important;
    color: #E0E0E0 !important;
}

/* Specific styling for elements within the preview areas if they remain white/light */
body.dark-mode #divSelectScreenShowScene,
body.dark-mode #PreviewSceneDivWrapper,
body.dark-mode #divPreviewPanelsContainer,
body.dark-mode #divPreviewPanelButtons,
body.dark-mode .divPreviewPanelList {
    background-color: #2c2c2c !important; /* A slightly different dark shade for distinction */
    color: #E0E0E0 !important;
    border-color: #444444 !important; /* Adjust border colors too */
}

body.dark-mode .divPreviewPanelButtons div[style*="border-bottom:1px gray solid"] {
    border-bottom-color: #444444 !important;
}

/* Fast Access Link Bar */
.container-fast-link {
    position: fixed;
    bottom: 0;
    left: 0; /* Stretch from left edge */
    right: 0; /* Stretch to right edge */
    width: 100%; /* Ensure full width */
    padding: 8px 15px; /* Adjust padding for a full-width bar */
    background-color: rgba(0, 0, 0, 0.39);
    /* border-radius: 20px 20px 0 0; */ /* Remove top corner rounding if it's full width */
    z-index: 1031;
    color: #fff;
    display: flex;
    justify-content: center; /* Center the buttons within the full-width bar */
    align-items: center; /* Vertically align items */
    gap: 15px; /* Adjust gap as needed */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

/* Dark mode adjustments for the fast access link bar */
body.dark-mode .container-fast-link {
    background-color: rgba(40, 40, 40, 0.85); /* Darker, slightly more opaque for dark mode */
    border-top: 1px solid #484848; /* Subtle top border for dark mode */
}

/* Optional: if buttons inside need specific styling for dark mode */
/*
body.dark-mode .container-fast-link .btn.fast-btn-link {
    color: #e0e0e0;
    background-color: #3a3a3a;
}
*/

body.dark-mode .arrow { /* Assuming .arrow is for icons like fa-arrow-right */
    color: #B0B0B0 !important; /* Match icon color from memory */
    border-color: #505050 !important;
}

body.dark-mode #divPreviewPanelName { /* Example if this specific ID needs targeting */
    color: #E57373 !important; /* A lighter red for dark mode, if red is significant */
}

/* Responsive Navbar Styles (from Bootstrap defaults) */
/* Show toggle and collapse navbar content below 790px */
@media (max-width: 789px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,
    .navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
        /* margin-right: -15px; /* Adjust if needed due to container's inline margin */
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
        margin-left: -10px; /* Counteract container's inline margin-left:10px */
        margin-right: -15px; /* Standard Bootstrap negative margin */
    }
    .navbar-fixed-top .navbar-collapse {
        max-height: 640px; /* Adjust as needed */
        overflow-y: auto;
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
        margin-left: 0; /* Reset margin for stacked items */
        margin-right: 0; /* Reset margin for stacked items */
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }
    /* Ensure specific navbar content like forms and login partial stack correctly */
    .navbar-form {
        float: none;
        margin: 7.5px 0; /* Adjusted margins */
        padding: 10px 15px;
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
    }
    .navbar .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    /* Adjustments for your specific search form container */
    .navbar-collapse .col-sm-4.col-md-5 {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0; /* Remove padding if navbar-collapse handles it */
        padding-right: 0; /* Remove padding if navbar-collapse handles it */
    }
    .navbar-collapse #user-notification-icons,
    .navbar-collapse #navbar-right-menu-placeholder {
        float: none !important;
        margin-left: 0; /* Reset margin for stacked items */
        margin-right: 0; /* Reset margin for stacked items */
    }
    .navbar-collapse .navbar-nav.navbar-right#user-notification-icons li,
    .navbar-collapse ul#navbar-right-menu-placeholder li {
        float: none; /* Ensure list items stack */
    }
}

/* Show navbar content as inline again at 790px and above */
@media (min-width: 790px) {
    .navbar-header {
        float: left;
    }
    .navbar-toggle {
        display: none;
    }
    .navbar-collapse {
        display: block!important;
        width: auto!important;
        padding-bottom: 0;
        overflow: visible!important;
        border-top: 0;
        box-shadow: none;
        margin-left: 0; /* Reset margin */
        margin-right: 0; /* Reset margin */
    }
    .navbar-collapse.collapse {
        height: auto!important;
    }
    .navbar-nav {
        float: left!important;
        margin:0;
    }
    .navbar-nav>li {
        float: left;
    }
    .navbar-nav>li>a {
        padding-top: 15px; /* Default Bootstrap navbar link padding */
        padding-bottom: 15px;
    }
    .navbar-form {
        float: left;
        width: auto;
        padding: 0;
        margin:0;
        margin-top: 7px; /* Align with other items */
        border:0;
        box-shadow: none;
    }
    .navbar-collapse .col-sm-4.col-md-5 {
        float: left;
        width: auto; /* Allow it to be flexible but constrained by max-width */
        max-width: 180px; /* Further constrain for 790px-991px to prevent icon wrap */
        margin-right: 10px; /* Add some margin to separate from right-aligned items */
    }
    .navbar-collapse .col-sm-4.col-md-5 .navbar-form {
        width: 100%; /* Form takes full width of its new constrained parent */
        padding-left: 0; /* Reset padding if navbar-form default is too much for the new width */
        padding-right: 0;
        margin-top: 8px; /* Standard Bootstrap navbar-form vertical alignment */
        margin-left: 0;
        margin-right: 0;
    }
    .navbar-collapse .col-sm-4.col-md-5 .navbar-form .input-group {
        width: 100%;
    }
    .navbar-collapse .col-sm-4.col-md-5 .navbar-form .form-control {
        width: 100%; /* Make input take full width of input-group */
    }
    .navbar-collapse #user-notification-icons,
    .navbar-collapse #navbar-right-menu-placeholder {
        float: right !important; /* Align to the right */
    }
}

/* For medium devices and larger (Bootstrap's md breakpoint), let search bar be wider */
@media (min-width: 992px) {
    .navbar-collapse .col-sm-4.col-md-5 {
        max-width: 300px; /* Set a comfortable wider width for larger screens */
        /* The width: auto and float: left from the 790px rule will still apply.
           The margin-right: 10px from the 790px rule will also still apply. */
    }
}
