:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --sidebar-bg: #111827;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: #3b82f6;
    --transition-speed: 0.3s;
}

#sidebar-wrapper {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    min-height: 100vh;
    transition: all var(--transition-speed);
    position: fixed;
    z-index: 1000;
    overflow-x: hidden;
}

#sidebar-wrapper.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-heading {
    padding: 24px;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-heading span {
    transition: opacity var(--transition-speed);
    white-space: nowrap;
}

#sidebar-wrapper.collapsed .sidebar-heading span {
    opacity: 0;
    width: 0;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    gap: 16px;
    white-space: nowrap;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: white;
}

.sidebar-link.active {
    color: white;
    background: var(--sidebar-active);
}

.sidebar-link i {
    font-size: 1.25rem;
    min-width: 30px;
    display: flex;
    justify-content: center;
}

.sidebar-link span {
    transition: opacity var(--transition-speed);
}

#sidebar-wrapper.collapsed .sidebar-link span {
    opacity: 0;
    width: 0;
}

#main-wrapper {
    margin-left: var(--sidebar-width);
    transition: all var(--transition-speed);
    width: calc(100% - var(--sidebar-width));
}

#sidebar-wrapper.collapsed + #main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

.sidebar-toggle-btn {
    position: absolute;
    right: 12px;
    top: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #sidebar-wrapper.show {
        margin-left: 0;
    }
    #main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
}
