body {
  background: #f0f4f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 1.5rem; */
}

.card-compressor {
  /* max-width: 820px; */
  width: 90%;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
  background: #ffffff;
  transition: 0.2s;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid #e9edf2;
  padding: 1.5rem 1.8rem 0.5rem 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 1.5rem;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  background: #fafcff;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #4f6ef7;
  background: #f1f5fe;
}

.drop-zone i {
  font-size: 3.2rem;
  color: #4f6ef7;
  margin-bottom: 0.75rem;
}

.drop-zone p {
  margin-bottom: 0.2rem;
  color: #1e293b;
}

.drop-zone .hint {
  font-size: 0.9rem;
  color: #64748b;
}

#fileInput {
  display: none;
}

.preview-box {
  background: #f1f6fa;
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.preview-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
}

.file-info {
  flex: 1;
  min-width: 140px;
}

.file-info .name {
  font-weight: 500;
  color: #0f172a;
  word-break: break-all;
}

.file-info .size {
  font-size: 0.9rem;
  color: #475569;
}

.slider-group {
  margin-top: 1.8rem;
  background: #f8fafc;
  padding: 1rem 1.2rem;
  border-radius: 1.5rem;
}

.slider-group label {
  font-weight: 500;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
}

.slider-group input[type="range"] {
  width: 100%;
  margin: 0.5rem 0 0.2rem;
  accent-color: #4f6ef7;
}

.quality-value {
  background: #e9eef3;
  padding: 0.2rem 0.9rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-compress {
  background: #4f6ef7;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 60px;
  font-weight: 600;
  color: white;
  transition: 0.15s;
  box-shadow: 0 8px 18px -6px rgba(79, 110, 247, 0.35);
}

.btn-compress:hover {
  background: #3b5adf;
  transform: scale(1.02);
  color: white;
}

.btn-compress:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.result-area {
  margin-top: 1.8rem;
  background: #f1f6fa;
  border-radius: 1.5rem;
  padding: 1.2rem;
  display: none;
}

.result-area .download-btn {
  background: #0b1e33;
  color: white;
  border-radius: 60px;
  padding: 0.5rem 1.6rem;
  border: none;
  font-weight: 500;
  transition: 0.15s;
}

.result-area .download-btn:hover {
  background: #1a2f47;
}

.result-area .badge-size {
  background: #d9e2ef;
  color: #1e293b;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
}

.footer-note {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1.2rem;
  text-align: center;
}

.security-badge {
  background: #eef2ff;
  color: #2d3b8f;
  font-size: 0.7rem;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-weight: 500;
}

.alert-security {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

@media (max-width: 480px) {
  .preview-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-img {
    width: 100%;
    height: auto;
    max-height: 140px;
  }
}