@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&display=swap');

.pdf-tool {
  font-family: 'Almarai', sans-serif;
  background: #f9f9f9;
  padding: 20px;
  text-align: center;
}

/* ====== مشترك بين الأدوات ====== */
.pdf-tool h2 {
  font-size: 22px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdf-tool h2 svg,
.pdf-tool h2 img {
  width: 24px;
  height: 24px;
}

.pdf-tool p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #333;
}

.pdf-tool input[type="file"],
.pdf-tool input[type="number"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

/* ====== أداة دمج ====== */
.pdf-tool .box {
  background: #fff;
  padding: 20px;
  max-width: 600px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pdf-tool ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: right;
}

.pdf-tool li {
  background: #e8f6f6;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 1px solid #2a7a7b;
  border-radius: 8px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdf-tool .file-icon {
  font-size: 18px;
  color: #d32f2f;
}

.pdf-tool .file-name {
  flex: 1;
  text-align: right;
  font-size: 15px;
}

.pdf-tool .remove-btn {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
  line-height: 20px;
  font-family: inherit;
}

.pdf-tool .button-group,
.pdf-tool .buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pdf-tool .merge-btn,
.pdf-tool .btn {
  padding: 10px 25px;
  background-color: #2a7a7b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.pdf-tool .merge-btn svg,
.pdf-tool .btn svg {
  fill: white;
}

.pdf-tool .merge-btn:hover,
.pdf-tool .btn:hover {
  background-color: #206262;
}

@media (max-width: 480px) {
  .pdf-tool .merge-btn,
  .pdf-tool .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ====== أداة التقسيم ====== */
.pdf-tool .container {
  background: #fff;
  padding: 30px;
  max-width: 650px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pdf-tool .range-inputs {
  margin-top: 13px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-tool .range-inputs input {
  width: 80px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

.pdf-tool .thumbnails {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.pdf-tool .thumb-box {
  width: 170px;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pdf-tool .thumb-box p {
  margin: 0 0 10px;
  font-weight: bold;
}

.pdf-tool .thumb-box canvas {
  width: 150px !important;
  height: 150px !important;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #ccc;
}
