* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header  p{
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}


.app-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.controls {
  flex: 1;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.preview {
  flex: 2.5;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-box {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 50%;
}

.preview-box h2,
.controls h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.control-group {
  margin-bottom: 20px;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 500;
  color: #2d3748;
}

input[type="range"] {
  width: 100%;
  height: 10px;
  -webkit-appearance: none;
  background: linear-gradient(90deg, #8aa7a8, #6eb6fc);
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: white;
  border: 2px solid #00ced1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type="color"] {
  width: 100%;
  height: 45px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  border-radius: 12px;
  background: #f1f2f3;
}

.value-display {
  background: #f1f2f3;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1;
  min-width: 60px;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#copyBtn {
  background: linear-gradient(135deg, #00ced1, #1e90ff);
  color: white;
}

#resetBtn {
  background: #f1f2f3;
  color: #4a5568;
  border: 2px solid #e2e8f0;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#copyBtn:hover {
  background: linear-gradient(135deg, #00b8c0, #187bcd);
}

#resetBtn:hover {
  background: #e2e8f0;
}

.text-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  transition: all 0.3s ease;
  padding: 20px;
  text-align: center;
}

.code-preview {
  flex: 1;
  background: #2d3748;
  color: #cbd5e0;
  border-radius: 12px;
  padding: 25px;
  font-family: 'Courier New', Courier, monospace;
  overflow: auto;
  line-height: 1.6;
  font-size: 1.1rem;
}

.code-highlight {
  color: #63b3ed;
}

.about {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.about h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.about ul {
  padding-left: 25px;
}

.about li {
  margin-top: 10px;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.85;
}

footer {
  text-align: center;
  padding: 10px;
  color: #4a5568;
  font-size: 1rem;
}

.notification {
  position: fixed;
  top: 60px;
  right: 20px;
  background: #00ced1;
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  transform: translateX(200%);
  transition: transform 0.4s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}
