/* ======= Global Styles ======= */
body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fff7ed, #ffe6cc);
  margin: 0;
  padding: 0;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* ======= Tool Page Layout ======= */
.tool-page {
  text-align: center;
  padding: 80px 20px;
  max-width: 800px;
  width: 100%;
  margin: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  margin-top: 80px;
  animation: fadeIn 0.9s ease-in-out;
}

/* ======= Headings ======= */
.tool-page h1 {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #ff7a00, #ffb347);
  .tool-page h1 {
  color: #ff7a00; /* fallback color for Safari */
}

  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.tool-page p {
  color: #475569;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* ======= Upload Section ======= */
.compressor-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#imageUpload {
  padding: 10px;
  border: 2px dashed #f59e0b;
  background: #fff8eb;
  border-radius: 15px;
  width: 80%;
  max-width: 400px;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

#imageUpload:hover {
  border-color: #ff7a00;
}

/* ======= Buttons ======= */
#compressBtn {
  background: linear-gradient(135deg, #ff8c00, #ffb84d);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

#compressBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.5);
}

/* ======= Result Section ======= */
.result-container {
  margin-top: 30px;
  text-align: center;
}

#resultText {
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 15px;
}

#downloadLink {
  display: none;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

#downloadLink:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}


/* ======= Animations ======= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======= Responsive ======= */
@media (max-width: 600px) {
  .tool-page {
    padding: 60px 15px;
  }

  .tool-page h1 {
    font-size: 1.9rem;
  }

  #imageUpload {
    width: 100%;
  }
}
