* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f3ff;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  color: #7c3aed;
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 500;
}

.task-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
  margin-bottom: 25px;
}

h2 {
  color: #8b5cf6;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 500;
}

.description {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #8b5cf6;
  color: white;
  margin-bottom: 15px;
}

.btn:hover {
  background-color: #7c3aed;
}

.btn:active {
  transform: scale(0.98);
}

.output {
  background-color: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 15px;
  min-height: 60px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #6b7280;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.output:empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.output:empty::before {
  content: "Вывод появится здесь...";
  color: #9ca3af;
  font-style: italic;
}

.log-success {
  color: #059669;
  margin: 5px 0;
}

.log-error {
  color: #dc2626;
  margin: 5px 0;
}

.log-info {
  color: #7c3aed;
  margin: 5px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th,
table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #e9d5ff;
}

table th {
  background-color: #f3e8ff;
  color: #7c3aed;
  font-weight: 500;
}

table tr:hover {
  background-color: #faf5ff;
}
