/* Import all CSS files */
@import url('./variables.css');
@import url('./base.css');
@import url('./components.css');

.changelog-loading-spin {
  animation: changelog-spin 1s linear infinite;
  filter: grayscale(1);
  /* 強制覆蓋 fill 顏色為灰色 */
  fill: #888 !important;
}
@keyframes changelog-spin {
  100% { transform: rotate(360deg); }
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 220px;
  background: rgba(255,255,255,0.95);
  color: #23272f;
  box-shadow: 2px 0 8px rgba(0,0,0,0.08);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar-menu {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  padding-right: 18px;
}
.sidebar-item {
  font-size: 1.4rem;
  color: #23272f;
  cursor: pointer;
  padding: 6px 0;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.sidebar-item.active, .sidebar-item:hover {
  background: #e0e7ef;
  color: #23272f;
}
.sidebar-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  transition: background 0.18s;
}
.sidebar-toggle:hover {
  background: #e0e7ef;
}
.sidebar-toggle svg rect {
  fill: #23272f;
}
.sidebar-dark-toggle {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 18px 0 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #23272f;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid #e5e7eb;
  transition: background 0.2s, color 0.2s;
}
body.dark .sidebar-dark-toggle {
  color: #e0e6ed;
  background: #23272f;
  border-top: 1px solid #444950;
}
.sidebar-dark-toggle .toggle-icon {
  font-size: 1.3em;
  margin-right: 8px;
}
@media (max-width: 600px) {
  .sidebar { width: 160px; }
  .sidebar-menu { padding-left: 16px; }
} 