body {
  font-size: .875rem;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */


/* 預設樣式 (桌面版/大螢幕) */
.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px); /* 保持桌面版固定高度 */
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

/* 瀏覽器支援 position: sticky 的處理 */
@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* =========================================================
   手機版本/小螢幕覆蓋設定 (Mobile Override)
   當螢幕寬度 <= 767.98px 時，移除固定高度。
   ========================================================= */
@media (max-width: 767.98px) {
    .sidebar-sticky {
        /* 移除固定高度，讓側邊欄高度由內容決定 */
        height: auto; 
        
        /* 建議：在手機模式下通常會關閉 sticky 效果，讓導航欄隨內容捲動 */
        position: relative; 
    }
}


.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */



.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
