.profile-icon {
    padding: 6px;
    background: #30c78d;
    border-radius: 100%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    margin: 0 auto !important;
}


.profile-icon-md {
    padding: 10px;
    background: #30c78d;
    border-radius: 100%;
    width: 70px;
    height: 70px;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    margin: 0 auto !important;
}


/* ============================================================
   SIDEBAR REDESIGN — sh- Design System
   ============================================================ */

/* --- Sidebar Container --- */
#sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e8ecf1 !important;
    box-shadow: none !important;
}

/* --- Sidebar Header / Brand --- */
.sh-sidebar-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f2f5 !important;
    padding: 0 20px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

.sh-sidebar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    text-decoration: none !important;
    color: #111827 !important;
}
.sh-sidebar-brand:hover {
    text-decoration: none !important;
    color: #111827 !important;
}

.sh-sidebar-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 7px;
    letter-spacing: -0.5px;
}

.sh-sidebar-brand-text {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

.sh-sidebar-version {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    margin-left: 4px;
    position: relative;
    top: -1px;
}

/* --- Sidebar Nav Area --- */
.sh-sidebar-nav {
    padding: 10px 10px !important;
}

/* --- Override OneUI nav-main base styles --- */
#sidebar .nav-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Menu Item --- */
#sidebar .nav-main-item {
    margin-bottom: 1px;
}

/* --- Menu Link --- */
#sidebar .nav-main-link {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    color: #4b5563 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    background: transparent !important;
    border-left: 3px solid transparent !important;
    margin: 0 !important;
}

#sidebar .nav-main-link:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

/* --- Active State --- */
#sidebar .nav-main-link.active {
    background: #eff1ff !important;
    color: #4f46e5 !important;
    border-left-color: #6366f1 !important;
    font-weight: 600 !important;
}

/* --- Icon --- */
#sidebar .nav-main-link-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 14px !important;
    color: #9ca3af !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    transition: color 0.15s ease !important;
}

#sidebar .nav-main-link:hover .nav-main-link-icon {
    color: #6b7280 !important;
}

#sidebar .nav-main-link.active .nav-main-link-icon {
    color: #6366f1 !important;
}

/* --- Menu Link Name --- */
#sidebar .nav-main-link-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.4 !important;
}

/* --- Submenu Indicator Arrow --- */
#sidebar .nav-main-link-submenu::after {
    border-left-color: #d1d5db !important;
    opacity: 0.6 !important;
    right: 12px !important;
}

#sidebar .nav-main-link-submenu:hover::after {
    border-left-color: #9ca3af !important;
    opacity: 1 !important;
}

#sidebar .open > .nav-main-link-submenu::after {
    border-left-color: #6366f1 !important;
    opacity: 1 !important;
}

/* --- Submenu Container --- */
#sidebar .nav-main-submenu {
    padding: 2px 0 4px 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* --- Submenu Item Link --- */
#sidebar .nav-main-submenu .nav-main-link {
    padding: 7px 12px 7px 44px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    border-radius: 6px !important;
    border-left: 3px solid transparent !important;
}

#sidebar .nav-main-submenu .nav-main-link::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d1d5db;
    margin-right: 10px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

#sidebar .nav-main-submenu .nav-main-link:hover {
    background: #f9fafb !important;
    color: #374151 !important;
}
#sidebar .nav-main-submenu .nav-main-link:hover::before {
    background: #9ca3af;
}

#sidebar .nav-main-submenu .nav-main-link.active {
    background: #f5f3ff !important;
    color: #4f46e5 !important;
    font-weight: 500 !important;
    border-left-color: transparent !important;
}
#sidebar .nav-main-submenu .nav-main-link.active::before {
    background: #6366f1;
}

/* --- OneUI Sidebar Override for Light Theme --- */
#sidebar .content-header {
    background: transparent !important;
}

/* --- Mini Sidebar (collapsed) Overrides --- */
.smini-visible .sh-sidebar-brand-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

/* --- Sidebar scrollbar --- */
#sidebar .js-sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
#sidebar .js-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
#sidebar .js-sidebar-scroll::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}
#sidebar .js-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* --- Sidebar overlay on mobile --- */
@media (max-width: 991.98px) {
    #sidebar {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08) !important;
    }
}

/* --- Remove OneUI's default sidebar dark backgrounds --- */
#sidebar,
#sidebar .content-side,
#sidebar .js-sidebar-scroll {
    background: #ffffff !important;
}

/* --- Fix OneUI sidebar link focus outline --- */
#sidebar .nav-main-link:focus {
    outline: none !important;
    box-shadow: none !important;
}


/* ============================================================
   HEADER REDESIGN — sh- Design System
   ============================================================ */

/* --- Header Container Override --- */
#page-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e8ecf1 !important;
    box-shadow: none !important;
}

.sh-header {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Override OneUI's default header height */
#page-header > .content-header {
    height: 48px !important;
    min-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Adjust main container to account for smaller header */
.page-header-fixed #main-container {
    padding-top: 48px !important;
}
.page-header-fixed #page-header {
    height: 48px !important;
}

/* Make sidebar header match the shorter header */
.page-header-fixed #sidebar .content-header {
    height: 48px !important;
    min-height: 48px !important;
}

/* --- Role Badge --- */
.sh-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #6366f1;
    background: #eff1ff;
    border-radius: 6px;
    letter-spacing: 0.01em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.15s ease;
    line-height: 1.5;
}
.sh-role-badge:hover {
    background: #e0e2ff;
    color: #4f46e5;
}

/* --- Environment Badge (non-production indicator) --- */
.sh-env-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 5px;
    margin-left: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    user-select: none;
}

/* --- Header Icon Button --- */
.sh-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    position: relative;
}
.sh-header-btn:hover {
    background: #f3f4f6;
    color: #374151;
}
.sh-header-btn:focus {
    outline: none;
}

/* --- Header Divider --- */
.sh-header-divider {
    width: 1px;
    height: 20px;
    background: #e8ecf1;
    margin: 0 8px;
}

/* --- User Button --- */
.sh-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sh-user-btn:hover {
    background: #f3f4f6;
}
.sh-user-btn:focus {
    outline: none;
}

.sh-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.sh-user-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sh-user-chevron {
    font-size: 11px;
    color: #9ca3af;
}


/* ============================================================
   DROPDOWN REDESIGN — sh- Design System
   ============================================================ */

.sh-dropdown {
    border: 1px solid #e8ecf1 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
    margin-top: 6px !important;
}

/* --- Notification Dropdown --- */
.sh-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #ffffff;
}

.sh-dropdown-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sh-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
    text-align: center;
}
.sh-dropdown-footer a {
    font-size: 12.5px;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
}
.sh-dropdown-footer a:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* --- User Dropdown --- */
.sh-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfc;
}

.sh-user-dropdown-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.sh-user-dropdown-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
}

.sh-user-dropdown-role {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.3;
    margin-top: 1px;
}

.sh-user-dropdown-body {
    padding: 6px;
}

.sh-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.12s ease;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
}
.sh-user-dropdown-item i {
    font-size: 13px;
    color: #9ca3af;
    width: 16px;
    text-align: center;
}
.sh-user-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}
.sh-user-dropdown-item:hover i {
    color: #6b7280;
}

.sh-user-dropdown-item--danger {
    color: #dc2626;
}
.sh-user-dropdown-item--danger i {
    color: #f87171;
}
.sh-user-dropdown-item--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.sh-user-dropdown-divider {
    height: 1px;
    background: #f0f2f5;
    margin: 4px 8px;
}


/* ============================================================
   BREADCRUMB / PAGE HEADER — Compact Redesign
   ============================================================ */

/* Override the gray breadcrumb block that each page yields */
#main-container > .bg-body-light {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 0;
}

#main-container > .bg-body-light > .content-full {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Make the page title smaller and cleaner */
#main-container > .bg-body-light h1,
#main-container > .bg-body-light .h3 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
    letter-spacing: -0.2px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Make breadcrumb trail smaller and subtler */
#main-container > .bg-body-light .breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    background: transparent !important;
}

#main-container > .bg-body-light .breadcrumb-item {
    font-size: 12px !important;
    color: #9ca3af !important;
}

#main-container > .bg-body-light .breadcrumb-item a {
    color: #6b7280 !important;
    font-weight: 400 !important;
    font-size: 12px !important;
}

#main-container > .bg-body-light .breadcrumb-item a:hover {
    color: #4f46e5 !important;
}

/* Breadcrumb separators */
#main-container > .bg-body-light .breadcrumb-alt .breadcrumb-item + .breadcrumb-item::before {
    color: #d1d5db !important;
}

/* Reduce the content area top spacing to sit tight under breadcrumb */
#main-container > .content {
    padding-top: 20px !important;
}


/* ============================================================
   GENERAL GLOBAL REFINEMENTS
   ============================================================ */

/* Set Inter as base font globally */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Soften the hamburger/toggle buttons in header */
#page-header .btn-dual {
    color: #6b7280 !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
}
#page-header .btn-dual:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}
#page-header .btn-dual:focus {
    box-shadow: none !important;
}
