@font-face {
  font-family: "Vazir";
  src: url("./fonts/vazir.woff2") format("woff2");
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Vazir", sans-serif;
  background: #1e1e1e;
  color: white;
  -webkit-user-select: none !important;
  user-select: none !important;
}

button,
input,
select,
option {
  font-family: "Vazir" !important;
  outline: none !important;
}

header {
  background: #252526;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#tabs {
  display: flex;
  gap: 8px;
}

#tabs button {
  background: #333;
  border: none;
  color: #ccc;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

#tabs button.active {
  color: white;
  border-bottom-color: #00aaff;
  background: #1e1e1e;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#controls select,
#controls button {
  cursor: pointer;
  background: #007acc;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
}

#controls select {
  min-width: 130px;
}

#controls button:hover,
#controls select:hover {
  background: #005f99;
}

#editor {
  flex: 1;
  height: calc(100vh - 220px);
}

#preview {
  height: 40vh;
  width: 100%;
  border: none;
  background: white;
}

#buttons {
  background: #252526;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#buttons button {
  cursor: pointer;
  background: #007acc;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

#buttons button:hover {
  background: #005f99;
}

#developed-by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  color: #888;
  background: transparent;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  margin: 2rem auto 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  opacity: 0.8;
}

#developed-by:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  opacity: 1;
}

#developed-by i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

#developed-by:hover i {
  transform: translateX(3px);
}

@media (hover: none) and (pointer: coarse) {
  *:focus {
    outline: none;
  }
}
