/* AeroPrint Studio - Custom Stylesheet */

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4); /* slate-950/40 */
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #475569; /* slate-600 */
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #6366f1; /* brand-500 */
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Firefox scrollbars */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #475569 rgba(15, 23, 42, 0.4);
}

/* Slow Spin Animation */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

/* Custom Range Slider Styling */
input[type="range"].filter-slider,
input[type="range"]#slider-quality {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 6px 0;
}

input[type="range"].filter-slider:focus,
input[type="range"]#slider-quality:focus {
  outline: none;
}

/* Track styling */
input[type="range"].filter-slider::-webkit-slider-runnable-track,
input[type="range"]#slider-quality::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  background: #1e293b; /* slate-800 */
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

input[type="range"].filter-slider::-moz-range-track,
input[type="range"]#slider-quality::-moz-range-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  background: #1e293b;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Thumb styling */
input[type="range"].filter-slider::-webkit-slider-thumb,
input[type="range"]#slider-quality::-webkit-slider-thumb {
  height: 15px;
  width: 15px;
  border-radius: 9999px;
  background: #6366f1; /* brand-500 */
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5px;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

input[type="range"].filter-slider::-moz-range-thumb,
input[type="range"]#slider-quality::-moz-range-thumb {
  height: 15px;
  width: 15px;
  border-radius: 9999px;
  background: #6366f1;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

input[type="range"].filter-slider::-webkit-slider-thumb:hover,
input[type="range"]#slider-quality::-webkit-slider-thumb:hover {
  background: #818cf8; /* brand-400 */
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

input[type="range"].filter-slider::-moz-range-thumb:hover,
input[type="range"]#slider-quality::-moz-range-thumb:hover {
  background: #818cf8;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

/* Background checkboard grid for Transparent canvas staging */
.canvas-grid-bg {
  background-image: linear-gradient(45deg, #090d16 25%, transparent 25%), 
                    linear-gradient(-45deg, #090d16 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #090d16 75%), 
                    linear-gradient(-45deg, transparent 75%, #090d16 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #020617; /* zinc-950 / brand-950 */
}

/* Button Active states */
.btn-ratio.active {
  background-color: rgb(99 102 241 / 0.15);
  border-color: rgb(99 102 241 / 0.8);
  color: #ffffff;
}

.btn-orientation.active {
  background-color: #6366f1;
  border-color: #4f46e5;
  color: #ffffff;
}

.btn-preset.active {
  background-color: rgb(99 102 241 / 0.15);
  border-color: rgb(99 102 241 / 0.6);
}

.btn-format.active {
  background-color: #6366f1;
  border-color: #4f46e5;
  color: #ffffff;
}

/* Canvas shadow */
.canvas-container {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

/* Custom dropzone hover animations */
#dropzone:hover i {
  transform: translateY(-2px);
}
