.has-sidebar {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  min-width: 240px;
  background: #f9f9f9;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  padding: 1.25rem 1.5rem 1rem;
}

.sidebar-brand a {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.7rem; flex-shrink: 0;
  box-shadow: 0 2px 0 #c2410c, 0 2px 4px rgba(234,88,12,0.25);
  position: relative; top: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.12s ease;
}

.sidebar-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-link:hover svg {
  opacity: 1;
}

.sidebar-footer {
  padding: 0.5rem 0.75rem 1rem;
  border-top: 1px solid var(--border);
  margin: 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-footer .sidebar-link {
  color: var(--danger);
}

.sidebar-footer .sidebar-link:hover {
  background: rgba(220, 38, 38, 0.06);
  color: var(--danger);
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  margin-bottom: 0.25rem;
  transition: all 0.12s ease;
}

.lang-switch:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  background: var(--bg);
}

@media (max-width: 768px) {
  .sidebar {
    width: 64px;
    min-width: 64px;
  }
  .sidebar-brand a {
    font-size: 0;
  }
  .sidebar-brand a::after {
    content: 'GA';
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
  }
  .sidebar-link {
    justify-content: center;
    padding: 0.6rem;
  }
  .sidebar-link span {
    display: none;
  }
  .main-content {
    padding: 1.5rem 1rem;
  }
}
