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

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  min-height: 100vh;
}

/* Layout */
.app {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2rem;
}

header p {
  color: #94a3b8;
}

/* Card (Glass Effect) */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Preview */
#preview {
  height: 200px;
  border-radius: 12px;
}

/* Controls */
.controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.control {
  flex: 1;
  min-width: 150px;
}

.control label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #cbd5f5;
}

input[type="color"] {
  width: 100%;
  height: 45px;
  border-radius: 8px;
  border: none;
}

input[type="range"] {
  width: 100%;
}

/* Output */
.output h3 {
  margin-bottom: 10px;
}

.code {
  display: flex;
  margin: 10px 0;
}

.code input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  border-radius: 8px 0 0 8px;
}

.code button {
  padding: 10px 15px;
  border: none;
  background: linear-gradient(45deg, #22c55e, #4ade80);
  color: black;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  transition: 0.3s;
}

.code button:hover {
  transform: scale(1.05);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #22c55e;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
}