/* ------------------------------
   Global Styles
------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f7fb;
  color: #333;
  padding: 40px;
}

/* ------------------------------
   Main Container
------------------------------ */

.container {
  max-width: 900px;
  margin: auto;
  background: white;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ------------------------------
   Heading
------------------------------ */

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 35px;
}

/* ------------------------------
   Upload Box
------------------------------ */

.upload-box {
  border: 2px dashed #4a90e2;
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  background: #fafcff;
  transition: 0.3s;
}

.upload-box:hover {
  background: #f2f8ff;
}

.upload-box input {
  display: none;
}

.upload-box label {
  display: inline-block;
  padding: 14px 28px;
  background: #4a90e2;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.upload-box label:hover {
  background: #3578d4;
}

.upload-box p {
  margin-top: 18px;
  color: #777;
}

/* ------------------------------
   Selected Images
------------------------------ */

#selected-images {
  margin-top: 30px;
}

.selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 18px;

  border: 1px solid #e5e7eb;
  border-radius: 8px;

  margin-bottom: 10px;

  background: #fafafa;
}

/* ------------------------------
   Compress Button
------------------------------ */

#compress-btn {
  width: 100%;

  margin-top: 25px;

  padding: 16px;

  border: none;

  border-radius: 10px;

  background: #27ae60;

  color: white;

  font-size: 18px;

  cursor: pointer;

  transition: 0.3s;
}

#compress-btn:hover {
  background: #1e9d54;

  transform: translateY(-2px);
}

/* ------------------------------
   Loader
------------------------------ */

#loader {
  display: none;

  margin-top: 25px;

  text-align: center;

  color: #4a90e2;

  font-size: 18px;

  font-weight: bold;
}

/* ------------------------------
   Results
------------------------------ */

#results {
  margin-top: 40px;
}

/* ------------------------------
   Result Card
------------------------------ */

.result-card {
  background: white;

  border-left: 6px solid #4a90e2;

  border-radius: 12px;

  padding: 20px;

  margin-bottom: 20px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

  transition: 0.3s;
}

.result-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
  color: #2c3e50;

  margin-bottom: 15px;
}

.result-card p {
  margin-bottom: 8px;

  color: #555;
}

/* ------------------------------
   Download Button
------------------------------ */

.download-btn {
  margin-top: 15px;

  padding: 12px 24px;

  background: #3498db;

  color: white;

  border: none;

  border-radius: 8px;

  cursor: pointer;

  transition: 0.3s;

  font-size: 15px;
}

.download-btn:hover {
  background: #2980b9;
}

/* ------------------------------
   Mobile
------------------------------ */

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 20px;
  }

  .selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 14px 18px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    margin-bottom: 12px;

    background: white;
  }

  .result-card {
    padding: 18px;
  }

  .file-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    white-space: nowrap;
  }

  .remove-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 28px;
    height: 28px;

    border: none;
    outline: none;

    border-radius: 50%;

    background-color: #ef4444;
    color: white;

    cursor: pointer;

    font-size: 16px;
    font-weight: bold;

    flex-shrink: 0;

    transition: all 0.2s ease;
  }

  .remove-btn:hover {
    background-color: #dc2626;
    transform: scale(1.1);
  }
}
