:root {
  --bg: #181a20;
  --card: #23262f;
  --accent: #4f8cff;
  --text: #f1f1f1;
  --muted: #a0a0a0;
  --border: #31343c;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}
.header {
  background: var(--card);
  padding: 12px 0 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header h1 {
  margin: 0 0 0 24px;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.user-info {
  display: flex;
  align-items: center;
  margin: 0 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: 10px;
  object-fit: cover;
  border: 1.5px solid var(--border);
}
.container {
  max-width: 700px;
  margin: 32px auto;
  padding: 0 16px;
}
.topics-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  gap: 10px;
}
.topic-card:hover {
  box-shadow: 0 2px 16px 0 #0004;
  border-color: var(--accent);
}
.topic-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.topic-progress {
  background: none;
  color: var(--accent);
  border-radius: 8px;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  margin: 0;
}
.topic-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 6px;
  margin-top: 0;
  margin-bottom: 6px;
  overflow: hidden;
}
.topic-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6fc3ff);
  border-radius: 6px 0 0 6px;
  transition: width 0.4s;
}

.theme-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
}

.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card.clickable {
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.task-card.clickable:hover {
  box-shadow: 0 2px 16px 0 #0004;
  border-color: var(--accent);
}

.task-card.task-card-solved, .task-card.clickable.task-card-solved {
  border-color: #3ec97a !important;
  box-shadow: 0 2px 16px 0 #0004;
}

@media (max-width: 600px) {
  .container { padding: 0 4px; }
  .topic-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}
#lines-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.header, .container {
  position: relative;
  z-index: 1;
}
.user-emoji {
  font-size: 1.5em;
  vertical-align: middle;
  margin-right: 6px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'EmojiOne Color', 'Twemoji Mozilla', sans-serif;
}

/* Стили для кнопки администратора */
.admin-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.admin-btn:hover {
  background: #3d7ae6;
  transform: translateY(-1px);
}

.admin-btn:active {
  transform: translateY(0);
} 