body {
    font-family: Arial, sans-serif;
    background-color: rgba(64,65,79,var(--tw-bg-opacity));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    margin: auto;
    padding: 10px;
    background-color: #333333;
    border-radius: 5px;
    margin: 20px auto;
    width: 400px;
}

h1 {
    text-align: center;
    color: #ffffff;
}

label {
    font-weight: bold;
    color: #ffffff;
}

textarea {
    font-family: Arial, sans-serif;
    height: 150px;
    margin-bottom: 10px;
    padding: 5px;
    resize: none;
    border: 0px solid #dddddd;
    background-color: #474747;
    color: #ffffff;
}

button {
    padding: 5px 10px;
    margin-top: 5px;
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Добавленные стили для темного оформления */
body {
    background-color: #222222;
}

.container {
    background-color: #333333;
    color: #ffffff;
}

button {
    background-color: #4CAF50;
    color: #ffffff;
}

button:hover {
    background-color: #45a049;
}

button:active {
    background-color: #40802e;
}

/* === GRID HELPER === */
#grid-helper {
  background: var(--card-bg, #1f1f1f);
  color: var(--text-color, #e6e6e6);
  font-family: var(--font-main, 'Inter', sans-serif);
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

#grid-helper h2 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}

#grid-helper .description {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.grid-helper-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.grid-helper-controls label {
  font-size: 0.9rem;
}

.grid-helper-controls input[type="number"],
.grid-helper-controls input[type="file"] {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.grid-helper-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

#gridCanvas {
  max-width: 100%;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #474747;
}

.grid-info {
margin-top: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #b5ff9e;
    text-align: center;
    font-family: var(--font-main);
    user-select: none;
    font-weight: bold;
}

/* === Tabs === */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.tab-button {
  padding: 10px 20px;
  background: #3a3a3a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.tab-button:hover {
  background: #4caf50;
}

.tab-button.active {
  background: #45a049;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 8px #4caf50; /* дополнительная визуальная подсветка */
  transform: scale(1.05); /* лёгкое увеличение */
  transition: all 0.2s;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

#gridCanvas.dragover {
  border: 2px dashed #4caf50;
  background-color: rgba(76, 175, 80, 0.1);
  transition: background 0.3s, border 0.3s;
}

.container-lg {
      width: 100% !important;
}