* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #222;
}

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

.sidebar {
  position: sticky;
  top: 0;
  width: 220px;
  height: 100vh;
  background: #1f2937;
  color: #fff;
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.sidebar-top {
  display: block;
}

.sidebar-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.sidebar nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-auth-text {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
}

.sidebar-auth-link,
.sidebar-auth-button {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.sidebar-auth-link:hover,
.sidebar-auth-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.logout-form {
  margin: 0;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 28px;
  overflow-x: hidden;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}