/* ---------------- GLOBAL ---------------- */

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #fceaff, #e6f7ff);
  color: #222;
  margin: 0;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 950px;
}

/* ---------------- HEADER ---------------- */

header {
  text-align: center;
  margin-bottom: 50px;
}

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #666;
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---------------- CARDS ---------------- */

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 35px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

/* ---------------- FORM ELEMENTS ---------------- */

select,
input[type="file"] {
  display: block;
  margin: 10px 0 15px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-family: inherit;
  width: 100%;
  transition: 0.2s ease;
}

select:focus,
input[type="file"]:focus {
  outline: none;
  border-color: #ff6ec7;
  box-shadow: 0 0 0 3px rgba(255, 110, 199, 0.2);
}

/* ---------------- BUTTONS ---------------- */

button {
  background: linear-gradient(135deg, #ff6ec7, #6c63ff);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.35);
}

button:active {
  transform: scale(0.98);
}

/* ---------------- WARDROBE GRID ---------------- */

.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.wardrobe-item {
  text-align: center;
  transition: 0.2s ease;
}

.wardrobe-item:hover {
  transform: scale(1.03);
}

.wardrobe-item img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Color indicator bar */
.color-box {
  width: 100%;
  height: 16px;
  border-radius: 0 0 16px 16px;
  margin-top: -4px;
}

/* ---------------- PAIRING RESULT ---------------- */

#pairingResult {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f8f8ff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

#pairingResult p {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Clash warning style */
#pairingResult strong {
  font-weight: 700;
}

/* ---------------- SMALL POLISH ---------------- */

@media (max-width: 600px) {
  body {
    padding: 25px 15px;
  }

  h1 {
    font-size: 2rem;
  }
}
.meter-container {
  margin-top: 20px;
}

.meter {
  background: #eee;
  border-radius: 20px;
  height: 14px;
  margin: 6px 0 15px;
  overflow: hidden;
}

.meter div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6ec7, #6c63ff);
  transition: width 0.4s ease;
}
