.dwk-wrapper {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.dwk-wrapper h1 {
  text-align: center;
}

.dwk-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.dwk-controls {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}
.dwk-controls input {
  padding: initial;
}
.dwk-shadow-group {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 6px;
  position: relative;
  margin-bottom: 15px;
}

.dwk-shadow-group:last-child {
  margin-bottom: 0;
}

.dwk-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dwk-wrapper label {
  display: block;
  margin-top: 8px;
}

.dwk-wrapper input[type="range"] {
  width: 100%;
}

.dwk-switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.dwk-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.dwk-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dwk-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.dwk-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.dwk-wrapper input:checked + .dwk-slider {
  background-color: #007bff;
}

.dwk-wrapper input:checked + .dwk-slider:before {
  transform: translateX(20px);
}

.dwk-preview-wrapper {
  flex: 1;
  min-width: 250px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  align-items: flex-start;
  display: flex;
  align-self: flex-start;
  flex-direction: column;
  gap: 20px;
}
.dwk-preview-wrapper label {
  margin: 0;
  line-height: 1;
}
.dwk-preview-box {
  width: 100%;
  height: 200px;
  background: white;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  box-shadow: none;
}

.dwk-output,
#css-code {
  background: #222;
  color: #0f0;
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  resize: none;
  width: 100%;
}

.dwk-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dwk-btn:hover {
  background: #0056b3;
}

/* Text shadow generator */
.app-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  gap: 30px;
}

.input-panel,
.output-panel {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.input-panel {
  flex: 1;
}

.output-panel {
  flex: 1;
}

.dwk-wrapper label {
  display: block;
  margin-top: 10px;
}

#text-input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
}

.slider-group {
  margin-top: 15px;
}

.slider-box {
  position: relative;
}

.slider-indicator {
  display: inline-block;
  min-width: 16px;
  text-align: right;
  font-weight: bold;
  color: #007acc;
}

.dwk-wrapper input[type="range"] {
  width: 100%;
}

.live-preview {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  min-height: 80px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  transition: text-shadow 0.3s ease;
}
.preview-text {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  min-height: 80px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  transition: text-shadow 0.3s ease;
  width: 100%;
}

.dwk-wrapper button {
  margin-top: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.shadow-block {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  position: relative;
}
