/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  color: #333;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Container */
.container {
  width: 100%;
  max-width: 600px;
  animation: fadeIn 0.8s ease-out;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Title */
h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  color: white;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

/* Sections */
section {
  background: white;
  padding: 25px 30px;
  margin: 20px 0;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

section:hover {
  transform: translateY(-2px);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #4e73df;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="file"],
input[type="url"] {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #4e73df;
  outline: none;
}

/* Buttons */
button {
  background: linear-gradient(135deg, #4e73df, #375ab7);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: linear-gradient(135deg, #375ab7, #2e59d9);
  transform: scale(1.03);
}

/* Progress bar */
#progress {
  margin-top: 20px;
  height: 12px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: none;
}

#progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1cc88a, #17a673);
  transition: width 0.3s ease;
}

/* Spinner */
.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 999;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  section {
    padding: 20px;
  }

  button {
    font-size: 0.9rem;
    padding: 12px;
  }
}

/* Footer */
footer {
  margin-top: 40px;
  text-align: center;
  color: white;
  font-size: 0.9rem;
  opacity: 0.8;
}

