/* Sidebar distinction styles with Dark Mode support */
:root {
    --sidebar-bg: #0f172a; /* Slate 900 - Matching Megapaint Sidebar */
    --sidebar-border: rgba(255, 255, 255, 0.05);
    --sidebar-header-border: rgba(255, 255, 255, 0.05);
    --sidebar-hover: rgba(255, 255, 255, 0.05);
    --sidebar-label-color: #94a3b8;
    --card-bg: #ffffff;
    --card-border: #f1f5f9;
}

.dark {
    --sidebar-bg: #020617; /* Slate 950 */
    --sidebar-border: #1e293b;
    --sidebar-header-border: #1e293b;
    --sidebar-hover: #1e293b;
    --sidebar-label-color: #475569;
    --card-bg: #020617;
    --card-border: #1e293b;
}

.fi-sidebar {
    background-color: var(--sidebar-bg) !important;
    border-right: 1px solid var(--sidebar-border) !important;
}

.fi-sidebar-header {
    background-color: var(--sidebar-bg) !important;
    border-bottom: 1px solid var(--sidebar-header-border) !important;
}

/* EXACT GPMIMS SPACING AND LAYOUT */
.fi-sidebar-nav {
    gap: 0.125rem !important;
    padding-top: 1.5rem !important; /* Added space at the top */
    padding-bottom: 1.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.fi-sidebar-nav-groups {
    gap: 0 !important;
}

.fi-sidebar-item-button {
    border-radius: 0.75rem !important;
    margin-left: 1.25rem !important; /* Increased from 0.75rem */
    margin-right: 1.25rem !important; /* Increased from 0.75rem */
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #e2e8f0 !important;
    font-size: 14px !important; /* Explicit 14px font size */
}

.fi-sidebar-item-button .fi-sidebar-item-label {
    color: #e2e8f0 !important;
}

.fi-sidebar-item-button .fi-sidebar-item-icon {
    color: #94a3b8 !important;
}

.fi-sidebar-item-button:hover {
    background-color: var(--sidebar-hover) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.fi-sidebar-item-button:hover .fi-sidebar-item-label,
.fi-sidebar-item-button:hover .fi-sidebar-item-icon {
    color: #ffffff !important;
}

.fi-sidebar-item-active .fi-sidebar-item-button {
    background-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 6px -1px rgb(255 255 255 / 0.05) !important;
}

.fi-sidebar-item-active .fi-sidebar-item-button .fi-sidebar-item-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.fi-sidebar-item-active .fi-sidebar-item-button .fi-sidebar-item-icon {
    color: #60a5fa !important;
}

.fi-sidebar-group-label {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.65rem !important;
    color: var(--sidebar-label-color) !important;
    padding-left: 1.75rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.25rem !important;
}

.fi-sidebar-group {
    margin-top: 0.25rem !important;
}

.fi-sidebar-item {
    margin-bottom: 0 !important;
}

/* OTHER LAYOUT REFINEMENTS */
.fi-logo {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding-left: 0.5rem;
}

.fi-topbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    height: 4rem !important;
}

.dark .fi-topbar {
    background-color: #020617 !important;
    border-bottom: 1px solid #1e293b !important;
}

.fi-main {
    background-color: #f8fafc !important;
}

.dark .fi-main {
    background-color: #020617 !important;
}

.fi-section, .fi-ta-ctn {
    border-radius: 1rem !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05) !important;
}
