body {
  margin: 20px;
  background-color: #f4f4f7;
  font-family: sans-serif;
  display: flex;
  gap: 20px;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.sidebar {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  width: 300px;
  height: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.sidebar h3,
.sidebar h4 {
  margin: 0;
  color: #1e293b;
}

.sub-label {
  font-size: 11px;
  color: #64748b;
  margin-top: -5px;
  display: block;
}

textarea {
  width: 100%;
  height: 100px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  resize: none;
  font-family: inherit;
}

button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-seed {
  background-color: #10b981;
  color: white;
}

.btn-seed:hover {
  background-color: #059669;
}

.btn-center {
  background-color: #6366f1;
  color: white;
}

.btn-center:hover {
  background-color: #4f46e5;
}

.btn-reset {
  background-color: #ef4444;
  color: white;
  margin-top: auto;
}

.btn-reset:hover {
  background-color: #dc2626;
}

.mode-box {
  background: #f8fafc;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.mode-box label {
  font-size: 11px;
  font-weight: bold;
  color: #64748b;
  display: block;
  margin-bottom: 5px;
}

.mode-select {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-weight: bold;
  cursor: pointer;
}

.schedule-list {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.schedule-item {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-item.done {
  background: #f0fdf4;
  opacity: 0.7;
}

.schedule-meta {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #475569;
}

.player-call-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #f1f5f9;
  margin-top: 2px;
}

.player-call-row.called {
  background: #fffbeb;
  border-color: #f59e0b;
}

.btn-call {
  padding: 2px 6px;
  font-size: 11px;
  background: #eab308;
  border-radius: 4px;
  border: none;
  font-weight: bold;
}

.status-called {
  font-size: 11px;
  color: #16a34a;
  font-weight: bold;
}

.status-used {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.hint {
  color: #718096;
  font-size: 13px;
  margin-bottom: 10px;
  background: white;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  line-height: 1.4;
}

.canvas-container {
  flex-grow: 1;
  width: 100%;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

/* ТЕМНАЯ ТЕМА ДЛЯ ЭКРАНА ТАБЛО */
body.display-mode {
  background-color: #0f172a;
  color: white;
}

body.display-mode .sidebar,
body.display-mode .hint {
  display: none;
}

body.display-mode canvas {
  background: #0f172a;
}