* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Page background */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #a1c4fd, #c2e9fb);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Card container */
.container {
  width: 850px;
  height: 800px;
  margin-top: auto;
  margin-bottom: auto;
  background-color: white;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
  overflow: hidden;
}

/* Header / form */
header {
  display: flex;
  align-items: center;
  height: 18%;
}

form {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Inputs, select and buttons - shared height */
form input,
.select-box,
button {
  height: 70px;
}

/* Color picker */
#color-pick {
  margin-left: 2em;
  width: 100px;
  cursor: pointer;
  outline: none;
}

/* Select box wrapper */
.select-box {
  position: relative;
  width: 55%;
}

/* Select element */
#select-scheme {
  width: 100%;
  height: 100%;
  padding: 0.8em 1.2em;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  background-color: white;
  color: #333;
  font-weight: 500;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Select hover / focus */
#select-scheme:hover,
#select-scheme:focus {
  background: #f3f4f6;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Select options */
#select-scheme option {
  font-size: 1.1rem;
  padding: 14px 18px;
  background: white;
  color: #333;
  border-bottom: 1px solid #e5e7eb;
}
#select-scheme option:last-child {
  border-bottom: none;
}

/* Submit button */
#submit-btn {
  margin-right: 2em;
  width: 170px;
  font-size: 1rem;
  padding: 0.8em 1.2em;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Submit button states */
#submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #764ba2, #667eea);
}
#submit-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Decorative icon inside select wrapper */
.icon-box {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
i {
  font-size: 1.5rem;
}

/* Main color display area */
main {
  display: flex;
  width: 100%;
  height: 70%;
  padding: 0.5em;
}
main div {
  width: 20%;
  height: 100%;
  cursor: pointer;
}

/* Footer values / labels */
footer {
  display: flex;
  align-items: center;
  height: 10%;
}
footer div {
  width: 20%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}

/* Color swatches */
.color-1 {
  background-color: #000000;
}
.color-2 {
  background-color: #1a1a1a;
}
.color-3 {
  background-color: #343232;
}
.color-4 {
  background-color: #4f4a4a;
}
.color-5 {
  background-color: #6a6262;
}

.select-box::after {
  font-size: 0.9rem;
  color: #555;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}
