* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1540px;
  min-width: 1240px;
  width: 100%;
  margin: 25px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  position: relative;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.4rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

header p{
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}


.tool-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.control-panel {
  flex: 0 0 350px;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.control-item {
  margin-bottom: 18px;
}

.control-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #34495e;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.container input[type="range"] {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e0e7ff;
  outline: none;
  -webkit-appearance: none;
}

.container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4a6cf7;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.container input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}

.container input[type="color"] {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: white;
  box-shadow: 0 0 0 1px #ddd;
}

.container select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-size: 1rem;
  cursor: pointer;
}

.preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.preview-area h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #2c3e50;
  line-height: 1;
}

.bubble-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.code-content {
  flex: 1;
  background: #f4f5f6;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: auto;
  white-space: pre;
  color: #333;
  margin-top: 25px;
}

.buttons {
  display: flex;
  gap: 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: 8px;
}

.copy-btn {
  background: linear-gradient(135deg, #00b09b, #96c93d);
  color: white;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #009e8a, #85b536);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reset-btn {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
}

.reset-btn:hover {
  background: linear-gradient(135deg, #e03a62, #e64527);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.features {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.features h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.4rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 15px;
  border: 1px solid #eee;
}

.feature-item .icon {
  font-size: 2.5rem;
  flex: 0 0 60px;
  text-align: center;
}

.feature-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature-content p {
  color: #4a5568;
  line-height: 1.6;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  background: #48bb78;
  color: white;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateX(200%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

footer {
  text-align: center;
  color: #718096;
  font-size: 0.95rem;
}
