/* ===== ODPOINT Tool Core UI ===== */

.tool-container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 15px;
}

.tool-title {
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-subtitle {
  text-align: center;
  color: #6c757d;
  margin-bottom: 30px;
}

/* Upload */
.tool-upload {
  border: 2px dashed #cfd4da;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
}

.tool-upload p {
  font-size: 16px;
  color: #495057;
}

.tool-upload button {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
}

.tool-secure {
  display: block;
  margin-top: 15px;
  font-size: 13px;
  color: #6c757d;
}

.tool-description {
  max-width: 800px;
  margin: 30px auto;
  text-align: center;
  color: #444;
  font-size: 15px;
}

/* Preview */
.tool-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

/* Card */
.tool-card {
  width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  text-align: center;
  transition: .25s ease;
  cursor: grab;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

.tool-card:active {
  cursor: grabbing;
}

.tool-image-wrapper {
  position: relative;
}

.tool-image-wrapper img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.tool-pdf-icon {
  width: 100%;
  height: 150px;
  background: #f1f3f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.pdf-icon {
  font-size: 60px;
  color: #dc3545;
}

/* Remove Button */
.tool-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(220,53,69,0.9);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Action Bar */
.tool-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.main-action-wrapper {
  display: flex;
  align-items: center;
}

.tool-actions button {
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tool-actions button:first-child {
  background: #fff;
  border: 2px dashed #0d6efd;
  color: #0d6efd;
}

.tool-actions button:last-child {
  background: #198754;
  color: #fff;
  transition: all 0.25s ease;
}

.tool-actions button:last-child:hover {
  background: #157347;        /* Slightly darker green */
  transform: translateY(-2px); /* Lift effect */
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
/* Disabled state */
.tool-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Target Size */
.tool-target-size-wrapper {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-target-size-wrapper label {
  font-weight: 600;
  margin-bottom: 8px;
}

.target-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

#targetSizeInput {
  width: 180px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-align: center;
}

/* Toast */
.tool-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #198754;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  display: none;
}