body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #1a1a2e;
  color: #333;
  display: flex;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
  max-width: 800px;
  width: 100%;
}

.header {
  background: #16213e;
  text-align: left;
}

.section {
  margin-bottom: 1.5rem;
}

input, button, select {
  font-size: 1rem;
  padding: .6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

input[type='color'] {
  height: 60px;
  border: none;
  cursor: pointer;
}

.preview {
  height: 60px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: .5rem;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.color-box {
  flex: 1;
  min-width: 100px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.swatch {
  width: 100%;
  height: 60px;
  border-radius: 8px 8px 0 0;
}

.color-info {
  text-align: center;
  background: #f0f0f0;
  padding: 6px;
  font-size: .9rem;
  width: 100%;
}

.color-info span {
  display: block;
  margin-bottom: 5px;
}

.copy-btn {
  background: #16213e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: .8rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: #0dcaf0;
}

.copy-btn[title] {
  position: relative;
}

canvas, .image-preview {
  display: none;
}

.image-preview.visible {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 1rem;
  cursor: crosshair;
}

.btn-primary {
  background: #07f;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: .5rem;
}

.btn-primary:hover {
  background: #005fd0;
}

h1 {
  font-size: 22px;
  margin: 0;
  padding: 10px 0;
}

.home {
  font-size: 22px;
  margin: -10px 0 0;
  padding: 0 0 15px 20px;
}

.footer {
  position: relative;
  margin-top: 20px;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  background: #16213e;
}

.spacer-10 {
  height: 10px;
}

a {
  color: #0dcaf0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.logo img {
  width: 250px;
  height: auto;
}
