.custom-sm-logo {
    color: white;
    font-weight: 400;
    font-size: 26px;
    padding-top: 10px;
}


.bg-custom-soft-primary {
    background-color: rgba(86, 113, 240, 0.2) !important;
}

.icon-color {
    color: rgb(86, 113, 240);
}

.form-input-container {
    width: '100%' !important;
}

.dashboard-navbar {
    background: #37C1E3;
}

/* Enhanced Topbar Styles */
.enhanced-topbar {
    background: #37C1E3;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border: none;
    box-shadow: none;
}

.enhanced-topbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.topbar-left {
    display: flex;
    align-items: center;
    margin-left: -60px;
}

.topbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

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

/* Logo Section Styling */
.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
    margin-left: 20px;
}

.dashboard-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Remove old menu toggle styles - no longer needed */

/* Action Icons Styling */
.action-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.action-icon-btn i {
    font-size: 18px;
}

.profile-btn {
    text-decoration: none;
}

/* Profile Dropdown Styling */
.profile-dropdown {
    background: white;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
}

.profile-dropdown .dropdown-item {
    padding: 10px 16px;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #495057;
}

.profile-dropdown .dropdown-header {
    padding: 10px 16px;
    border-bottom: 1px solid #e5e8eb;
    margin-bottom: 4px;
}

.profile-dropdown .dropdown-header h6 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.language-selector {
    margin-right: 0;
}

.language-dropdown {
    background: none;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 50px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-dropdown option {
    background: #37C1E3;
    color: white;
    padding: 8px;
}

/* Remove old nav styles - replaced with action icons */

/* Enhanced Sidebar Styles */
.enhanced-sidebar {
    background: #37C1E3;
    border-top: 1px solid white;
    width: 80px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Sidebar expands on hover - this is the only way to control it */
.enhanced-sidebar:hover,
.enhanced-sidebar.sidebar-expanded {
    width: 250px;
}

.enhanced-sidebar .h-100 {
    padding: 20px 0;
}

.enhanced-sidebar #sidebar-menu {
    padding: 0;
}

.enhanced-sidebar #side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enhanced-sidebar .menu-item {
    color: white;
    margin-bottom: 5px;
    position: relative;
}

.enhanced-sidebar .menu-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.enhanced-sidebar .menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.enhanced-sidebar .menu-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.enhanced-sidebar .menu-link.active:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.enhanced-sidebar .menu-icon {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.enhanced-sidebar .menu-text {
    color: white;
    white-space: nowrap;
    font-weight: 400;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.enhanced-sidebar:hover .menu-text {
    opacity: 1;
    transform: translateX(0);
}

.enhanced-sidebar .menu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.enhanced-sidebar .has-submenu .menu-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(90deg);
}

.enhanced-sidebar .nav-second-level {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 5px 10px 5px 0;
    padding: 5px 0;
    list-style: none;
}

.enhanced-sidebar .nav-second-level li a {
    padding: 8px 20px 8px 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: all 0.3s ease;
}

.enhanced-sidebar .nav-second-level li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.enhanced-sidebar .logout-item {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.enhanced-sidebar .logout-item .menu-link {
    color: rgba(255, 255, 255, 0.6);
}

.enhanced-sidebar .logout-item .menu-link:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Content adjustment for enhanced sidebar */
body.enhanced-layout {
    background-color: #193560;
}

body.enhanced-layout .enhanced-content {
    margin-left: 80px;
    margin-top: 60px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    width: calc(100% - 80px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #193560;
}

/* Content shifts when sidebar is expanded - becomes more flexible */
body.enhanced-layout .enhanced-sidebar:hover ~ .enhanced-content,
body.enhanced-layout .enhanced-content.content-shifted {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Ensure proper spacing for charts and content */
body.enhanced-layout .enhanced-content .content {
    padding: 0;
    background-color: #193560;
}

body.enhanced-layout #wrapper {
    background-color: #193560;
}

body.enhanced-layout .content-page {
    background-color: #193560;
}

/* Flexible content container */
body.enhanced-layout .enhanced-content .content {
    max-width: 100%;
    width: 100%;
}

/* Chart containers and widgets should be flexible */
body.enhanced-layout .enhanced-content .chart-container,
body.enhanced-layout .enhanced-content .chart-box,
body.enhanced-layout .enhanced-content .widget {
    max-width: 100%;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Sidebar remains hover-controlled on mobile */
    .enhanced-sidebar {
        width: 80px;
    }
    
    .enhanced-sidebar:hover,
    .enhanced-sidebar.sidebar-expanded {
        width: 250px;
    }
    
    body.enhanced-layout .enhanced-content {
        margin-left: 80px;
        padding: 15px;
        width: calc(100% - 80px);
    }
    
    body.enhanced-layout .enhanced-sidebar:hover ~ .enhanced-content,
    body.enhanced-layout .enhanced-content.content-shifted {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
    
    .enhanced-topbar .container-fluid {
        padding: 0 15px;
    }
    
    .topbar-left {
        gap: 10px;
    }
    
    .language-selector {
        margin-right: 10px;
    }
    
    .enhanced-topbar {
        height: 55px;
    } 
}

.display-hidden {
    display: none;
}

.display-block {
    display: block;
}

.nav-fil-btn {
    cursor: pointer;
}

.nav-fil-btn:hover {
    color: #63e4ec;
}

.bg-logo-img {
    margin-bottom: 2px;
}

.navbar-custom .topnav-menu .nav-link {
    color: rgba(255, 255, 255) !important;
}

.color-jgw-deep-blue {
    color: #193560 !important;
}

.bg-jgw-deep-blue {
    background-color: #193560 !important;
}

.chart-title {
    text-align: center;
    text-transform: capitalize;
    font-size: 18px;
    font-weight: 400;
    color: var(--ct-text-muted)!important;
}

.general-title-text {
    text-transform: capitalize;
    font-size: 18px;
    font-weight: 400;
    color: var(--ct-text-muted)!important;
}

.global-text-style {
    text-transform: capitalize;
}

.generic-chart-box {
    height: 1500px; 
    max-height: 500px; 
    overflow-y: scroll;
}

.inline-questions-chart-box {
    max-height: 150px !important; 
}


.inline-question-container-div {
    border: 1px solid;
    min-height: 270px;
    padding: 16px;
    margin-right: 50px;
    margin-left: 50px;
}

.generic-chart-box::-webkit-scrollbar {
    width: 6px;
}

.generic-chart-box::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.generic-chart-box::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #aeaeaf; 
}

.generic-chart-box::-webkit-scrollbar-thumb:hover {
    background: #aeaeaf; 
}

.filter-state-container {
    background-color:rgb(230, 245, 250);
}
.filter-state-container span{
    color: #193560;
}

.chart-message {
    text-align: center;
    margin: auto;
}

.scrollable-table-container{
    overflow-y: auto;
    max-height: 500px;
}

.scrollable-table-container::-webkit-scrollbar {
    width: 6px;
}

.scrollable-table-container::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.scrollable-table-container::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #aeaeaf; 
}

.scrollable-table-container::-webkit-scrollbar-thumb:hover {
    background: #aeaeaf; 
}

#preference_user_trends_caption {
    margin-top: 30px;
    font-weight: 300;
    font-size: 0.8rem;
    color: #6E768E;
    text-align: center;
}

#location-table{
    border-spacing: 30px 0;
    border-collapse: unset;
    overflow-y: auto;
}

#location-table-body{
    display:block;
    height: 300px;
    overflow-y: scroll;
}

#location-table-body >tr> td{
    font-size: 12px;
    color: white;
    padding: 0 10px;
}

#users-map{
    height:500px;
    width: 100%;
}

.location-table-wrapper{
    margin: auto 0;
}

.multiselect-container {
    min-width: 300px;
}

.striped-row {
    background-color: #f3f7f9;
    border-color: #dee2e6;
}

body.modal-open {
    padding-right: 15px !important;
}

.button-margin{
    margin-top: 15px !important;
}

.chart-column-width{
    width: 49% !important;
}

.canvas-chart{
    max-height: 550px;
}
.canvas-user-by-month{
    max-height: 550px;
}

.chart-container{
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 20px !important;
    justify-content: space-between !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 1em !important;
    height: 80%;
}

.user-by-month{
    margin-top: 20px;
}
.status{
    padding-left: 30px;
}
.table-title{
    text-align: center;
}
.large-symbol {
    font-size: 1.0rem;
}

@media (max-width: 1200px) {
    .chart-column-width{
        width: 100% !important;
    }
}
 
.chart-title {
    white-space: normal; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    max-height: 100px; 
    overflow: hidden; 
    padding-bottom: 10px;
    margin-bottom: 10px;
}
  
  #organisation-work-code-usage-graph-id {
    min-width: 550px !important;
    min-height: 400px;
  }

.resource-link-margin{
    margin-right: 15px
}

.info-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #193560;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050 !important;
    text-align: center;
    width: max-content;
    max-width: 400px;
}

.info-tooltip i {
    margin-right: 8px;
}

.chart:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #193560;
}

.user-route-map-chart-box, .user-geolocation-map-chart-box{
    position: relative;
    left: 10px;
}
.user-route-map, .user-geolocation-map{
    width: 100%;
    height: 800px;
}

.dropdown-menu-messaging-question {
    max-height: 300px;
    overflow-y: auto;
}
.chart-wrapper-messaging-question {
    border: 1px solid #000080;
    padding: 10px;
    border-radius: 5px;
    height: 450px;
    margin-top: 20px;
}
.chart-container-messaging-question {
    height: 200px;
    overflow-x: auto;
    height: 75%;
}
.chart-title-messaging-question {
    font-weight: bold;
    margin-bottom: 10px;
}

.user-route-map-info-tooltip{
    top: -100px;
}

.user-geol-map-info-tooltip{
    top: -40px;
}

.wide-map{
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
}
/* Maintenance page styles */
.maintenance-page-body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
}

.maintenance-container {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

.maintenance-heading {
    color: #333;
}

.maintenance-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.maintenance-message {
    color: #666;
    line-height: 1.6;
}

.maintenance-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

#user_route_map .modebar-container{
    right: 55px !important;
    top: 65px !important;
}

#user_geolocation_map_user_engagement .modebar-container {
    right: 80px !important;
    top: 2px !important;
}

#user_geolocation_map .modebar-container{
    right: 80px !important; 
    top: -8px !important;
}

.sort-select {
    font-size: 0.8rem;
    padding: 0.25rem;
    height: auto;
    width: 40px !important;
    text-align: center;
}

.sort-select option {
    text-align: center;
    padding: 10px;
}

.sortable-header {
    white-space: nowrap;
    padding: 0.20rem;
}

.sortable-header > div {
    min-width: 75px;
}

/* Chart Card Styles */
.monthly-active-users-card,
.users-by-origin-card,
.users-by-destination-card,
.users-by-gender-card,
.users-by-language-card,
.users-by-state-card,
.users-by-immigration-status-card,
.users-by-age-card,
.work-code-usage-card,
.users-route-map-card,
.users-geolocation-map-card,
.users-interaction-map-card,
.users-by-sector-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;  
}

.monthly-active-users-card .card-body,
.users-by-origin-card .card-body,
.users-by-gender-card .card-body,
.users-by-destination-card .card-body,
.users-by-language-card .card-body,
.users-by-state-card .card-body,
.users-by-immigration-status-card .card-body,
.users-by-age-card .card-body,
.work-code-usage-card .card-body,
.users-by-sector-card .card-body {
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-main-title {
    font-size: 18px;
    font-weight: 600;
    color: #193560;
    margin: 0 0 8px 0;
}

.chart-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.metric-value {
    font-size: 14px;
    color: #193560;
    font-weight: 700;
}

.chart-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-range-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-range-selector:hover {
    background: #e9ecef;
}

.date-range-selector i {
    color: #6c757d;
    font-size: 14px;
}

.date-range-text {
    font-weight: 500;
    color: #495057;
}

.fullscreen-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fullscreen-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.fullscreen-btn i {
    font-size: 16px;
}

/* Fullscreen Modal Styles - Centered with White Opacity Background */
.modal-fullscreen-centered {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    position: fixed;
}

.modal-lg {
    max-width: 1200px;
}

.fullscreen-chart-modal {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.15);
}

.fullscreen-chart-modal .modal-header {
    border-bottom: 1px solid #e5e8eb;
    padding: 20px 24px;
    background: white;
    border-radius: 12px 12px 0 0;
}

.fullscreen-chart-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #193560;
    margin: 0;
}

.fullscreen-chart-modal .modal-body {
    padding: 24px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.fullscreen-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f6f8;
    flex-wrap: wrap;
    gap: 16px;
}

.fullscreen-metrics {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.fullscreen-metrics .metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-metrics .metric-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.fullscreen-metrics .metric-value {
    font-size: 16px;
    color: #193560;
    font-weight: 700;
}

.fullscreen-date-selector {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(25, 53, 96, 0.08);
}

.fullscreen-date-selector .date-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.fullscreen-date-selector label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.fullscreen-date-selector input[type="date"] {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    font-size: 14px;
    color: #193560;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fullscreen-date-selector input[type="date"]:focus {
    border-color: #37C1E3;
    box-shadow: 0 0 0 2px rgba(55, 193, 227, 0.2);
    outline: none;
}

.fullscreen-date-selector .filter-action {
    display: flex;
    align-items: flex-end;
}

.fullscreen-date-selector .filter-action .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 576px) {
    .fullscreen-date-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .fullscreen-date-selector .date-field {
        width: 100%;
    }
}

/* Modal Backdrop with White Opacity */
.modal-backdrop {
    background-color: rgba(255, 255, 255, 0.85) !important;
    opacity: 1 !important;
}

.modal-backdrop.show {
    background-color: rgba(255, 255, 255, 0.85);
}

/* Close button styling */
.fullscreen-chart-modal .btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.fullscreen-chart-modal .btn-close:hover {
    opacity: 1;
    color: #495057;
}

/* User Overview Header Styles */
.user-overview-header-row {
    margin-bottom: 25px;
}

.user-overview-header {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.user-overview-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.user-overview-actions .btn {
    min-width: 140px;
    padding: 10px 20px;
    font-weight: 500;
    background-color: #193560;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
}

@media (max-width: 768px) {
    .user-overview-header-row {
        margin-bottom: 16px;
        padding: 16px 0;
    }
    
    .user-overview-header {
        font-size: 24px;
    }
    
    .user-overview-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-overview-actions .btn {
        width: 100%;
    }
}

/**
 * Dashboard Customization Styles - WPBakery Page Builder Style
 * Professional, polished interface matching application color scheme
 */

/* Application Color Variables */
:root {
    --jgw-primary: #193560;
    --jgw-primary-light: #2a4a7a;
    --jgw-primary-dark: #0f1f3a;
    --jgw-accent: #37C1E3;
    --jgw-accent-light: #5fd1eb;
    --jgw-success: #9dbe3b;
    --jgw-success-light: #b5d85a;
    --jgw-gray: #6c757d;
    --jgw-gray-light: #f8f9fa;
    --jgw-gray-border: #dee2e6;
    --jgw-white: #ffffff;
    --jgw-shadow: rgba(25, 53, 96, 0.15);
    --jgw-shadow-hover: rgba(25, 53, 96, 0.25);
}

/* Main Floating Toolbar - WPBakery Style */
#dashboard-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--jgw-primary) 0%, var(--jgw-primary-light) 100%);
    box-shadow: 0 4px 20px var(--jgw-shadow);
    z-index: 1050;
    padding: 12px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    color: var(--jgw-white);
    border-bottom: 2px solid var(--jgw-accent);
    backdrop-filter: blur(10px);
}

#dashboard-toolbar .toolbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

#dashboard-toolbar .toolbar-brand i {
    font-size: 20px;
    color: var(--jgw-accent);
}

#dashboard-toolbar .toolbar-left,
#dashboard-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--jgw-white);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-btn.primary {
    background: var(--jgw-accent);
    border-color: var(--jgw-accent);
    color: var(--jgw-white);
    font-weight: 600;
}

.toolbar-btn.primary:hover {
    background: var(--jgw-accent-light);
    border-color: var(--jgw-accent-light);
    box-shadow: 0 4px 15px rgba(55, 193, 227, 0.4);
}

.toolbar-btn.danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

.toolbar-btn.danger:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.4);
}

.toolbar-btn i {
    font-size: 16px;
}

.toolbar-btn span {
    display: inline-block;
}

/* Customization Mode Padding */
.dashboard-customize-mode {
    padding-top: 70px;
}

/* Row Styles - WPBakery Style */
.dashboard-customize-mode .dashboard-row {
    position: relative;
    margin-top: 50px;
    margin-bottom: 30px;
    padding: 40px 20px 20px 20px;
    border: 2px dashed var(--jgw-primary);
    border-radius: 10px;
    background: linear-gradient(to bottom, rgba(25, 53, 96, 0.02), rgba(25, 53, 96, 0.05));
    transition: all 0.3s ease;
    min-height: 100px;
}

.dashboard-customize-mode .dashboard-row:hover {
    margin-top: 50px;
    border-color: var(--jgw-accent);
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.05), rgba(55, 193, 227, 0.1));
    box-shadow: 0 6px 20px var(--jgw-shadow);
    transform: translateY(-2px);
}

.dashboard-customize-mode .dashboard-row.row-selected {
    border-color: var(--jgw-accent);
    border-style: solid;
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.1), rgba(55, 193, 227, 0.15));
    box-shadow: 0 8px 25px rgba(55, 193, 227, 0.3);
}

/* Row Floating Toolbar - WPBakery Style */
.row-toolbar {
    position: absolute;
    top: -40px;
    left: 0;
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--jgw-primary);
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 12px var(--jgw-shadow);
    z-index: 100;
    white-space: nowrap;
}

.dashboard-customize-mode .dashboard-row .row-toolbar {
    display: none;
}

.dashboard-customize-mode .dashboard-row:hover .row-toolbar,
.dashboard-customize-mode .dashboard-row.row-selected .row-toolbar {
    display: flex;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row-toolbar-label {
    color: var(--jgw-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.row-toolbar-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--jgw-white);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
}

.row-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.row-toolbar-btn.drag-handle {
    cursor: move;
}

.row-toolbar-btn.drag-handle:hover {
    background: var(--jgw-accent);
}

/* Chart Styles - WPBakery Style */
.dashboard-customize-mode .dashboard-chart {
    position: relative;
    border: 2px dashed var(--jgw-success);
    border-radius: 8px;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(157, 190, 59, 0.03), rgba(157, 190, 59, 0.08));
    transition: all 0.3s ease;
    min-height: 150px;
}

.dashboard-customize-mode .dashboard-chart:hover {
    border-color: var(--jgw-success-light);
    border-style: solid;
    background: linear-gradient(to bottom, rgba(157, 190, 59, 0.08), rgba(157, 190, 59, 0.12));
    box-shadow: 0 4px 15px rgba(157, 190, 59, 0.2);
    transform: translateY(-2px);
}

.dashboard-customize-mode .dashboard-chart.chart-selected {
    border-color: var(--jgw-success-light);
    border-style: solid;
    background: linear-gradient(to bottom, rgba(157, 190, 59, 0.12), rgba(157, 190, 59, 0.18));
    box-shadow: 0 6px 20px rgba(157, 190, 59, 0.3);
}

/* Chart Floating Toolbar - WPBakery Style */
.chart-toolbar {
    position: absolute;
    top: -35px;
    right: 0;
    display: none;
    align-items: center;
    gap: 4px;
    background: var(--jgw-success);
    padding: 6px 10px;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -4px 12px rgba(157, 190, 59, 0.3);
    z-index: 100;
}

.dashboard-customize-mode .dashboard-chart .chart-toolbar {
    display: none;
}

.dashboard-customize-mode .dashboard-chart:hover .chart-toolbar,
.dashboard-customize-mode .dashboard-chart.chart-selected .chart-toolbar {
    display: flex;
    animation: slideDown 0.2s ease-out;
}

.chart-toolbar-label {
    color: var(--jgw-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 8px;
    margin-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-toolbar-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--jgw-white);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.chart-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.chart-toolbar-btn.drag-handle {
    cursor: move;
}

.chart-toolbar-btn.drag-handle:hover {
    background: rgba(255, 255, 255, 0.4);
}

.chart-toolbar-btn.edit-btn:hover {
    background: var(--jgw-accent);
}

.chart-toolbar-btn.duplicate-btn:hover {
    background: var(--jgw-primary-light);
}

.chart-toolbar-btn.remove-btn:hover {
    background: rgba(220, 53, 69, 0.8);
}

/* Column Controls - Between Charts */
.column-drop-zone {
    min-height: 60px;
    border: 2px dashed var(--jgw-gray-border);
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jgw-gray-light);
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-customize-mode .column-drop-zone {
    display: flex;
}

.column-drop-zone:hover {
    border-color: var(--jgw-accent);
    background: rgba(55, 193, 227, 0.05);
}

.column-drop-zone::before {
    content: '+ Add Chart';
    color: var(--jgw-gray);
    font-size: 14px;
    font-weight: 500;
}

.column-drop-zone.drag-over {
    border-color: var(--jgw-accent);
    background: rgba(55, 193, 227, 0.1);
    box-shadow: inset 0 0 20px rgba(55, 193, 227, 0.2);
}

/* Legacy Control Buttons - Keep for compatibility but hidden */
.row-controls,
.chart-controls {
    display: none !important;
}

/* Drag and Drop Styles - Enhanced */
.sortable-ghost {
    opacity: 0.5;
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.1), rgba(55, 193, 227, 0.2)) !important;
    border: 2px dashed var(--jgw-accent) !important;
    transform: scale(0.95);
}

.sortable-chosen {
    border-color: var(--jgw-accent) !important;
    border-style: solid !important;
    box-shadow: 0 8px 30px rgba(55, 193, 227, 0.4) !important;
    transform: scale(1.02);
    z-index: 999;
}

.sortable-drag {
    opacity: 0.9;
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 10px 40px var(--jgw-shadow-hover);
}

/* Chart Library Modal - Enhanced */
#chart-library-modal .modal-header {
    background: linear-gradient(135deg, var(--jgw-primary) 0%, var(--jgw-primary-light) 100%);
    color: var(--jgw-white);
    border-bottom: 2px solid var(--jgw-accent);
}

#chart-library-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#chart-library-modal .charts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
}

.chart-library-item {
    padding: 20px;
    border: 2px solid var(--jgw-gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--jgw-white);
    position: relative;
    overflow: hidden;
}

.chart-library-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jgw-primary), var(--jgw-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.chart-library-item:hover {
    border-color: var(--jgw-accent);
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.05), rgba(55, 193, 227, 0.1));
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--jgw-shadow);
}

.chart-library-item:hover::before {
    transform: scaleX(1);
}

.chart-library-item i {
    font-size: 36px;
    color: var(--jgw-primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.chart-library-item:hover i {
    color: var(--jgw-accent);
    transform: scale(1.1);
}

.chart-library-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--jgw-primary);
    font-size: 15px;
    font-weight: 600;
}

.chart-library-item:hover strong {
    color: var(--jgw-accent);
}

.chart-library-item small {
    color: var(--jgw-gray);
    font-size: 12px;
    line-height: 1.4;
}

/* Chart Settings Modal - Enhanced */
#chart-settings-modal .modal-header {
    background: linear-gradient(135deg, var(--jgw-primary) 0%, var(--jgw-primary-light) 100%);
    color: var(--jgw-white);
    border-bottom: 2px solid var(--jgw-accent);
}

#chart-settings-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#chart-settings-modal .modal-body {
    padding: 30px;
}

#chart-settings-modal .form-group {
    margin-bottom: 25px;
}

#chart-settings-modal label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--jgw-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

#chart-settings-modal select,
#chart-settings-modal input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--jgw-gray-border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--jgw-white);
}

#chart-settings-modal select:focus,
#chart-settings-modal input:focus {
    outline: none;
    border-color: var(--jgw-accent);
    box-shadow: 0 0 0 3px rgba(55, 193, 227, 0.1);
}

#chart-settings-modal .modal-footer {
    border-top: 1px solid var(--jgw-gray-border);
    padding: 20px 30px;
}

#chart-settings-modal .modal-footer .btn-primary {
    background: var(--jgw-accent);
    border-color: var(--jgw-accent);
    color: var(--jgw-white);
    font-weight: 600;
    padding: 10px 24px;
}

#chart-settings-modal .modal-footer .btn-primary:hover {
    background: var(--jgw-accent-light);
    border-color: var(--jgw-accent-light);
}

/* Add Row Indicator - Enhanced */
.dashboard-customize-mode .add-row-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin: 30px 0;
    border: 2px dashed var(--jgw-gray-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(25, 53, 96, 0.02), rgba(25, 53, 96, 0.05));
    position: relative;
}

.dashboard-customize-mode .add-row-indicator:hover {
    border-color: var(--jgw-accent);
    background: linear-gradient(to bottom, rgba(55, 193, 227, 0.05), rgba(55, 193, 227, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--jgw-shadow);
}

.dashboard-customize-mode .add-row-indicator::before {
    content: '+ Add New Row';
    font-size: 16px;
    color: var(--jgw-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dashboard-customize-mode .add-row-indicator:hover::before {
    color: var(--jgw-accent);
}

.dashboard-customize-mode .add-row-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--jgw-accent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.dashboard-customize-mode .add-row-indicator:hover::after {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

/* Preview Mode */
.dashboard-preview-mode .row-toolbar,
.dashboard-preview-mode .chart-toolbar,
.dashboard-preview-mode #dashboard-toolbar {
    display: none !important;
}

.dashboard-preview-mode .dashboard-row,
.dashboard-preview-mode .dashboard-chart {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Notifications - Enhanced */
.dashboard-notification {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 30px var(--jgw-shadow-hover);
    border-left: 4px solid;
}

.dashboard-notification.notification-success {
    border-left-color: var(--jgw-success);
    background: linear-gradient(135deg, var(--jgw-success) 0%, var(--jgw-success-light) 100%);
}

.dashboard-notification.notification-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #dc3545 0%, #e85d6a 100%);
}

.dashboard-notification.notification-info {
    border-left-color: var(--jgw-accent);
    background: linear-gradient(135deg, var(--jgw-accent) 0%, var(--jgw-accent-light) 100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Customize Dashboard Button - Enhanced */
#customize-dashboard-btn {
    margin-left: 10px;
    background: var(--jgw-primary);
    border-color: var(--jgw-primary);
    color: var(--jgw-white);
    font-weight: 500;
    transition: all 0.3s ease;
}

#customize-dashboard-btn:hover {
    background: var(--jgw-primary-light);
    border-color: var(--jgw-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--jgw-shadow);
}

#customize-dashboard-btn i {
    margin-right: 6px;
}

/* Ensure charts are properly contained */
.dashboard-customize-mode .card {
    position: relative;
    overflow: visible;
}

.dashboard-customize-mode .card-body {
    position: relative;
}

/* Loading State - Enhanced */
.dashboard-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.dashboard-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(25, 53, 96, 0.1);
    border-top: 4px solid var(--jgw-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Row Number Badge */
.row-number-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--jgw-primary);
    color: var(--jgw-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.dashboard-customize-mode .dashboard-row .row-number-badge {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    #dashboard-toolbar {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }
    
    #dashboard-toolbar .toolbar-brand {
        font-size: 14px;
    }
    
    #dashboard-toolbar .toolbar-left,
    #dashboard-toolbar .toolbar-right {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .toolbar-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .toolbar-btn span {
        display: none;
    }
    
    .chart-toolbar {
        top: -30px;
        flex-wrap: wrap;
    }
    
    .chart-toolbar-label {
        display: none;
    }
    
    .chart-toolbar-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .row-toolbar {
        top: -35px;
        flex-wrap: wrap;
        padding: 6px 8px;
    }
    
    .row-toolbar-label {
        display: none;
    }
    
    .row-toolbar-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* Smooth Transitions */
* {
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus States */
.dashboard-customize-mode .dashboard-row:focus-within,
.dashboard-customize-mode .dashboard-chart:focus-within {
    outline: 2px solid var(--jgw-accent);
    outline-offset: 2px;
}

/* Empty State */
.empty-row-placeholder {
    padding: 40px;
    text-align: center;
    color: var(--jgw-gray);
    border: 2px dashed var(--jgw-gray-border);
    border-radius: 8px;
    background: var(--jgw-gray-light);
}

.empty-row-placeholder::before {
    content: '📊';
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.empty-row-placeholder-text {
    font-size: 14px;
    font-weight: 500;
}
