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

body {
  font-family: "Arial", sans-serif;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: #f4a209;
  min-height: 100vh;
  padding: 20px;
}

/* Language Switcher Styles */
.language-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 24px;
  border-radius: 40px;
  border: 2px solid #423435;
  margin: 0 auto 20px;
  width: fit-content;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  padding: 8px 18px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: transparent;
  color: #423435;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
  background: #423435;
  color: #f4d35e;
  border-color: #423435;
  transform: translateY(-1px);
}

.flag {
  font-size: 18px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.subtitle {
  color: white;
  font-size: 1.1em;
  margin-top: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-panel {
  width: 100%;
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ffe099;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.scale-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scale-options__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.scale-label {
  font-size: 1rem;
  font-weight: 700;
  color: #2c2c2c;
}

.scale-helper {
  font-size: 0.85rem;
  color: #6b6b6b;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 10px;
}

.scale-btn {
  background: #fff5d9;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #b15b00;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.scale-btn:hover {
  border-color: #f4a209;
  transform: translateY(-2px);
}

.scale-btn.active {
  background: #f4a209;
  color: white;
  border-color: #d88900;
  box-shadow: 0 10px 20px rgba(244, 162, 9, 0.35);
}

.download-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.seo-section {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 30px;
  max-width: 900px;
  color: #2b2b2b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.seo-heading {
  font-size: 1.75em;
  margin-bottom: 10px;
  color: #2c2c2c;
}

.seo-description {
  font-size: 1em;
  margin-bottom: 15px;
  color: #4a4a4a;
}

.seo-list {
  list-style: disc;
  margin-left: 20px;
  display: grid;
  gap: 8px;
}

.seo-list li {
  font-size: 0.95em;
  color: #3a3a3a;
}

.seo-section--footer {
  margin-top: 60px;
  margin-bottom: 10px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  border-radius: 20px;
  padding: 40px;
}

h1 {
  color: white;
  margin-bottom: 10px;
  font-size: 2.5em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.content {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 40px;
  align-items: start;
}

.canvas-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 20px;
}

canvas {
  border: 3px solid #333;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
}

.controls {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.controls::-webkit-scrollbar {
  width: 10px;
}

.controls::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.controls::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.controls::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1em;
  border-bottom: 2px solid #667eea;
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
  font-size: 12px;
}

input[type="text"],
input[type="tel"],
input[type="file"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  transition: border-color 0.3s;
}

input[type="range"] {
  width: 100%;
  height: 6px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #667eea;
}

textarea {
  resize: vertical;
  min-height: 50px;
  font-family: "Arial", sans-serif;
}

button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-download {
  background: #28a745;
  color: white;
}

.btn-download:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-reset {
  background: #dc3545;
  color: white;
}

.btn-reset:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.range-display {
  display: inline-block;
  font-weight: bold;
  color: #667eea;
  min-width: 40px;
}

@media (max-width: 1200px) {
  .content {
    grid-template-columns: 1fr;
  }

  .canvas-section {
    position: relative;
  }
}

@media (max-width: 768px) {
  .scale-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }
}

@media (max-width: 520px) {
  .download-buttons {
    grid-template-columns: 1fr;
  }
}
