.app-container {
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.sidebar-logo {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sidebar-logo h2 {
  font-size: var(--font-lg);
  font-weight: 800;
  background: linear-gradient(135deg, var(--domain1), var(--domain6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--domain1), var(--domain6));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-lg);
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md) 0;
}

.sidebar-section-title {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-sm);
}

.sidebar-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  font-weight: 600;
}

.sidebar-item .domain-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-item .weight-badge {
  margin-left: auto;
  font-size: var(--font-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.sidebar-item.active .weight-badge {
  color: white;
}

.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.sidebar-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sidebar-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--domain1), var(--domain6));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  backdrop-filter: blur(8px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.header-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.header-breadcrumb a:hover {
  color: var(--text-primary);
}

.header-breadcrumb .separator {
  color: var(--text-dim);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--font-xl);
  cursor: pointer;
  padding: var(--space-sm);
}

.search-box {
  position: relative;
}

.search-box input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  padding-left: 36px;
  color: var(--text-primary);
  font-size: var(--font-sm);
  width: 240px;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.search-box input:focus {
  outline: none;
  border-color: var(--domain1);
  width: 300px;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: var(--font-sm);
}

.mode-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  padding: 3px;
}

.mode-tab {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: var(--font-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  white-space: nowrap;
}

.mode-tab:hover {
  color: var(--text-primary);
}

.mode-tab.active {
  background: var(--domain1);
  color: white;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: var(--font-base);
}

.theme-toggle:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Content Area */
.content-area {
  flex: 1;
  padding: var(--space-xl);
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}
