/* ===== TOOL ONLY (UNCHANGED) ===== */
.tool-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .tool-wrapper { 
    grid-template-columns: 1fr; 
    gap: 1rem;
  }
}
.image-area {
  height: 77vh;
  background: #ffffff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
canvas {
  max-width: 100%;
  max-height: 100%;
}

/* ===== FIX #2: BIGGER PROFESSIONAL SLIDER ===== */
input[type="range"] {
  width: 100%;
  height: 12px;
  margin: 16px 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  background: #4299e1;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: #4299e1;
  border-radius: 50%;
  border: none;
}

/* ===== UPDATED BUTTON STYLES TO MATCH OTHER PAGES ===== */
.controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.25;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.controls .btn-primary {
  background-color: #4299e1;
  color: white;
}

.controls .btn-primary:hover {
  background-color: #3182ce;
}

.controls .btn-secondary {
  background-color: #e2e8f0;
  color: #4a5568;
}

.controls .btn-secondary:hover {
  background-color: #cbd5e0;
}

/* ===== 2-COLUMN BUTTON LAYOUT ===== */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.button-grid .btn {
  margin-bottom: 0;
  white-space: nowrap;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
}

/* ===== FILE UPLOAD STYLING ===== */
.file-upload-wrapper {
  margin-bottom: 1.5rem;
  text-align: center;
}

.custom-file-upload {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #4299e1;
  color: white;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1.50rem;
  font-weight: 500;
  transition: background-color 0.2s;
  border: none;
  gap: 0.5rem;
}

.custom-file-upload:hover {
  background-color: #3182ce;
}

.custom-file-upload svg {
  width: 16px;
  height: 16px;
}

#file-chosen {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  color: #718096;
}

/* ===== TIGHTEN CONTROL SECTIONS ===== */
.controls h3 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
}

.controls p {
  margin-bottom: 0.5rem;
  color: #718096;
  font-size: 0.875rem;
}

.controls select {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  background-color: white;
  font-size: 0.875rem;
  width: 100%;
}

#quality {
  margin: 0.5rem 0;
}

.controls small {
  display: block;
  margin-top: 0.25rem;
  color: #718096;
  font-size: 0.75rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .button-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .button-grid .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
  
  .image-area {
    height: 40vh;
  }
}