* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #09090b;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 248px;
    background: #17171a;
    border-right: none;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    transition: width 0.3s ease;
}

.sidebar.collapsed,
html.sidebar-collapsed .sidebar {
    width: 80px;
}

html.preload .sidebar,
html.preload .sidebar * {
    transition: none !important;
}

.sidebar.collapsed .nav-item,
html.sidebar-collapsed .sidebar .nav-item {
    justify-content: center;
    padding: 0.625rem 0.875rem;
    font-size: 0 !important;
    color: #b0b0b0 !important;
    margin: 0.15rem 0.75rem;
    width: calc(100% - 1.5rem);
    gap: 0 !important;
}

body:not(.light-theme) .sidebar.collapsed .nav-item:hover,
body:not(.light-theme) .sidebar.collapsed .nav-item.active,
body:not(.light-theme) .sidebar.collapsed .category-header:hover,
body:not(.light-theme) html.sidebar-collapsed .sidebar .nav-item:hover,
body:not(.light-theme) html.sidebar-collapsed .sidebar .nav-item.active,
body:not(.light-theme) html.sidebar-collapsed .sidebar .category-header:hover {
    color: #ffffff !important;
}

.light-theme .sidebar.collapsed .nav-item:hover,
.light-theme .sidebar.collapsed .nav-item.active,
.light-theme .sidebar.collapsed .category-header:hover {
    color: #1a1a1a !important;
}

.sidebar.collapsed .nav-item svg,
.sidebar.collapsed .nav-item .nav-icon,
.sidebar.collapsed .nav-item .sub-icon,
html.sidebar-collapsed .sidebar .nav-item svg,
html.sidebar-collapsed .sidebar .nav-item .nav-icon,
html.sidebar-collapsed .sidebar .nav-item .sub-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    color: inherit !important;
    fill: none !important;
    stroke: currentColor !important;
    margin: 0 auto !important;
}

.sidebar.collapsed .nav-item:not(.subcategory-item),
html.sidebar-collapsed .sidebar .nav-item:not(.subcategory-item) {
    font-size: 0;
    color: inherit;
}

.sidebar.collapsed .category-header,
html.sidebar-collapsed .sidebar .category-header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 0.625rem;
}

.sidebar.collapsed .category-header span,
html.sidebar-collapsed .sidebar .category-header span {
    display: none !important;
    visibility: hidden !important;
}

.sidebar.collapsed .sidebar-projects,
.sidebar.collapsed .sidebar-footer,
html.sidebar-collapsed .sidebar .sidebar-projects,
html.sidebar-collapsed .sidebar .sidebar-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.sidebar.collapsed .category-arrow,
html.sidebar-collapsed .sidebar .category-arrow {
    display: block !important;
    position: absolute;
    top: 50%;
    right: -0.4rem;
    left: auto;
    bottom: auto;
    margin: 0 !important;
    transform: translateY(-50%);
}

.sidebar.collapsed .category-arrow.rotated,
html.sidebar-collapsed .sidebar .category-arrow.rotated {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar.collapsed .subcategory-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.sidebar.collapsed .subcategory-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
    margin: 0;
}

.sidebar.collapsed .subcategory-menu:not(.expanded) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.sidebar.collapsed .subcategory-menu.expanded {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0;
    margin: 0;
}

.sidebar.collapsed .user-profile-box {
    justify-content: center;
    padding: 0.5rem;
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .dropdown-arrow {
    display: none !important;
    visibility: hidden !important;
}

.sidebar.collapsed .user-info,
.sidebar.collapsed .dropdown-arrow,
html.sidebar-collapsed .sidebar .user-info,
html.sidebar-collapsed .sidebar .dropdown-arrow {
    display: none !important;
    visibility: hidden !important;
}

.sidebar.collapsed .dropdown-menu {
    width: 260px;
    left: 0;
    right: auto;
}

html.widgets-expanded .sidebar #widgets-submenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

html.widgets-collapsed .sidebar #widgets-submenu,
html.overlays-collapsed .sidebar #overlays-submenu,
html.chatoverlay-collapsed .sidebar #chatoverlay-submenu {
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

html.overlays-expanded .sidebar #overlays-submenu,
html.chatoverlay-expanded .sidebar #chatoverlay-submenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
}

html.overlays-expanded .sidebar .nav-category:first-of-type .category-arrow {
    transform: translateX(-50%) rotate(180deg);
}

.sidebar:not(.collapsed) .category-arrow {
    position: absolute;
    right: 0.875rem;
    margin: 0;
    transform: none;
}

.sidebar:not(.collapsed) .category-header {
    position: relative;
    padding-right: 2.5rem;
}

.sidebar:not(.collapsed) .category-arrow.rotated {
    transform: rotate(180deg);
}



.sidebar:not(.collapsed) .subcategory-menu.expanded .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar:not(.collapsed) .subcategory-menu.expanded .nav-item span {
    display: inline;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #4a4a4a;
    margin-top: auto;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-align: center;
}

.copyright-text {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.sidebar-projects {
    padding: 1rem 1.5rem;
}

.projects-title {
    font-size: 0.85rem;
    color: #888;
    text-align: left;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.project-box {
    display: block;
    background: #262626;
    border: 1px solid #4a4a4a;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.project-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #5a5a5a;
}

.project-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.project-name {
    background: url('https://cdn.7tv.app/paint/01HBXZS5680009NC1Q0NCNE82C/layer/01JAMR2BPQYF8Y2KQZF5Q6BDXR/4x.avif');
    background-size: cover;
    background-position: center;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 0.95rem;
}

.external-link-icon {
    width: 16px;
    height: 16px;
    color: #888;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.project-box:hover .external-link-icon {
    opacity: 1;
}

.user-profile {
    padding: 0.75rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.user-profile-box {
    background: #1e1e23;
    border: 1px solid #303038;
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
    height: 48px;
}

.user-profile-box:hover {
    background: #24242b;
    border-color: #42424d;
}

.user-paint-indicator {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #262626;
    background: #333;
    z-index: 1;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2a2a2a;
    object-fit: cover;
    border: none;
}

.user-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #888;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e23;
    border: 1px solid #363640;
    border-radius: 10px;
    margin-top: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.7rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #303038;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #292930;
}

.dropdown-item.selected {
    background: #27272e;
}

.dropdown-item.admin-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin: 0.5rem;
    border-radius: 8px;
}

.dropdown-item.admin-warning:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.dropdown-item.admin-warning span {
    color: #ef4444;
    font-weight: 600;
}

.dropdown-item-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2a2a2a;
    object-fit: cover;
}

.dropdown-item-info {
    flex: 1;
}

.dropdown-item-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.dropdown-item-info p {
    font-size: 0.75rem;
    color: #888;
}

.checkmark {
    color: #6b7280;
    font-size: 1.2rem;
}

.logout-icon {
    width: 18px;
    height: 18px;
    color: #888;
}

.dropdown-item.logout-action {
    color: #fb7185;
    border-bottom: 0;
}

.dropdown-item.logout-action .logout-icon,
.dropdown-item.logout-action span {
    color: #fb7185;
}

.dropdown-item.logout-action:hover {
    background: rgba(244, 63, 94, 0.12);
    color: #fecdd3;
}

.dropdown-item.logout-action:hover .logout-icon,
.dropdown-item.logout-action:hover span {
    color: #fecdd3;
}

.nav-menu {
    flex: 1;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar-bottom-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.admin-nav-link {
    color: #d8b4fe;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: #f3e8ff;
    background: rgba(168, 85, 247, 0.14);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.625rem 0.875rem;
    color: #a5a5b0;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0.15rem 0.75rem;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background: #25252c;
    color: #ffffff;
}

.nav-item.active {
    background: #303039;
    color: #ffffff;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-category {
    margin: 0.1rem 0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-header:hover {
    background: #25252c;
    color: #ffffff;
}

.category-header:active {
    background: #303039;
    transform: translateY(1px);
}

.category-header span {
    flex: 1;
}

.category-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #888;
}

.category-arrow.rotated {
    transform: rotate(180deg);
}


.subcategory-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: block;
}

.subcategory-menu.expanded {
    max-height: 500px;
}

.subcategory-item {
    padding: 0.55rem 0.75rem 0.55rem 2.75rem;
    margin: 0.1rem 0.75rem;
    border-radius: 7px;
    font-size: 0.8125rem;
    color: #92929e;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subcategory-item:hover {
    background: #25252c;
    color: #ffffff;
}

.chatoverlay-item {
    padding-left: 2.25rem;
    gap: 0.65rem;
}

.chatoverlay-logo {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex: 0 0 18px;
    object-fit: cover;
}

.chatoverlay-item span {
    flex: 1;
    min-width: 0;
}

.chatoverlay-link-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #7f7f89;
    margin-left: auto;
    transition: color 0.2s ease, transform 0.2s ease;
}

.chatoverlay-item:hover .chatoverlay-link-icon {
    color: currentColor;
    transform: translate(1px, -1px);
}

.sidebar.collapsed .chatoverlay-logo,
html.sidebar-collapsed .sidebar .chatoverlay-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 auto !important;
}

.sidebar.collapsed .chatoverlay-link-icon,
html.sidebar-collapsed .sidebar .chatoverlay-link-icon {
    display: none !important;
}

.sub-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background: #17171a;
}

.content-header {
    min-height: 64px;
    padding: 0.75rem 1.25rem;
    border-bottom: none;
    background: #17171a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
}

.content-header::before {
    display: none;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-left-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

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

.header-buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.header-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border: 1px solid transparent;
    background: transparent;
    color: #94949f;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    padding: 0;
}

.header-btn:hover {
    background: #28282f;
    border-color: #393943;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.header-btn:active {
    background: #32323a;
    transform: translateY(0);
}

.header-btn svg {
    width: 18px;
    height: 18px;
}

.header-btn span {
    display: none;
}


.page-separator {
    font-size: 1rem;
    font-weight: 700;
    color: #55555f;
    margin-right: 0.25rem;
}

.sidebar-toggle-icon {
    color: #f4f4f5;
    width: 20px;
    height: 20px;
}

.sidebar-toggle-icon:hover {
    color: #ffffff;
}

.current-page {
    font-size: 1rem;
    font-weight: 650;
    color: #f4f4f5;
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.breadcrumb-parent {
    color: #d4d4d8;
    font-size: 1rem;
    font-weight: 650;
}

.breadcrumb-separator {
    color: #686875;
    font-size: 0.95rem;
    font-weight: 600;
}

.header-logo {
    font-size: 1.625rem;
    font-weight: 700;
    background: url('https://cdn.7tv.app/paint/01J6M387YG0000HJTPW7AY3FZX/layer/01JAMR3EW9Q3R9765PKXM7M4S8/4x.avif');
    background-size: cover;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: center;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0;
}

.content-body {
    padding: 2rem;
    min-height: calc(100vh - 64px);
    background: #0f0f10;
    border-top-left-radius: 18px;
}

.footer-credit {
    padding: 1rem 1.5rem;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    border-top: 1px solid #4a4a4a;
}

.footer-credit a {
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: #9ca3af;
}

.twitch-icon-small, .link-icon-small {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f9fafb;
}

.page-header p {
    color: #888;
    font-size: 1rem;
}

.content-placeholder {
    background: rgba(74, 74, 74, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    color: #888;
    font-size: 1.1rem;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.05);
}

.light-theme {
    background: #ffffff;
    color: #1a1a1a;
}

.light-theme .sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.light-theme .main-content {
    background: #f8f9fa;
}

.light-theme .content-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.light-theme .content-body {
    background: #ffffff;
}

.light-theme .content-header::before {
    background: #e9ecef;
}

.light-theme .user-profile-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.light-theme .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.light-theme .dropdown-item:hover {
    background: #f8f9fa;
}

.light-theme .dropdown-item.selected {
    background: #f8f9fa;
}

.light-theme .nav-item:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.light-theme .nav-item.active {
    background: #e9ecef;
    color: #1a1a1a;
}

.light-theme .category-header:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.light-theme .category-header:active {
    background: #dee2e6;
}

.light-theme .project-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
}

.light-theme .project-box:hover {
    border-color: #dee2e6;
}

.light-theme .header-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #6c757d;
}

.light-theme .header-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

.light-theme .header-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

.light-theme .header-logo {
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
}


.light-theme .page-separator {
    color: #adb5bd;
}

.light-theme .sidebar-toggle-icon {
    color: #6c757d;
}

.light-theme .sidebar-toggle-icon:hover {
    color: #1a1a1a;
}

.light-theme .current-page {
    color: #6c757d;
}

.light-theme .sidebar-footer {
    border-top: 1px solid #e9ecef;
}

.light-theme .sidebar-projects {
    border-top: 1px solid #e9ecef;
}

.light-theme .sidebar.collapsed {
    width: 80px;
}

.light-theme .sidebar.collapsed .nav-item span,
.light-theme .sidebar.collapsed .user-info h3,
.light-theme .sidebar.collapsed .projects-title,
.light-theme .sidebar.collapsed .sidebar-projects,
.light-theme .sidebar.collapsed .sidebar-footer,
.light-theme .sidebar.collapsed .category-header span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.light-theme .sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.625rem 0.875rem;
}

.light-theme .sidebar.collapsed .category-header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    padding-bottom: 0.625rem;
}

.light-theme .sidebar.collapsed .sidebar-projects,
.light-theme .sidebar.collapsed .sidebar-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.light-theme .sidebar.collapsed .category-arrow {
    display: block !important;
    position: absolute;
    top: 50%;
    right: -0.4rem;
    left: auto;
    bottom: auto;
    margin: 0 !important;
    transform: translateY(-50%);
}

.light-theme .sidebar.collapsed .category-arrow.rotated {
    transform: translateY(-50%) rotate(180deg);
}

.light-theme .sidebar.collapsed .subcategory-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.light-theme .sidebar.collapsed .subcategory-menu.expanded {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 500px !important;
    overflow: visible !important;
    flex-direction: column;
    position: absolute;
    left: 80px;
    top: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.light-theme .sidebar:not(.collapsed) .subcategory-menu.expanded .nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.light-theme .sidebar:not(.collapsed) .subcategory-menu.expanded .nav-item span {
    display: inline;
}

.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.light-theme ::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme * {
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

html.light-theme body,
body.light-theme {
    background: #f4f6fb;
    color: #202633;
}

html.light-theme .sidebar,
body.light-theme .sidebar {
    background: #ffffff;
    border-right: 1px solid #dfe4ee;
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
}

html.light-theme .main-content,
body.light-theme .main-content,
html.light-theme .content-header,
body.light-theme .content-header {
    background: #f4f6fb;
}

html.light-theme .content-body,
body.light-theme .content-body {
    background: #eef2f8;
    border-top-left-radius: 18px;
}

html.light-theme .user-profile-box,
body.light-theme .user-profile-box,
html.light-theme .dropdown-menu,
body.light-theme .dropdown-menu {
    background: #ffffff;
    border-color: #dfe4ee;
    color: #202633;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

html.light-theme .user-profile-box:hover,
body.light-theme .user-profile-box:hover,
html.light-theme .dropdown-item:hover,
body.light-theme .dropdown-item:hover,
html.light-theme .dropdown-item.selected,
body.light-theme .dropdown-item.selected {
    background: #f2f5fa;
}

html.light-theme .dropdown-item,
body.light-theme .dropdown-item {
    border-color: #e7ebf3;
}

html.light-theme .dropdown-item-info p,
body.light-theme .dropdown-item-info p,
html.light-theme .dropdown-arrow,
body.light-theme .dropdown-arrow,
html.light-theme .category-arrow,
body.light-theme .category-arrow,
html.light-theme .chatoverlay-link-icon,
body.light-theme .chatoverlay-link-icon {
    color: #687386;
}

html.light-theme .nav-item,
body.light-theme .nav-item {
    color: #596579;
}

html.light-theme .nav-item:hover,
html.light-theme .category-header:hover,
body.light-theme .nav-item:hover,
body.light-theme .category-header:hover {
    background: #eef3fb;
    color: #172033;
}

html.light-theme .nav-item.active,
body.light-theme .nav-item.active {
    background: #e4ebf7;
    color: #111827;
}

html.light-theme .subcategory-item,
body.light-theme .subcategory-item {
    color: #657084;
}

html.light-theme .admin-nav-link,
body.light-theme .admin-nav-link {
    color: #6d28d9;
}

html.light-theme .admin-nav-link:hover,
html.light-theme .admin-nav-link.active,
body.light-theme .admin-nav-link:hover,
body.light-theme .admin-nav-link.active {
    color: #4c1d95;
    background: #ede9fe;
}

html.light-theme .header-btn,
body.light-theme .header-btn {
    background: #ffffff;
    border-color: #dfe4ee;
    color: #596579;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

html.light-theme .header-btn:hover,
body.light-theme .header-btn:hover,
html.light-theme .header-btn:active,
body.light-theme .header-btn:active {
    background: #eef3fb;
    border-color: #cbd5e1;
    color: #111827;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

html.light-theme .sidebar-toggle-icon,
html.light-theme .current-page,
html.light-theme .breadcrumb-parent,
body.light-theme .sidebar-toggle-icon,
body.light-theme .current-page,
body.light-theme .breadcrumb-parent {
    color: #202633;
}

html.light-theme .page-separator,
html.light-theme .breadcrumb-separator,
body.light-theme .page-separator,
body.light-theme .breadcrumb-separator {
    color: #9aa4b5;
}

html.light-theme .header-logo,
body.light-theme .header-logo {
    -webkit-text-stroke: 0;
    text-stroke: 0;
}

html.light-theme .page-header h2,
body.light-theme .page-header h2 {
    color: #172033;
}

html.light-theme .page-header p,
body.light-theme .page-header p,
html.light-theme .disclaimer-text,
body.light-theme .disclaimer-text,
html.light-theme .copyright-text,
body.light-theme .copyright-text {
    color: #687386;
}

html.light-theme .content-placeholder,
body.light-theme .content-placeholder,
html.light-theme .project-box,
body.light-theme .project-box {
    background: #ffffff;
    border-color: #dfe4ee;
    color: #596579;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

html.light-theme .sidebar-footer,
html.light-theme .sidebar-projects,
body.light-theme .sidebar-footer,
body.light-theme .sidebar-projects {
    border-color: #dfe4ee;
}

html.light-theme .sidebar.collapsed .subcategory-menu.expanded,
body.light-theme .sidebar.collapsed .subcategory-menu.expanded {
    background: #ffffff;
    border-color: #dfe4ee;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

html.light-theme ::-webkit-scrollbar-track,
body.light-theme ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
}

html.light-theme ::-webkit-scrollbar-thumb,
body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.28);
}

html.light-theme ::-webkit-scrollbar-thumb:hover,
body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.42);
}

html.light-theme *,
body.light-theme * {
    scrollbar-color: rgba(71, 85, 105, 0.32) rgba(15, 23, 42, 0.06);
}
