/**
 * サイドバーナビゲーションスタイル
 */

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

.sidebar {
  width: 240px;
  background: var(--card);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-header {
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .2px;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fefefe, #eaeaea);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.sidebar-nav {
  flex: 1;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 4px;
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  transition: background .2s ease, transform .04s ease;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

.nav-item.active {
  background: var(--accent);
  color: white;
}

.nav-item.active:hover {
  background: var(--accent-pressed);
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto; /* allow page scrolling in main area */
}

.content-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.content-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.content-body {
  flex: 1;
  padding: 16px 24px;
  overflow: auto;
  min-height: 0; /* enable proper flex scrolling */
}

/* 画面切り替え */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .sidebar {
    width: 200px;
  }
  
  .content-body {
    padding: 16px;
  }
}