* {
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body {
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f5f6f8;
  margin: 0;
  flex-direction: column;
}

header {
  text-align: center;
}

.title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.30rem;
  color: #111;
}

.subtitle {
  font-size: 1rem;
  color: #555;
  margin-top: 0;
}

.container {
  width: 100%;
  max-width: 380px;
  padding: 1rem;
}

.card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  text-align: center;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.color-preview {
  height: 200px;
  border-radius: 0.75rem;
  background: #aabbcc;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.25s ease;
}

.color-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.color-info .icon {
  font-size: 1.1rem;
  cursor: pointer;
  color: #888;
}

.color-info .icon:hover {
  color: #111;
  transform: scale(1.1);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  flex: 1;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 1px;
  padding: 0.85rem 2.5rem 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  outline: none;
  background: #fafafa;
}

.input-group .icon {
  position: absolute;
  right: 0.6rem;
  color: #888;
  cursor: pointer;
}

.input-group .icon:hover {
  color: #111;
  transform: scale(1.1);
}

.icon.refresh:active {
  transform: rotate(180deg);
  transition: transform 0.4s ease;
}

::placeholder {
  font-family: inherit;
}

.copy-btn {
  margin-top: 1rem;
  border: none;
  background: #111;
  color: white;
  font-family: inherit;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.copy-btn:hover {
  background: #333;
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: scale(0.85) translateX(-50%);
  background: #111;
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#toast.show {
  transform: scale(1) translateX(-50%);
  opacity: 1;
}
