/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: #f3efff; /* pastel lavender background */
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background-image:url(rotator_3.php);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CONTAINER CARD */
.card {
  background: #e1e1e1cf;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
}

h2 {
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  color: #5a3e85; /* deep pastel purple */
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* TOKEN INPUT WRAPPER */
form > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* LABEL */
label {
  font-weight: 500;
  color: #5a3e85;
  font-size: 0.95rem;
}

/* TEXT & FILE INPUTS */
input[type="text"],
input[type="file"] {
  padding: 0.5rem;
  border: 1px solid #d1c4e9;
  border-radius: 6px;
  background: #faf7ff;
  font-size: 1rem;
  color: #333;
}

/* FOCUS STATE */
input[type="text"]:focus,
input[type="file"]:focus {
  outline: none;
  border-color: #9575cd;
  box-shadow: 0 0 0 3px rgba(149,117,205,0.2);
}

/* BUTTON */
button {
  background: #b39ddb; /* pastel purple */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
button:hover {
  background: #9575cd;
}
button:active {
  background: #7e57c2;
}

/* PROGRESS BAR */
.progress-bar {
  width: 100%;
  background: #e8def8;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1rem;
  display: none;
}
.progress {
  height: 1.5rem;
  width: 0;
  background: linear-gradient(90deg, #d1c4e9, #b39ddb);
  text-align: center;
  color: #fff;
  line-height: 1.5rem;
  font-size: 0.9rem;
  transition: width 0.2s ease;
}

/* UPLOAD RESULTS */
#uploaded-files {
  margin-top: 1.5rem;
  border-top: 1px solid #e8def8;
  padding-top: 1rem;
}
#uploaded-files h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #5a3e85;
}
#uploaded-files ul {
  list-style: disc inside;
  color: #444;
}
#uploaded-files li {
  margin-bottom: 0.25rem;
}
#uploaded-files h4 {
  margin-top: 1rem;
  color: #d32f2f;
}
