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

body {
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%) no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0; /* Header matni tepaga yopishib qolmasligi uchun */
  text-align: center;
  background: rgba(0, 0, 0, .1);
  backdrop-filter: blur(20px);
  font-size: 2rem;
  z-index: 10;
}

.header a {
  text-decoration: none;
  color: white;
}

.header a:hover {
  color: #60a5fa; /* Hover bo'lganda ko'kroq rang (estetika uchun) */
}

.container {
  width: 100%;
  max-width: 600px;
  margin-top: 100px; /* Headerdan pastga tushirish uchun asosiy o'zgarish */
  margin-bottom: 40px; /* Pastdan ham biroz joy tashlaymiz */
}

.card {
  background: #1e293b;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

h1 {
  font-size: 32px;
  color: #f1f5f9;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  color: #94a3b8;
  text-align: center;
  margin-bottom: 40px;
}

.preview-section {
  background: #0f172a;
  border-radius: 12px;
  padding: 60px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.preview-box {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 0px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  transition: border-radius 0.2s ease;
}

.controls {
  margin-bottom: 30px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 16px;
}

.value {
  color: #60a5fa;
  font-weight: 700;
  font-size: 18px;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.code-output {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-output label {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 16px;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  padding: 16px 20px;
  border-radius: 10px;
  gap: 16px;
}

code {
  color: #60a5fa;
  font-family: "Courier New", monospace;
  font-size: 16px;
  flex: 1;
}

.copy-btn {
  padding: 8px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.copy-btn:hover {
  background: #60a5fa;
  transform: translateY(-2px);
}

.copy-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .header {
    font-size: 1.5rem; /* Telefondan biroz kichikroq shrift */
  }

  .container {
    margin-top: 80px; /* Telefondan kamroq bo'shliq yetarli */
  }

  .card {
    padding: 30px 20px;
  }

  .preview-section {
    padding: 40px;
    min-height: 250px;
  }

  .preview-box {
    width: 150px;
    height: 150px;
  }
}
