/*
 * Modern Header Styles
 * Added for the new top header component
 */

/* Add specific rule for hidden class to ensure it works */
.hidden {
    display: none !important;
}




.mc-top-header {
    background: #fff;
    border-bottom: 1px solid rgb(229, 231, 235);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 99998; /* Below modal overlay (999999) but above content */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Dark mode header background - IMMEDIATE FIX */
.dark .mc-top-header {
    background: #111827 !important;
    border-bottom-color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* NUCLEAR SPECIFICITY FIXES FOR DARK MODE HEADER */
html.dark body .mc-top-header,
html.dark .mc-top-header,
.dark .mc-top-header {
    background: #111827 !important;
    border-bottom-color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* All header text and elements dark mode with nuclear specificity */
html.dark body .mc-top-header .mc-header-title,
html.dark body .mc-top-header .mc-dynamic-title,
html.dark .mc-top-header .mc-header-title,
html.dark .mc-top-header .mc-dynamic-title,
.dark .mc-top-header .mc-header-title,
.dark .mc-top-header .mc-dynamic-title {
    color: #ffffff !important;
}

/* All header buttons with nuclear specificity */
html.dark body .mc-top-header .mc-header-btn,
html.dark body .mc-top-header .mc-sidebar-toggle,
html.dark body .mc-top-header .mc-dark-toggle,
html.dark body .mc-top-header .mc-notification-btn,
html.dark .mc-top-header .mc-header-btn,
html.dark .mc-top-header .mc-sidebar-toggle,
html.dark .mc-top-header .mc-dark-toggle,
html.dark .mc-top-header .mc-notification-btn,
.dark .mc-top-header .mc-header-btn,
.dark .mc-top-header .mc-sidebar-toggle,
.dark .mc-top-header .mc-dark-toggle,
.dark .mc-top-header .mc-notification-btn {
    color: #9ca3af !important;
    background: transparent !important;
}

/* Header button hover states with nuclear specificity */
html.dark body .mc-top-header .mc-header-btn:hover,
html.dark body .mc-top-header .mc-sidebar-toggle:hover,
html.dark body .mc-top-header .mc-dark-toggle:hover,
html.dark body .mc-top-header .mc-notification-btn:hover,
html.dark .mc-top-header .mc-header-btn:hover,
html.dark .mc-top-header .mc-sidebar-toggle:hover,
html.dark .mc-top-header .mc-dark-toggle:hover,
html.dark .mc-top-header .mc-notification-btn:hover,
.dark .mc-top-header .mc-header-btn:hover,
.dark .mc-top-header .mc-sidebar-toggle:hover,
.dark .mc-top-header .mc-dark-toggle:hover,
.dark .mc-top-header .mc-notification-btn:hover {
    background: rgba(234, 115, 81, 0.15) !important;
    color: #ea7351 !important;
    border-color: #ea7351 !important;
}

/* Remove SVG borders with nuclear specificity */
html.dark body .mc-top-header svg,
html.dark body .mc-top-header .mc-dark-toggle svg,
html.dark .mc-top-header svg,
html.dark .mc-top-header .mc-dark-toggle svg,
.dark .mc-top-header svg,
.dark .mc-top-header .mc-dark-toggle svg,
.mc-top-header svg,
.mc-top-header .mc-dark-toggle svg {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.mc-top-header .mc-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    max-width: 100%;
}

.mc-top-header .mc-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mc-top-header .mc-header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.mc-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: rgb(107, 114, 128);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-sidebar-toggle:hover {
    background: rgba(234, 115, 81, 0.1);
    color: #ea7351;
}

.mc-sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.mc-top-header .mc-header-left .mc-header-title {
    font-size: 24px;
    font-weight: 600;
    color: rgb(36, 39, 42);
    margin: 0;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.mc-dynamic-title {
    user-select: none;
}

/* Sidebar collapse styles */
.mc-sidebar-collapsed .mc-sidebar,
.mc-sidebar-collapsed .sidebar,
.mc-sidebar-collapsed #sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mc-sidebar,
.sidebar,
#sidebar {
    transition: transform 0.3s ease;
}

/* Adjust main content when sidebar is collapsed */
.mc-sidebar-collapsed .mc-main-content,
.mc-sidebar-collapsed .main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Responsive sidebar toggle visibility */
@media (max-width: 768px) {
    .mc-sidebar-toggle {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mc-sidebar-toggle {
        display: none;
    }
}

.mc-top-header .mc-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mc-top-header .mc-header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.mc-top-header .mc-header-search .mc-icon {
    position: absolute;
    left: 12px;
    color: rgb(107, 114, 128);
    font-size: 16px;
    z-index: 1;
}

.mc-top-header .mc-header-search .mc-search-input {
    background: rgb(249, 250, 251);
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    color: rgb(36, 39, 42);
    width: 240px;
    transition: all 0.2s ease;
}

.mc-top-header .mc-header-search .mc-search-input:focus {
    outline: none;
    border-color: #ea7351 ;
    box-shadow: 0 0 0 3px rgba(234, 115, 81, 0.1) ;
    background: #fff;
    transition: all 0.2s ease;
}

.mc-top-header .mc-header-search .mc-search-input::placeholder {
    color: rgb(156, 163, 175);
}

/* CONSOLIDATED DARK MODE TOGGLE - SINGLE RULE BLOCK */
/* Maximum specificity to override all conflicts */
html body .mc-top-header .mc-dark-toggle,
html .mc-top-header .mc-dark-toggle,
body .mc-top-header .mc-dark-toggle,
.mc-top-header .mc-dark-toggle {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

/* Base SVG styling - consolidated */
html body .mc-top-header .mc-dark-toggle svg,
html .mc-top-header .mc-dark-toggle svg,
body .mc-top-header .mc-dark-toggle svg,
.mc-top-header .mc-dark-toggle svg {
    border: none !important;
    outline: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    width: 20px !important;
    height: 20px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

/* Light mode: show moon (1st), hide sun (2nd) */
html body .mc-top-header .mc-dark-toggle svg:nth-child(1),
.dark html body .mc-top-header .mc-dark-toggle svg:nth-child(1) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2 !important;
}

html body .mc-top-header .mc-dark-toggle svg:nth-child(2),
.dark html body .mc-top-header .mc-dark-toggle svg:nth-child(2) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: 1 !important;
}

/* Dark mode: hide moon (1st), show sun (2nd) */
html.dark body .mc-top-header .mc-dark-toggle svg:nth-child(1),
html.dark .mc-top-header .mc-dark-toggle svg:nth-child(1) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: 1 !important;
}

html.dark body .mc-top-header .mc-dark-toggle svg:nth-child(2),
html.dark .mc-top-header .mc-dark-toggle svg:nth-child(2) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2 !important;
}


.mc-top-header .mc-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    color: rgb(107, 114, 128);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mc-top-header .mc-header-btn:hover {
    background: rgba(234, 115, 81, 0.1);
    color: #ea7351;
    border-color: #ea7351;
    transition: all 0.2s ease;
}

.mc-top-header .mc-header-btn svg {
    border: none !important;
    outline: none !important;
}

.mc-top-header .mc-header-btn .mc-icon {
    font-size: 18px;
}

.mc-top-header .mc-notification-btn .mc-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgb(239, 68, 68);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.2s ease;
    
    /* Animation for new notifications */
    animation: badge-bounce 0.4s ease-out;
}

/* Badge pulse animation for active notifications */
.mc-top-header .mc-notification-btn .mc-notification-badge.mc-pulse {
    animation: badge-pulse 2s infinite;
}

/* Badge bounce animation */
@keyframes badge-bounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Badge pulse animation */
@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0), 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* Badge hover effects */
.mc-top-header .mc-notification-btn:hover .mc-notification-badge {
    transform: scale(1.1);
}

/* Search Results Dropdown */
.mc-header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 99999; /* Below modal overlay but above header */
    max-height: 300px;
    overflow-y: auto;
    animation: fadeInDown 0.2s ease-out;
}

.mc-search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgb(243, 244, 246);
    background: rgb(249, 250, 251);
    border-radius: 8px 8px 0 0;
}

.mc-search-results-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: rgb(55, 65, 81);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mc-search-results-count {
    font-size: 12px;
    font-weight: 400;
    color: rgb(107, 114, 128);
}

.mc-search-results-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgb(243, 244, 246);
}

.mc-search-results-item:last-child {
    border-bottom: none;
}

.mc-search-results-item:hover {
    background: rgb(249, 250, 251);
}

.mc-search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    background: rgb(243, 244, 246);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-search-result-content {
    flex: 1;
    min-width: 0;
}

.mc-search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: rgb(17, 24, 39);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-search-result-subtitle {
    font-size: 12px;
    color: rgb(107, 114, 128);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-search-results-more {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid rgb(243, 244, 246);
    background: rgb(249, 250, 251);
}

.mc-view-all-results {
    color: #ea7351;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.mc-view-all-results:hover {
    color: #d65a32;
}

.mc-search-message {
    padding: 20px;
    text-align: center;
    color: rgb(107, 114, 128);
}

.mc-search-message i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.5;
    display: block;
}

.mc-search-message p {
    margin: 0;
    font-size: 14px;
}

/* Search Results Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Results Dropdown */
.mc-search-results {
    border: 1px solid rgb(229, 231, 235);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 99999; /* Below modal overlay but above header */
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.mc-search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgb(243, 244, 246);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(249, 250, 251);
}

.mc-search-results-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgb(36, 39, 42);
    margin: 0;
}

.mc-search-results-count {
    font-size: 12px;
    color: rgb(107, 114, 128);
    background: rgb(229, 231, 235);
    padding: 2px 8px;
    border-radius: 12px;
}

.mc-search-results-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgb(249, 250, 251);
}

.mc-search-results-item:hover {
    background: rgba(234, 115, 81, 0.1);
}

.mc-search-results-item:last-child {
    border-bottom: none;
}

.mc-search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.mc-search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-search-result-content {
    flex: 1;
    min-width: 0;
}

.mc-search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: rgb(36, 39, 42);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-search-result-subtitle {
    font-size: 12px;
    color: rgb(107, 114, 128);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-search-results-more {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid rgb(243, 244, 246);
    background: rgb(249, 250, 251);
}

.mc-view-all-results {
    color: #ea7351;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mc-view-all-results:hover {
    color: #d65a32;
    text-decoration: underline;
}

/* Highlighted search result styles */
.mc-highlighted {
    background-color: rgba(234, 115, 81, 0.2) !important;
    border: 2px solid rgba(234, 115, 81, 0.5) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.mc-highlighted td {
    background-color: rgba(234, 115, 81, 0.1) !important;
}

/* Ensure icons are visible */
.mc-top-header .mc-icon {
    display: inline-block ;
    visibility: visible ;
    opacity: 1 ;
    font-size: 18px;
    line-height: 1;
}

/* Screen reader only text for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix header button visibility */
.mc-top-header .mc-header-btn {
    display: flex ;
    visibility: visible ;
    opacity: 1 ;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 115, 81, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(234, 115, 81, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 115, 81, 0);
    }
}

.mc-top-header .mc-header-notifications {
    position: relative;
}

.mc-top-header .mc-dark-toggle {
    position: relative;
}

.mc-top-header .mc-notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    margin-left: -300px;
    padding-left: 16px;
    background: #fff;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 380px;
    max-width: 90vw;
    z-index: 99999; /* Below modal overlay but above header */
    overflow: hidden;
    animation: slideInDown 0.2s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mc-top-header .mc-notification-dropdown .mc-notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgb(243, 244, 246);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(249, 250, 251);
    border-radius: 12px 12px 0 0;
}

.mc-top-header .mc-notification-dropdown .mc-notification-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgb(36, 39, 42);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mc-top-header .mc-notification-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgb(203, 213, 225) transparent;
}

.mc-top-header .mc-notification-list::-webkit-scrollbar {
    width: 6px;
}

.mc-top-header .mc-notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.mc-top-header .mc-notification-list::-webkit-scrollbar-thumb {
    background-color: rgb(203, 213, 225);
    border-radius: 3px;
}

.mc-top-header .mc-notification-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.mc-top-header .mc-notification-item:hover {
    background-color: rgba(234, 115, 81, 0.05) !important;
}

/* Enhanced notification badge styles - consolidated */
.mc-top-header .mc-notification-btn .mc-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgb(239, 68, 68);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: 700;
    display: none; /* Start hidden by default */
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.2s ease;
    animation: badge-bounce 0.4s ease-out;
}

/* Dark mode notification badge override */
.dark .mc-top-header .mc-notification-btn .mc-notification-badge {
    background: linear-gradient(135deg, #ea7351 0%, #E03274 100%);
    border-color: #111827;
    box-shadow: 0 2px 8px rgba(234, 115, 81, 0.4);
}

/* Notification badge with count styling */
.mc-top-header .mc-notification-badge.has-count {
    background: rgb(239, 68, 68);
    min-width: 20px;
    padding: 0 4px;
}

/* Zero count state - hide badge */
.mc-top-header .mc-notification-badge.zero-count {
    display: none;
}

/* High count badge styling */
.mc-top-header .mc-notification-badge.high-count {
    min-width: 24px;
    font-size: 11px;
    padding: 0 6px;
}

/* Hide badge when empty or showing "0" - use JavaScript to add this class */
.mc-top-header .mc-notification-badge.hidden-when-empty {
    display: none !important;
}

/* Consistent responsive notification dropdown - admin UI */
@media (min-width: 769px) {
    .mc-top-header .mc-notification-dropdown {
        width: 320px;
        right: -10px;
    }

    .mc-top-header .mc-notification-list {
        max-height: 300px;
    }
}

@media (max-width: 769px) {
    .mc-top-header .mc-notification-dropdown {
        width: 320px;
        right: -10px;
    }

    .mc-top-header .mc-notification-list {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .mc-top-header .mc-notification-dropdown {
        width: 320px;
        right: -10px;
        left: auto;
        transform: none;
    }

    .mc-top-header .mc-profile-dropdown {
        width: 280px;
        right: -10px;
        left: auto;
    }
}

/* Keep profile dropdown J-shaped below 481px instead of centering */
@media (max-width: 481px) {
    .mc-top-header .mc-profile-dropdown {
        left: auto !important;
        right: 0 !important;
        width: 280px !important;
    }

    .mc-top-header .mc-notification-dropdown {
        left: auto !important;
        right: 0 !important;
        margin-left: 0 !important;
        width: 320px !important;
        padding-left: 0 !important;
    }
}

.mc-top-header .mc-header-profile {
    position: relative;
}



.mc-top-header .mc-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mc-top-header .mc-profile-btn:hover {
    background: rgba(234, 115, 81, 0.1) ;
    transition: all 0.2s ease;
}

.mc-top-header .mc-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mc-top-header .mc-profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.mc-top-header .mc-profile-name {
    font-size: 14px;
    font-weight: 500;
    color: rgb(36, 39, 42);
    line-height: 1.2;
}

.mc-top-header .mc-profile-status {
    font-size: 12px;
    color: rgb(34, 197, 94);
    line-height: 1.2;
}

.mc-top-header .mc-profile-status.mc-online {
    color: rgb(34, 197, 94);
}

.mc-top-header .mc-profile-status.mc-offline {
    color: rgb(107, 114, 128);
}

.mc-top-header .mc-profile-btn .mc-icon {
    font-size: 16px;
    color: rgb(107, 114, 128);
}

.mc-top-header .mc-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 280px;
    z-index: 99999; /* Below modal overlay but above header */
    overflow: hidden;
}

.mc-top-header .mc-profile-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid rgb(243, 244, 246);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mc-top-header .mc-profile-dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.mc-top-header .mc-profile-dropdown-name {
    font-size: 16px;
    font-weight: 600;
    color: rgb(36, 39, 42);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.mc-top-header .mc-profile-dropdown-email {
    font-size: 14px;
    color: rgb(107, 114, 128);
    margin: 0;
    line-height: 1.2;
}

.mc-top-header .mc-profile-dropdown-menu {
    padding: 8px 0;
}

.mc-top-header .mc-profile-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    color: rgb(36, 39, 42) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: background 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
}

.mc-top-header .mc-profile-menu-item:hover {
    background: rgba(234, 115, 81, 0.1) ;
    color: #ea7351 ;
    transition: all 0.2s ease;
}

.mc-top-header .mc-profile-menu-item .mc-icon {
    font-size: 16px !important;
    color: rgb(107, 114, 128) !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Status toggle styles */
.mc-top-header .mc-status-toggle .mc-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.mc-top-header .mc-status-indicator.mc-online {
    background-color: rgb(34, 197, 94);
    color: rgb(34, 197, 94);
}

.mc-top-header .mc-status-indicator.mc-offline {
    background-color: rgb(107, 114, 128);
    color: rgb(107, 114, 128);
}

/* Dark mode toggle icon and dropdown */
.mc-top-header .mc-dark-toggle {
    position: relative;
}

.mc-top-header .mc-dark-toggle-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 320px;
    z-index: 100;
    overflow: hidden;
}

.mc-top-header .mc-dark-toggle-dropdown .mc-toggle-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgb(243, 244, 246);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-top-header .mc-dark-toggle-dropdown .mc-toggle-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgb(36, 39, 42);
    margin: 0;
}

.mc-top-header .mc-dark-toggle-dropdown .mc-toggle-count {
    font-size: 12px;
    color: rgb(107, 114, 128);
    background: rgb(243, 244, 246);
    padding: 4px 8px;
    border-radius: 12px;
}

.mc-top-header .mc-toggle-list {
    max-height: 300px;
    overflow-y: auto;
}

.mc-top-header .mc-toggle-item {
    padding: 12px 20px;
}

/* Mobile menu toggle styles */
.mc-app-menu-toggle {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    color: rgb(107, 114, 128);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: none; /* Hidden by default */
}

@media (max-width: 1279px) {
    .mc-app-menu-toggle {
        display: flex; /* Shown on mobile */
    }
}

.mc-app-menu-toggle:hover {
    background: rgba(234, 115, 81, 0.1);
    color: #ea7351;
    border-color: #ea7351;
    transition: all 0.2s ease;
}

/* Mobile menu items */
.mc-top-header .mc-mobile-menu {
    display: none;
    padding: 15px 24px;
    border-top: 1px solid rgb(229, 231, 235);
    background: #fff;
}

.mc-top-header .mc-mobile-menu.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dark mode mobile menu */
.dark .mc-top-header .mc-mobile-menu {
    background: #111827;
    border-top-color: #374151;
}

/* Mobile responsive behavior */
@media (max-width: 1279px) {
    /* Hide desktop-only elements in the header */
    .mc-top-header .mc-header-center,
    .mc-top-header .mc-header-right .mc-dark-toggle,
    .mc-top-header .mc-header-right .mc-header-notifications,
    .mc-top-header > .mc-header-content > .mc-header-profile {
        display: none !important;
    }




    /* Mobile menu visibility */
    .mc-top-header .mc-mobile-menu {
        display: none;
    }

    .mc-top-header .mc-mobile-menu.active {
        display: flex !important;
    }

    /* FORCE SHOW mobile menu components when menu is active */
    .mc-top-header .mc-mobile-menu.active .mc-dark-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mc-top-header .mc-mobile-menu.active .mc-notification-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ensure mobile menu profile is specifically visible */
    .mc-top-header .mc-mobile-menu.active .mc-header-profile {
        display: block !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1 !important;
        transform: none !important;
        clip: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        contain: none !important;
        content-visibility: visible !important;
    }

    /* Nuclear specificity for mobile menu profile visibility */
    html body .mc-top-header .mc-mobile-menu.active .mc-header-profile,
    html .mc-top-header .mc-mobile-menu.active .mc-header-profile,
    body .mc-top-header .mc-mobile-menu.active .mc-header-profile,
    .mc-top-header .mc-mobile-menu.active .mc-header-profile.mc-header-profile {
        display: block !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important;
        transform: none !important;
        clip: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        contain: none !important;
        content-visibility: visible !important;
    }

    /* Ensure mobile search is always visible in mobile menu */
    .mc-top-header .mc-mobile-menu .mc-header-search {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mc-top-header .mc-header-search .mc-search-input {
        width: 100%;
        min-width: 200px;
    }

    /* Additional mobile menu styling */
    .mc-top-header .mc-mobile-menu .mc-dark-toggle,
    .mc-top-header .mc-mobile-menu .mc-notification-btn,
    .mc-top-header .mc-mobile-menu .mc-header-profile {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Ensure mobile menu has proper spacing */
    .mc-top-header .mc-mobile-menu > div {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Ensure both mobile menu sections are visible */
    .mc-top-header .mc-mobile-menu > div:first-child,
    .mc-top-header .mc-mobile-menu > div:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (min-width: 1280px) {
    .mc-top-header .mc-app-menu-toggle {
        display: none !important;
    }

    .mc-top-header .mc-mobile-menu {
        display: none !important;
    }

    /* Ensure desktop components are visible */
    .mc-top-header .mc-header-center {
        display: flex !important;
    }

    .mc-top-header .mc-dark-toggle {
        display: flex !important;
    }

    .mc-top-header .mc-notification-btn {
        display: flex !important;
    }

    .mc-top-header .mc-header-profile {
        display: block !important;
    }
}

/* Shadow theme for mobile menu */
.shadow-theme-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dark mode shadow theme */
.dark .shadow-theme-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Additional responsive fixes for mobile */
@media (max-width: 768px) {
    .mc-top-header .mc-header-content {
        padding: 0 16px;
    }
    
    .mc-top-header .mc-header-search .mc-search-input {
        min-width: 150px;
    }
    
    .mc-top-header .mc-notification-dropdown {
        width: 300px;
    }
    
    .mc-top-header .mc-profile-dropdown {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .mc-top-header .mc-header-content {
        padding: 0 12px;
    }
    
    .mc-top-header .mc-header-btn {
        width: 40px;
        height: 40px;
    }
    
    .mc-top-header .mc-notification-dropdown {
        width: 90vw;
        right: -10px;
    }
    
    .mc-top-header .mc-profile-dropdown {
        width: 90vw;
        right: -10px;
    }
}

.mc-top-header .mc-toggle-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgb(249, 250, 251);
    transition: background 0.2s ease;
}

.mc-top-header .mc-toggle-item:hover {
    background: rgba(234, 115, 81, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mc-top-header .mc-toggle-item:last-child {
    border-bottom: none;
}

.mc-top-header .mc-toggle-text {
    font-size: 14px;
    color: rgb(36, 39, 42);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.mc-top-header .mc-toggle-description {
    font-size: 12px;
    color: rgb(107, 114, 128);
}

.mc-top-header .mc-toggle-footer {
    padding: 12px 20px;
    border-top: 1px solid rgb(243, 244, 246);
    text-align: center;
}

.mc-top-header .mc-toggle-view-all {
    display: block;
    text-align: center;
    color: #ea7351;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mc-top-header .mc-toggle-view-all:hover {
    color: #d65a32;
    text-decoration: underline;
}


/* Notification icon */
.mc-top-header .mc-notification-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .mc-top-header .mc-header-content {
        padding: 0 16px;
        height: 56px;
    }

    .mc-top-header .mc-header-content .mc-header-search {
        display: none;
    }

    .mc-top-header .mc-header-right {
        gap: 8px;
    }

    .mc-top-header .mc-profile-btn .mc-profile-info {
        display: none;
    }

}

@media (max-width: 480px) {
    .mc-top-header .mc-header-left .mc-header-title {
        font-size: 20px;
    }

    .mc-top-header .mc-notification-dropdown,
    .mc-top-header .mc-profile-dropdown {
        width: calc(100vw - 32px);
        left: 16px;
        right: 16px;
    }
}

/* Adjust main content to account for header */
.mc-admin main {
    padding-top: 0;
}

.mc-admin .mc-header + .mc-top-header + main {
    margin-top: 0;
}

/* Aggressive fix for potential text rendering from SVGs */
.menu-item svg {
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden; /* Ensure no overflow */
}

/* Reset font-size for the actual menu text */
.menu-item-text {
    font-size: 14px; /* Or whatever the intended font-size is */
    line-height: normal;
}

/* Search result highlighting */
.mc-highlighted {
    background-color: rgba(234, 115, 81, 0.1) !important;
    border: 2px solid rgba(234, 115, 81, 0.3) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.mc-setting.mc-highlighted {
    background-color: rgba(234, 115, 81, 0.05) !important;
    border-left: 4px solid #ea7351 !important;
    padding-left: 16px !important;
}

/* =================================================================== */
/* DARK MODE ENHANCEMENTS WITH MASI CHAT BRAND COLORS */
/* =================================================================== */

/* Dark mode base header styling */
.dark .mc-top-header {
    background: #111827;
    border-bottom-color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dark mode header text */
.dark .mc-top-header .mc-header-left .mc-header-title {
    color: #ffffff;
}



/* Dark mode search input */
.dark .mc-top-header .mc-header-search .mc-search-input {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

/* Remove hover effects completely for search input in dark mode */
html body .dark .mc-top-header .mc-header-search .mc-search-input:hover,
html .dark .mc-top-header .mc-header-search .mc-search-input:hover,
body .dark .mc-top-header .mc-header-search .mc-search-input:hover,
.dark .mc-top-header .mc-header-search .mc-search-input:hover,
html body .dark .mc-top-header .mc-header-search .mc-search-input:focus,
html .dark .mc-top-header .mc-header-search .mc-search-input:focus,
body .dark .mc-top-header .mc-header-search .mc-search-input:focus,
.dark .mc-top-header .mc-header-search .mc-search-input:focus {
    background: #374151 !important;
    border-color: #4b5563 !important;
    box-shadow: none !important;
}

.dark .mc-top-header .mc-header-search .mc-search-input:focus {
    border-color: #ea7351;
    background: #1f2937;
    box-shadow: 0 0 0 3px rgba(234, 115, 81, 0.2);
}

.dark .mc-top-header .mc-header-search .mc-search-input::placeholder {
    color: #9ca3af;
}

.dark .mc-top-header .mc-header-search .mc-icon {
    color: #9ca3af;
}

/* Dark mode sidebar toggle */
.dark .mc-sidebar-toggle {
    color: #9ca3af;
}

.dark .mc-sidebar-toggle:hover {
    background: rgba(234, 115, 81, 0.15);
    color: #ea7351;
}

/* Dark mode header buttons */
.dark .mc-top-header .mc-header-btn {
    color: #9ca3af;
}

.dark .mc-top-header .mc-header-btn:hover {
    background: rgba(234, 115, 81, 0.15);
    color: #ea7351;
    border-color: #ea7351;
}

/* Dark mode notification dropdown */
.dark .mc-top-header .mc-notification-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dark .mc-top-header .mc-notification-dropdown .mc-notification-header {
    border-bottom-color: #374151;
    background: #111827;
}

.dark .mc-top-header .mc-notification-dropdown .mc-notification-header h3 {
    color: #ffffff;
}

.dark .mc-top-header .mc-notification-count {
    background: #374151;
    color: #d1d5db;
}

.dark .mc-top-header .mc-notification-item {
    border-bottom-color: #374151;
}

.dark .mc-top-header .mc-notification-item:hover {
    background: rgba(234, 115, 81, 0.15);
}

.dark .mc-top-header .mc-notification-text {
    color: #e5e7eb;
}

.dark .mc-top-header .mc-notification-time {
    color: #9ca3af;
}

.dark .mc-top-header .mc-notification-footer {
    border-top-color: #374151;
    background: #111827;
}

.dark .mc-top-header .mc-view-all:hover {
    color: #d65a32;
}

/* Dark mode profile dropdown */
.dark .mc-top-header .mc-profile-dropdown {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dark .mc-top-header .mc-profile-dropdown-header {
    border-bottom-color: #374151;
}

.dark .mc-top-header .mc-profile-dropdown-name {
    color: #d1d5db !important;
}

.dark .mc-top-header .mc-profile-dropdown-email {
    color: #9ca3af !important;
}

.dark .mc-top-header .mc-profile-menu-item {
    color: #d1d5db !important;
}

.dark .mc-top-header .mc-profile-menu-item:hover {
    background: rgba(234, 115, 81, 0.15) !important;
    color: #ea7351 !important;
}

.dark .mc-top-header .mc-profile-menu-item .mc-icon {
    color: #9ca3af !important;
}

.dark .mc-top-header .mc-profile-btn {
    color: #e5e7eb;
}

.dark .mc-top-header .mc-profile-btn:hover {
    background: rgba(234, 115, 81, 0.15);
}

.dark .mc-top-header .mc-profile-name {
    color: #ffffff;
}

.dark .mc-top-header .mc-profile-btn .mc-icon {
    color: #9ca3af;
}

/* Dark mode search results */
.dark .mc-header-search-results {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dark .mc-search-results-header {
    background: #111827;
    border-bottom-color: #374151;
}

.dark .mc-search-results-header h4 {
    color: #ffffff;
}

.dark .mc-search-results-count {
    background: #374151;
    color: #d1d5db;
}

.dark .mc-search-results-item {
    border-bottom-color: #374151;
}

.dark .mc-search-results-item:hover {
    background: rgba(234, 115, 81, 0.15);
}

.dark .mc-search-result-title {
    color: #ffffff;
}

.dark .mc-search-result-subtitle {
    color: #9ca3af;
}

.dark .mc-search-results-more {
    background: #111827;
    border-top-color: #374151;
}

.dark .mc-view-all-results:hover {
    color: #d65a32;
}

.dark .mc-search-message {
    color: #9ca3af;
}

/* Dark mode highlighted search results */
.dark .mc-highlighted {
    background-color: rgba(234, 115, 81, 0.2) !important;
    border: 2px solid rgba(234, 115, 81, 0.5) !important;
}

.dark .mc-setting.mc-highlighted {
    background-color: rgba(234, 115, 81, 0.1) !important;
    border-left: 4px solid #ea7351 !important;
}

/* Enhanced Dark Mode Toggle Ripple Effect */
.mc-top-header .mc-dark-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(234, 115, 81, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.mc-top-header .mc-dark-toggle:active::before {
    width: 60px;
    height: 60px;
}

/* Gradient enhancement for dark mode toggle */
.mc-top-header .mc-dark-toggle.mc-active {
    background: linear-gradient(135deg, #ea7351 0%, #E03274 100%);
    color: #ffffff;
    border-color: transparent;
}

.mc-top-header .mc-dark-toggle.mc-active:hover {
    background: linear-gradient(135deg, #d65a32 0%, #c42863 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(234, 115, 81, 0.4);
}

/* Status indicator enhancements */
.dark .mc-top-header .mc-status-indicator.mc-online {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.dark .mc-top-header .mc-status-indicator.mc-offline {
    background-color: #6b7280;
}

/* Enhanced notification badge for dark mode */
.dark .mc-top-header .mc-notification-btn .mc-notification-badge {
    background: linear-gradient(135deg, #ea7351 0%, #E03274 100%);
    border-color: #111827;
    box-shadow: 0 2px 8px rgba(234, 115, 81, 0.4);
}

/* Smooth transitions for all dark mode elements */
.mc-top-header * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode responsive adjustments */
@media (max-width: 768px) {
    .dark .mc-top-header .mc-dark-toggle {
        width: 40px;
        height: 40px;
    }

    /* Mobile dark mode toggle inherits from desktop rules */
}

/* Print styles for dark mode */
@media print {
    .dark .mc-top-header .mc-dark-toggle {
        display: none !important;
    }
}
.mc-top-header .mc-profile-btn .mc-dropdown-indicator {
    color: rgb(107, 114, 128);
    transition: transform 0.2s ease;
}

.mc-top-header .mc-profile-btn[aria-expanded="true"] .mc-dropdown-indicator {
    transform: rotate(180deg);
}

.mc-profile-dropdown-menu .mc-profile-menu-item svg {
    width: 16px !important;
    height: 16px !important;
    margin-right: 0 !important;
    color: rgb(107, 114, 128) !important;
    flex-shrink: 0 !important;
    fill: currentColor !important;
}

/* Ensure sidebar menu text/labels are visible on all devices */
.sidebar .menu-item .menu-item-text {
    display: inline-block !important;
    font-size: 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive fixes for sidebar menu items and labels */
@media (max-width: 1279px) {
    .sidebar .menu-item .menu-item-text {
        display: inline-block !important;
        font-size: 14px !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: auto !important;
        max-width: none !important;
    }

    .sidebar .menu-item {
        justify-content: flex-start !important;
        padding-left: 16px !important;
    }

    /* Ensure submenu text is visible */
    .sidebar .menu-item-flyout .submenu .menu-item .menu-item-text {
        display: inline-block !important;
        font-size: 13px !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding-left: 8px !important;
    }
}

/* Tablet specific fixes */
@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar .menu-item .menu-item-text {
        display: inline-block !important;
        font-size: 14px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar .menu-item-flyout .submenu .menu-item .menu-item-text {
        display: inline-block !important;
        font-size: 13px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    .sidebar .menu-item .menu-item-text {
        display: inline-block !important;
        font-size: 14px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar .menu-item-flyout .submenu .menu-item .menu-item-text {
        display: inline-block !important;
        font-size: 13px !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding-left: 24px !important;
    }
}

/* Nuclear specificity fix for any hidden menu text */
html body .sidebar .menu-item .menu-item-text,
html .sidebar .menu-item .menu-item-text,
body .sidebar .menu-item .menu-item-text,
.sidebar .menu-item .menu-item-text {
    display: inline-block !important;
    font-size: 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
    content: "" !important;
    clip: auto !important;
    overflow: visible !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 8px !important;
}

/* Ensure submenu items are also visible */
html body .sidebar .menu-item-flyout .submenu .menu-item .menu-item-text,
html .sidebar .menu-item-flyout .submenu .menu-item .menu-item-text,
body .sidebar .menu-item-flyout .submenu .menu-item .menu-item-text,
.sidebar .menu-item-flyout .submenu .menu-item .menu-item-text {
    display: inline-block !important;
    font-size: 13px !important;
    visibility: visible !important;
    opacity: 1 !important;
    content: "" !important;
    clip: auto !important;
    overflow: visible !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 8px 0 24px !important;
}



/* -------------------------------------------------------------------
 * BORDER REMOVAL FOR HEADER BUTTONS IN DARK MODE
 * -------------------------------------------------------------------
 */
html.dark body div.mc-main.mc-admin.mc-cloud header div.mc-header-content div.mc-header-right > div > button,
html.dark body div.mc-main.mc-admin.mc-cloud header div.mc-header-content div.mc-header-left > button {
    border: none !important;
}

/* -------------------------------------------------------------------
 * CRITICAL MC-HEADER-CENTER DARK MODE FIX
 * -------------------------------------------------------------------
 */
html.dark body .mc-top-header .mc-header-content .mc-header-center {
    background-color: #111827 !important; /* gray-900 */
}
