*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text-primary: #e2e8f0;
  --text-secondary: #8b92a5;
  --sidebar-width: 200px;
  --topbar-height: 56px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  min-width: 150px;
}

.logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-item {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.topbar-right {
  margin-left: auto;
}

.date-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Layout ── */
.layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  overflow-y: auto;
  padding: 16px 0;
}

.sidebar-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.sidebar-title:hover {
  color: var(--text-primary);
}

.toggle-arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.sidebar-title.open .toggle-arrow {
  transform: rotate(90deg);
}

.industry-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.industry-list.open {
  max-height: 400px;
}

.industry-list li {
  padding: 9px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.industry-list li:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-primary);
}

.industry-list li.selected {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder {
  text-align: center;
  opacity: 0.35;
  user-select: none;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.placeholder-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
