/*
Theme Name: Backstage Admin
Version: 0.0.0
*/
:root {
    --header-height: 80px;
    --sidebar-width : 240px;
    --cfbc-white: #fff;
    --cfbc-white-dark: #F9F9F9;
    --cfbc-blue: #4323FF;
    --cfbc-blue-light: #3E8CFF;
    --cfbc-black-total: #000;
    --cfbc-black: #141416;
    --cfbc-black-light: #212020;
    --cfbc-gray-dark: #1D1D1F;
    --cfbc-gray-dark-old: #23262F;
    --cfbc-gray: #2F2F31;
    --cfbc-gray-boder: #34373b;
    --cfbc-gray-light: #777E90;
    --cfbc-cyan: #4FF6B1;
    --cfbc-gold: #FFD166;
    --cfbc-red: #E74C3C;
    --cfbc-orange: #FD8D0A;
    --cfbc-green: #2ECC71;
    --cfbc-dark-blue: #4070A0;
    --cfbc-yellow: #FFCC00;
    --cfbc-indigo: #6707FD;
    --font-size-small : 12px;
    --font-size-normal : 14px;
    --font-size-large : 16px;
    --font-size-xl : 20px;
    --font-size-2xl : 25px;
    --gray--light: #313440;
    --gray-dark: rgba(0, 0, 0, 0.18);
    --gray-light: #2F2F31;
    --black-light: #141416;
    --black--light: #1D1D1F;
    --success: #32CD32;
    --error : #FF4500;
    --warning: #e9bd0c;
    --gray-text : #777E90;
    --dropdown-text : #23262F;
    --dropdown-hover-bg: #23262F;
}

* {
    /* margin: 0;
    padding: 0; */
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
}

a {
    color: var(--cfbc-white);
    text-decoration: none;
}

body {
    margin: 0;
    padding: 0;
    color: var(--cfbc-white);
    background: var(--cfbc-gray-dark);
    font-size: var(--font-size-normal);
    height: 100vh;
    overflow: hidden;
}

::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
	background-color: transparent;
}

::-webkit-scrollbar
{
	width: 10px;
    height: 10px;
	background-color: transparent;
}

::-webkit-scrollbar-thumb
{
	background-color:  var(--cfbc-blue);
    border-radius: 10px;
    width: 2px;
}

/** Util/button */
.button {
    background: var(--cfbc-blue);
    padding: 10px 28px;
    border-radius: 8px;
    font-size: var(--font-size-normal);
    line-height: 21px;
    letter-spacing: 0.21875px;
    color: var(--cfbc-white);
    border: 2px solid var(--cfbc-blue);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s;
}

.button.disabled {
    color: var(--cfbc-white) !important;
    background-color: var(--cfbc-black) !important;
    border: 2px solid var(--cfbc-black);
    cursor: not-allowed;
}

.button:hover {
    color: var(--cfbc-white);
    background: var(--black--light);
}

.button:active {
    color: var(--cfbc-white);
    background: var(--gray-light);
}

.button.--add {
    display: flex;
    align-items: center;
    gap: 5px;
}

.button.--add .dashicons {
    transition: none;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bsa-tooltip.select__options_evnet .bsa-select__selected {
    height: 10px !important;
    padding: 0px !important;
    align-items: center;
    text-align: center;
    justify-content: center;
}
div#selected-company-main {
    cursor: pointer;
}
.bsa-tooltip.select__options_evnet .bsa-select__options {
    margin-top: 5px;
}
.bsa-tooltip.select__options_evnet {
    background: #27272A;
    border-radius: 8px;
    padding: 10px 0 10px 0px;
}

/** Util/Input */
input,
.bsa-select__selected {
    color: var(--cfbc-white);
    font-weight: normal;
    height: 40px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--cfbc-gray); /* Default background */
    box-sizing: border-box;
    width: 100%;
    outline: none;
}

/* Styling for elements inside .bsa-tooltip */
.bsa-tooltip.select__options_evnet input, 
.bsa-tooltip.select__options_evnet .bsa-select__selected {
    background-color: transparent; /* Darker gray when inside bsa-tooltip */
}

/** Util/Textarea */
textarea {
    color: var(--cfbc-white);
    font-weight: normal;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--cfbc-gray);
    box-sizing: border-box;
    width: 100%;
    outline: none;
}

/** Util/Checkbox Item*/
.bsa-checkbox-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bsa-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(50% - 7.5px);
}

/** Util/Checkbox */
input[type="checkbox"] {
    position: relative;
    width: 18px!important;
    height: 18px!important;
    color: var(--cfbc-black);
    border: 1px solid #777E90;
    border-radius: 4px!important;
    appearance: none;
    outline: 0;
    cursor: pointer;
    transition: transparent 175ms cubic-bezier(0.1, 0.1, 0.25, 1);
    margin: 0!important;
    padding: 0!important;
}

input[type="checkbox"]::before {
    position: absolute;
    content: '';
    display: block;
    top: 1px;
    left: 6px;
    width: 4px;
    height: 10px;
    border-style: solid;
    border-color: #15171c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

input[type="checkbox"]:checked {
    color: var(--cfbc-white)fff;
    border-color: var(--cfbc-cyan);
    background: var(--cfbc-cyan);
}

input[type="checkbox"]:checked::before {
    opacity: 1;
}

/** Util/Table */
.bsa-table-container {
    width: 100%;
    min-width: 100%;
    height: 100%;
    overflow-x: auto;
}

.bsa-table__info {
    display: grid;
    gap: 10px;
    background: var(--cfbc-gray);
    padding: 0 20px;
    align-items: center;
    box-sizing: border-box;
    
}
.bsa-row-toggle{
    font-size: 16px;
    cursor: pointer;
    color: #4FF6B1;
    padding-right: 2px;
    line-height: 0;
    display: inline-block;
}
.bsa-row-toggle {
    display: inline-block;
    transition: transform 0.3s ease;
}

.bsa-row-toggle.--open {
    transform: rotate(90deg);
}
.bsa-table-container.users-table .bsa-table__info{
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 1fr) minmax(150px, 1fr) minmax(200px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) 90px;
    min-width: 950px;
}

.bsa-table-container.users-table .user-events,.user-roles  {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: left !important;
    justify-content: revert-layer !important;
    align-items: flex-start !important;
  }
.bsa-table-container.users-table .bsa-table__info.--highlight-events {
    background: var(--cfbc-blue);
}
.bsa-table-container.users-table .bsa-table__info > div {
    justify-content: left !important;
}

.bsa-table-container.users-table .bsa-table__row:first-child  {
    border-radius: 0 !important;
}
.bsa-table-container.users-table .bsa-table__row.bsa-table__events-row .bsa-table__info{
    background: var(--cfbc-gray-dark) !important;
}
.bsa-table__info > div {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    justify-content: space-between;
}
.bsa-table-container.events-table .sortable {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
}
.bsa-table-container.events-table .sortable .sort-icon {
    transition: none;
    transform: rotate(0deg);
}
.bsa-table-container.events-table .sortable.asc .sort-icon {
    transform: rotate(0deg);
}
.bsa-table-container.events-table .sortable.desc .sort-icon {
    transform: rotate(180deg);
}
.bsa-table-container.events-table .sortable.hover:hover .sort-icon {
    transform: rotate(180deg) !important;
}
.bsa-table-container.events-table .sortable.asc.hover:hover .sort-icon {
    transform: rotate(0deg) !important;
}
.bsa-table-container.events-table .sortable.desc.hover:hover .sort-icon {
    transform: rotate(180deg) !important;
}
.bsa-table-container.events-table .sort-icon {
    margin-left: 8px;
    transition: transform 0.3s;
    color: #4eeeac;
    cursor: pointer;
}

.bsa-table-container.events-table .sortable.asc .sort-icon {
    transform: rotate(180deg);
}

.bsa-table-container.events-table .sortable.desc .sort-icon {
    transform: rotate(0deg);
}

.bsa-table-container.events-table .bsa-table__head {
    position: sticky;
    top: 0;/* Change this to match your background color */
    z-index: 1; /* Ensure the header stays above other content */
}

.bsa-table-container.events-table .bsa-table__info {
    justify-content: space-between;
}

.bsa-table__head .bsa-table__info {
    background: var(--cfbc-gray-dark);
}

.bsa-table__info:hover {
    background: var(--cfbc-gray-dark);
}
.bsa-table-container.users-table .bsa-table_events-row .bsa-table__info{
    background: var(--cfbc-gray-dark);
}

.bsa-table-container.users-table .toggle-container {
    display: flex;
    justify-content: space-between; /* Align items to opposite ends */
    align-items: center; /* Center items vertically */
}

.bsa-table-container.users-table .bsa-row-toggle {
    margin-left: auto; /* Pushes the toggle to the right */
}


.bsa-table__head .bsa-table__info > div {
    font-weight: bold;
    text-transform: uppercase;
    font-size: var(--font-size-small)
}

.bsa-table-container.users-table .bsa-table__head {
    position: sticky;
    top: 0;/* Change this to match your background color */
    z-index: 1; /* Ensure the header stays above other content */
}

.bsa-table-container.users-table .bsa-table__info {
    justify-content: space-between;
}


.bsa-table__row:first-child {
    border-radius: 8px 8px 0 0;
}

.bsa-table__body .bsa-table__row:first-child .bsa-table__info {
    border-radius: 8px 8px 0 0;
}

.bsa-table__body .bsa-table__row {
    border-bottom: 1px solid var(--cfbc-gray-boder);
}

.bsa-table__body .bsa-table__row:last-child {
    border-bottom: 0;
}

.bsa-table__body .bsa-table__row:last-child .bsa-table__info {
    border-bottom: 0;
    border-radius: 0 0 8px 8px;
}

.bsa-table-actions-text {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.bsa-table-actions-icon {
    font-size: 12px;
    width: auto;
    height: auto;
}

.bsa-table-actions:hover .bsa-table-actions-text {
    color: var(--cfbc-cyan);
}

.bsa-table-container.events-table .bsa-table__info {
    grid-template-columns: minmax(200px, 10%) minmax(200px, 5%) minmax(130px, 5%) minmax(150px, 5%)     minmax(120px, 10%) minmax(130px, 5%) minmax(170px, 10%) minmax(80px, 2%) minmax(95px, 2%) minmax(80px, 5%);
}

.bsa-table__body.event-table-tool .bsa-select {
    width: 100%;
}

/** Users Page */
.bsa-table-container.users-table .bsa-table__info {
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 1fr) minmax(150px, 1fr) minmax(200px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) 90px;
    min-width: 950px;
}

.bsa-table-container.users-table .bsa-table__info.--highlight {
    background: var(--cfbc-blue);
}

/** Util/Field Item*/
.bsa-field {
    margin-bottom: 25px;
}

.bsa-field:last-child {
    margin-bottom: 0!important;
}

.bsa-field__label {
    font-weight: bold;
    margin-bottom: 5px;
    margin-left: 5px;
}

.bsa-field__label span {
    font-weight: normal;
}

/** Util/dropdown */
.bsa-dropdown {
    position: relative;
}

.bsa-dropdown-menu-container {
    position: fixed;
    top: 100%;
    width: 100%;
    padding-top: 5px;
    display: none;
    width: 150px;
    right: 0;
}

.bsa-dropdown:hover .bsa-dropdown-menu-container {
    display: block;
    z-index: 2;
}

.bsa-dropdown-menu {
    background: var(--cfbc-white);
    padding: 10px;
    width: 100%;
    border-radius: 5px;
}

.bsa-dropdown-menu-item {
    color: var(--dropdown-text);
    padding: 7px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.bsa-dropdown-menu-item a {
    color: var(--dropdown-text);
    width: 100%;
    display: block;
}

.bsa-dropdown-menu-item:hover,
.bsa-dropdown-menu-item:hover a {
    color: var(--cfbc-white);
    background-color: var(--dropdown-hover-bg);
}

/** Events Select */
.events-select-container {
    position: relative;
}

.events-select {
    position: relative;
    cursor: pointer;
}

.events-select-container .bsa-select .bsa-select__selected {
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 200px;
    min-width: 120px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    border: 0px !important;
}
.events-select-container .bsa-select .bsa-select__selected:hover {
    background-color: transparent !important;
    border: none
}

.events-select .bsa-select__selected:hover {
    background-color: var(--cfbc-gray);
}

.events-select .bsa-select__options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.events-select.--open .bsa-select__options {
    display: block;
}

.single-event {
    padding: 4px 8px;
    border-radius: 4px;
}

.events-select-container .bsa-select {
    position: relative;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.events-select-container .bsa-select .bsa-select__selected {
    padding: 4px 8px;
    padding-right: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events-select-container .bsa-select .bsa-select__selected:hover {
    background-color: var(--cfbc-gray);
}

.events-select-container .bsa-select .sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #4eeeac;
    transition: transform 0.2s;
    z-index: 1;
}

.events-select-container .bsa-select.--open .sort-icon {
    transform: translateY(-50%) rotate(180deg);
}

/** Util/Select **/
.bsa-select {
    position: relative;
    cursor: pointer;
}

.bsa-select__selected {
    display: flex;
    align-items: center;
    gap: 10px;
    background-image: var(--arrow-icon);
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: calc(100% - 12px);
}

.event-cbs2-custom-select.--type2 .bsa-select__selected {
    padding: 0;
    background: 0;
}

.bsa-select__options {
    position: absolute;
    width: 100%;
    background: var(--cfbc-gray);
    color: var(--cfbc-white);
    top: calc( 100% + 10px );
    box-sizing: border-box;
    border-radius: 8px;
    display: none;
    z-index: 10;
    max-height: 200px;
    overflow: auto;
    padding: 10px 0;
    border: 1px solid #434551;
}


.bsa-select__options.--open {
    display: block;
}

.bsa-select__options > div {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-left: 2px solid transparent
}

.bsa-select__options > div:hover {
    background-color: var(--cfbc-black-light);
    border-color: var(--cfbc-cyan);
}

.bsa-select__options > div.--current {
    color: var(--cfbc-cyan);
    background-color: var(--cfbc-black-light);
    border-color: var(--cfbc-cyan);
}

.event-cbs2-custom-select .cbs2-tooltip-text {
    width: 200px;
    box-shadow: 0 0 14px 7px #0000004a;
}

/** Util/Toast **/
.cbs-toasts-wrapper {
    position: fixed;
    z-index: 99;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.cbs-toast {
    width: 400px;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	padding: 16px 17px;
	margin-bottom: 10px;
	background: var(--gray--light);
	justify-content: space-between;
	animation: show_toast 0.3s ease forwards;
    display: flex;
    align-items: center;
    color: var(--cfbc-white);
}

.cbs-toast.--hide {
	animation: hide_toast 0.3s ease forwards;
}

.cbs-toast::before {
	position: absolute;
	content: '';
	height: 3px;
	width: 100%;
	bottom: 0;
	left: 0;
	animation: progress 4s linear forwards;
}

.cbs-toast.--success::before {
	background: var(--success);
}

.cbs-toast.--error::before {
	background: var(--error);
}

.cbs-toast.--warning::before {
	background: var(--warning);
}

.cbs-toast__icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.cbs-toast.--success .cbs-toast__icon {
    color: var(--success);
}

.cbs-toast.--error .cbs-toast__icon {
    color: var(--error);
}

.cbs-toast.--warning .cbs-toast__icon {
    color: var(--warning);
}

.cbs-toast__text {
    flex: 1;
    margin: 0 10px;
}

.cbs-toast__close {
    cursor: pointer;
}

@keyframes hide_toast {
	100% { transform: translateY(40%); }
}

@keyframes show_toast {
	0% { transform: translateY(20%); }
    100% { transform: translateY(0%); }
}

@keyframes progress {
	100% { width: 0%; }
}

/** Util/tabs */
.bsa-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray--light);
}

.bsa-tabs__item {
    color: var(--gray-text);
    cursor: pointer;
    padding: 10px 20px;
    font-size: var(--font-size-large);
    font-weight: bold;
}

.bsa-tabs__item:hover {
    color: var(--cfbc-white);
}

.bsa-tabs__item.--current {
    color: var(--cfbc-white);
    border-bottom: 2px solid var(--cfbc-blue);
}

/** Header */
header {
    display: flex;
    background: var(--cfbc-black-total);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    align-items: center;
    padding: 0 30px;
    z-index: 10;
    
}

/* Mobile responsive header */
@media (max-width: 768px) {
    header {
        padding: 0 15px;
        height: 60px;
    }
    
    :root {
        --header-height: 60px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 10px;
        height: 50px;
        flex-wrap: wrap;
        min-height: 50px;
    }
    
    :root {
        --header-height: 50px;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    width: 150px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: end;
}

/* Enhanced Current User Mobile Styles */
.current-user {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.current-user .bsa-dropdown-menu-container {
    width: 200px;
    right: 0;
}

.current-user-image {
    width: 40px;
    height: 40px;
    background: var(--cfbc-indigo);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: capitalize;
    font-size: 20px;
    margin-right: 5px;
}

.current-user-dropdown-icon {
    font-size: 16px;
    color: var(--cfbc-cyan);
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-user:hover .current-user-dropdown-icon {
    background: var(--cfbc-cyan);
    color: var(--cfbc-black);
    padding-top: 2px;
}

/* Mobile responsive styles for header elements */
@media (max-width: 768px) {
    .logo-container {
        margin-right: 10px;
    }
    
    .logo {
        width: 120px;
        max-height: 35px;
    }
    
    .current-user {
        gap: 3px;
    }
    
    .current-user .bsa-dropdown-menu-container {
        width: 180px;
        position: fixed !important;
        top: var(--header-height) !important;
        right: 15px !important;
        z-index: 9999;
    }
    
    .current-user-image {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin-right: 3px;
    }
    
    .current-user-dropdown-icon {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    .bsa-tooltip.select__options_evnet {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
        max-width: 320px !important;
        z-index: 9999 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__selected {
        height: 40px !important;
        padding: 8px 12px !important;
        min-height: 40px;
        font-size: 14px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__options {
        margin-top: 0;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .logo-container {
        margin-right: 5px;
    }
    
    .logo {
        width: 100px;
        max-height: 30px;
    }
    
    .header-nav {
        justify-content: flex-end;
        min-width: 0;
    }
    
    .current-user {
        gap: 2px;
        min-width: 0;
        flex-shrink: 0;
    }
    
    .current-user .bsa-dropdown-menu-container {
        width: 160px;
        right: 10px !important;
    }
    
    .current-user-image {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-right: 2px;
    }
    
    .current-user-name {
        display: none;
    }
    
    .current-user-dropdown-icon {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }
    
    .bsa-tooltip.select__options_evnet {
        width: 95vw !important;
        max-width: 280px !important;
        border-radius: 12px;
        padding: 15px 0;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__selected {
        height: 36px !important;
        padding: 6px 10px !important;
        min-height: 36px;
        font-size: 13px;
    }
    
    .bsa-tooltip.select__options_evnet .bsa-select__options {
        max-height: 50vh;
    }
}

/** Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    height: calc( 100% - var(--header-height));
    width: var(--sidebar-width);
    left: 0;
    background: var(--cfbc-black-total);
    border-top: 1px solid transparent;
    padding: 30px 20px;
}

.sidebar-menu__item {
    margin-bottom: 5px;
}

.sidebar-menu__item a{
    display: flex;
    padding: 15px 10px 15px 20px ;
    border-radius: 8px;
    line-height: 1;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-large);
    /* font-weight: bold; */
}

.sidebar-menu__item.--submenu-open > a {
    background: var(--gray-dark);
    border-radius: 8px 8px 0 0;
}

.sidebar-menu__item.--current > a {
    font-weight: 500;
}

.sidebar-menu__item a:hover,
.sidebar-menu__item.--current > a {
    background: var(--cfbc-indigo);
}

.sidebar-menu__item.--submenu-open {
    background: var(--cfbc-gray-dark);
    border-radius: 8px;
}

.sidebar-menu__item.--submenu-open .sidebar-menu__submenu-toggle {
    transform: rotate(180deg);
}

.sidebar-menu__submenu {
    padding: 10px 5px;
    display: none;
}

.sidebar-menu__submenu-item a {
    padding: 12px 20px;
    border-radius: 8px;
}


.sidebar-menu__submenu-item a:hover,
.sidebar-menu__submenu-item.--current a {
    background: var(--gray-dark);
}


/** Content */
.site-content {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    height: calc(100% - var(--header-height));
    position: relative;
}

main {
    padding: 20px;
    height: 100%;
}

/* Reports page specific styles */
.main__content {
    padding: 0 20px;
}

/* Mobile responsive adjustments for reports page */
@media (max-width: 768px) {
    .main__content {
        padding: 0 15px;
    }
    
    .site-content {
        margin-left: 0;
        margin-top: var(--header-height);
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.--open {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .main__content {
        padding: 0 10px;
    }
    
    main {
        padding: 15px 10px;
    }
}

.main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.main__title {
    font-size: var(--font-size-2xl);
}

.main__content {
    width: 100%;
    height: calc(100% - var(--header-height));
    overflow: auto;
}

.main__content_faq {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.site-content:has(.main__content_faq) {
    margin-top: 80px;
}

/** Misc */
.bsa-no-results {
    padding: 20px 20px 10px;
    text-align: center;
}

/** Popup */
.popup-container {
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    background: #0000006e;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 99999;
}

.popup {
    background: var(--cfbc-gray-dark);
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    position: relative;
    padding: 30px 30px 40px;
    margin: auto;
    color: var(--cfbc-white);
    box-shadow: 0px 30px 40px #000000;
    box-sizing: border-box;
}

.popup .bsa-loading {
    border-radius: 24px;
}

.popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.popup-actions {
    margin-top: auto;
    text-align: center;
}

.popup-close {
    position: absolute;
    background: var(--cfbc-gray-dark);
    width: 40px;
    height: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: -50px;
    cursor: pointer;
    border-radius: 5px;
}

.popup-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    font-weight: bold;
}

.popup form {
    height: 100%;
}

.popup-header {
    margin-bottom: 25px;
}

.popup-main {
    margin-bottom: 40px;
}

.popup-title {
    text-align: center;
    font-size: var(--font-size-xl);
}

/** Confirm Popup */
.popup.confirm-popup {
    max-width: 400px;
    padding-bottom: 25px;
}

.popup.confirm-popup .popup-main {
    margin-bottom: 30px;
}

.popup.confirm-popup .confirm-text {
    text-align: center;
}

.popup.confirm-popup .popup-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.popup.confirm-popup .popup-cancel {
    background: none;
}

.popup.confirm-popup .popup-cancel:hover {
    color: var(--cfbc-cyan);
}

/** Alert Popup */
.popup.alert-popup {
    max-width: 400px;
    padding-bottom: 30px;
}

.popup.alert-popup .popup-main {
    margin-bottom: 10px;
}

.popup.alert-popup .alert-text {
    text-align: center;
}

/** Loading Screen */
.bsa-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #23262fd6;
}

.bsa-loading.--hidden {
    display: none;
}

.bsa-loading-icon {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.bsa-loading-icon div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--cfbc-white);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.bsa-loading-icon div:nth-child(1) {
    left: 8px;
    animation: bsa-loading-icon1 0.6s infinite;
}

.bsa-loading-icon div:nth-child(2) {
    left: 8px;
    animation: bsa-loading-icon2 0.6s infinite;
}

.bsa-loading-icon div:nth-child(3) {
    left: 32px;
    animation: bsa-loading-icon2 0.6s infinite;
}

.bsa-loading-icon div:nth-child(4) {
    left: 56px;
    animation: bsa-loading-icon3 0.6s infinite;
}

@keyframes bsa-loading-icon1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes bsa-loading-icon3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes bsa-loading-icon2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/** Skelton Loading */
.bsa-skelton-item {
    color: transparent;
    background: linear-gradient(100deg, #23262F 30%, #2d2f38 50%, #23262F 70%);
    background-size: 400%;
    animation: skelton 1.2s ease-in-out infinite;
    border-radius: 4px;
}


@keyframes skelton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

  
/** Events Page */
.events-table__url {
    text-decoration: underline;
}

.amw-website-url-preview {
    margin-top: 10px;
    display: block;
    margin-left: 5px;
}

.amw-website-url-preview span {
    color: var(--cfbc-cyan);
}

.ewu-current-url {
    opacity: .75;
    pointer-events: none;
}

.popup.event-duplicate-popup {
    max-width: 450px;
}

.popup.event-duplicate-popup .bsa-field__label {
    margin-left: 0;
    margin-bottom: 12px;
}

.popup.event-duplicate-popup .popup-main {
    margin-bottom: 30px;
}

.popup.add-update-user-popup {
    max-width: 500px;
}


/** Dashboar Page */
.bsa-dashboard-heading-margin {
    margin-bottom: 30px;
}

.bsa-dashboard-stats {
    display: flex;
    gap: 20px 20px;
    margin-bottom: 60px;
}

.bsa-dashboard-event-stats {
    display: flex;
    gap: 20px;
}

.bsa-dashboard-item {
    width: calc( 25% - (60px/4) );
    border-radius: 10px;
    padding: 20px 20px 30px;
    border: 1px solid #303234
}

.bsa-dashboard-stats .bsa-dashboard-item {
    background: var(--cfbc-gray-dark);
    border: 0;
}


.bsa-dashboard-item__count {
    font-size: 60px;
    margin-bottom: 10px;
    line-height: 1;
    font-weight: 300;
}

.bsa-dashboard-item__count.bsa-skelton-item {
    width: 50%;
}

.bsa-dashboard-item__heading {
    font-size: var(--font-size-large);
    font-weight: bold;
}

.faq-flex-container  {
    display: flex;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 12px;
}

.faq-flex-container-section {
    background-color: #24262F;
}

.faq-flex-container-category {
    background-color: #22242c;
    margin-left: 30px;
}

.faq-flex-container-question {
    background-color: #1e1f26;
    margin-left: 60px;
}

.faq-flex-container-answer {
    background-color: #191a1f;
    margin-left: 90px;
}

.faq-builder-container {
    margin-left: 5%;
    margin-right: 5%;
}

.faq-flex-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-description {
    color: #777E90;
    font-size: xx-small;
}

.faq-flex-item .left-content {
    flex-grow: 1;
}

.faq-flex-item .right-buttons {
    display: flex;
}

.faq-button {
    cursor: pointer;
}

.faq-button img {
    width: 16px;
}

.faq-button {
    margin-right: 8px;
}

.right-buttons {
    display: flex;
    align-items: center;
}

.btn-move-up-faq, .btn-move-down-faq {
    display: flex;
    align-items: center;
}

.btn-move-up-faq {
    margin-bottom: 2px;
}

.btn-move-down-faq {
    margin-top: 2px;
}

.btn-move-up-faq img {
    transform: rotate(180deg);
}

.btn-move-up-faq img, .btn-move-down-faq img {
    width: 12px;
}

.move-buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.faq-small-btn {
    padding: 0 5px 0 0;
}

/* NEW Switcher toggle */
.cbs-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    font-size: 16px;
}

.cbs-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cbs-toggle-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2F2F31;
    transition: background-color 0.4s;
    width: 70px;
}

.cbs-toggle-switch-slider:before {
    position: absolute;
    content: '';
    height: 32px;
    width: 32px;
    left: 1px;
    bottom: 1px;
    background-color: #4323FF;
    transition: transform 0.4s;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
}

.cbs-switch input:checked + .cbs-toggle-switch-slider {
    background-color: #515154;
}

.cbs-switch input:checked + .cbs-toggle-switch-slider:before {
    transform: translateX(36px);
    content: '+';
}

.cbs-switch input:not(:checked) + .cbs-toggle-switch-slider:before {
    transform: translateX(0);
    content: '-';
}

.cbs-toggle-switch-round {
    border-radius: 34px;
}

.cbs-toggle-switch-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    transition: 0.4s;
    font-size: 10px;
}

.cbs-toggle-switch-on-text {
    left: 8px;
}

.cbs-toggle-switch-off-text {
    right: 8px;
}

.cbs-toggle-switch-on-text,
.cbs-toggle-switch-off-text{
    font-size: 16px;
    visibility: hidden;
    opacity: 0;
}

.cbs-switch input:checked + .cbs-toggle-switch-slider .cbs-toggle-switch-on-text{
    visibility: visible;
    opacity: 1;
    color: #4FF6B1;
}

.cbs-switch input:not(:checked) + .cbs-toggle-switch-slider .cbs-toggle-switch-off-text {
    visibility: visible;
    opacity: 1;
    color: #515154;
}

.cbs-toggle-switch-slider:before {
    z-index: 10;
}

.cbs-add-file-icon {
    padding: 12px 18px 12px 18px;
    border-radius: 32px;
    background: #4323FF;
    color: #FFFFFF;
    text-transform: capitalize;
    font-weight: 700;
    margin-right: 9px;
    border: 1px solid #4323FF;
}
.cbs-add-file-icon.--dragover {
    background: #1D1D1F;
    border: 1px solid #4323FF;
    margin-right: 9px;
    color: #4323FF;
    font-weight: 700;
}
.cbs-big-label{
    font-size: 16px;
    font-weight: 700;
}
.cbs-small-label{
    font-size: 16px;
    font-weight: 400;
}

/* Tooltip */
.cbs-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cbs-tooltip-icon svg {
    margin-left: 4px;
    margin-right: 4px;
}

.cbs-tooltip-text {
    visibility: hidden;
    width: 274px;
    background-color: var(--cfbc-gray);
    color: var(--cfbc-white);
    text-align: left;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -137px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid var(--cfbc-black);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cbs-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Flecha abajo */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--cfbc-gray) transparent transparent transparent;
}

.cbs-tooltip:hover .cbs-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.cbs-tooltip-text ul {
    list-style-type: disc;
    margin: 10px 0;
    padding-left: 20px;
}

.cbs-tooltip-text li {
    margin-bottom: 10px;
    text-align: left;
}

.bsa-tooltip {
    position: relative;
    display: inline-block;
}
.bsa-table-container {
    position: relative; /* Ensure the container is positioned */
    z-index: 1; /* Set a base z-index for the container */
}

.bsa-tooltip-text {
    visibility: hidden;
    width: max-content;
    max-width: 300px;
    background: #515154;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 100%; /* Position above the text */
    left: 70%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 9999; /* Ensure this is higher than other elements */
    white-space: normal;
    word-break: break-word;
}



.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: -webkit-fill-available;
    display: inline-block;
    vertical-align: middle;
}

.popup-save:disabled {
    background: #2a2a2a;
    border: 2px solid #2a2a2a;
    cursor: grab;
}

/* Hide Osano Cookie Widget */
.osano-cm-widget {
    display: none !important;
}