* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #6366f1, #60a5fa);
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 38px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  text-align: center;
}

h1 {
  font-size: 2.2em;
  background: linear-gradient(to right, #4f46e5, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: #555;
  margin-bottom: 25px;
}

.upload-area {
  border: 2px dashed #94a3b8;
  padding: 30px;
  border-radius: 38px;
  margin-bottom: 20px;
  cursor: pointer;
}

.upload-area:hover {
  background-color: #f9fafb;
}

.upload-area input {
  display: none;
}

.upload-area label {
  font-weight: 600;
  color: #1e3a8a;
  font-size: 1rem;
}

.slider-group {
  margin: 20px 0;
  text-align: left;
}

.slider-group label {
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}

input[type="range"] {
  width: 100%;
  accent-color: #6366f1;
}

button#compressBtn {
  background: linear-gradient(to right, #10b981, #22d3ee);
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 1rem;
  border-radius: 38px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 600;
}

button#compressBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.preview img {
  max-width: 100%;
  margin-top: 20px;
  border-radius: 38px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  background: #3b82f6;
  color: white;
  padding: 12px 25px;
  border-radius: 38px;
  text-decoration: none;
  font-weight: bold;
}

.download-btn:hover {
  background: #2563eb;
}
