.title-prew {
  text-align: left;
  color: #132037;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 700;
  padding: 0;
}

.card-body {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.card-footer {
  padding: 20px;
  padding-left: 0;
  padding-bottom: 0;
  padding-right: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mb-8 {
  margin-bottom: 20px;
}

.preview-container {
  position: relative;
  overflow: hidden;
}

.preview-image {
  position: relative;
  height: 300px;
  width: 930px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.preview-image.preview-1 {
  background-image: url("../images/preview_1.webp");
}

.preview-image.preview-2 {
  background-image: url("../images/preview_2.webp");
}

.preview-image.preview-3 {
  background-image: url("../images/preview_3.webp");
}

.preview-thumbnails {
  display: none;
}

.crosshair-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.crosshair-container .crosshair {
  transform: scale(1);
}

.controls-container {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  padding-bottom: 60px;
  animation: fadeIn 0.5s ease-out;
  overflow-y: auto;
  max-height: calc(100vh - 600px);
  scroll-behavior: smooth;
}

.controls-container::-webkit-scrollbar {
  width: 8px;
}

.controls-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.controls-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.controls-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr;
}


.control-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.control-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "avenir next", avenir,
    "segoe ui", "helvetica neue", helvetica, Ubuntu, roboto, noto, arial,
    sans-serif;
  color: #000000;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin: 1rem;
  margin-left: 0;
  font-weight: 600;
}

.slider-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.slider-label {
  flex: 0 0 40%;
  font-size: 14px;
  font-weight: 600;
  color: #132037;
  text-align: left;
}

.slider-with-input {
  flex: 0 0 60%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider {
  width: calc(100% - 50px);
  min-width: 0;
}

.slider-container:has(.toggle) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.slider-container:has(.toggle) .slider-label {
  min-width: 120px;
  margin-right: auto;
}

.toggle {
  margin-left: auto;
  margin-right: 0;
}

input[type="range"] {
  flex: 1;
}

.slider-container:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
}

.slider-container:has(input[type="checkbox"]) .slider-label {
  margin-right: 1rem;
}

.presets-container {
  background: #f8f9fa;
  padding: 1.1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.presets-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}



.preset-item {
  position: relative;
  width: 60px;
  height: 60px;
  background: #e2e5ed;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.preset-item:hover {
  border-color: #3460d8;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.crosshair-preview {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crosshair-preview .crosshair {
  position: relative;
  transform: scale(1);
}

.preset-item.active {
  border: 2px solid #3460d8;
  background: #d5d9e4;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 1.7rem;
  margin-top: 1rem;
}

.presets-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-container:has(.toggle) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.slider-container:has(.toggle) .slider-label {
  min-width: 120px;
  margin-right: auto;
}

/* Update the preview arrows styles */
.preview-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.background-arrow {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
}

.background-arrow svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.preview-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.preview-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid white;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.preview-dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.preview-dot.active {
  background: white;
  border-color: transparent;
}

/* Add these styles for the utility buttons */
.utility-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.utility-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.utility-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.utility-button svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.slider-with-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.slider-value {
  text-align: center;
  font-size: 14px;
  color: #132037;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 2px 6px;
  border-radius: 4px;
  outline: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

/* Specific widths based on input type */
/* For opacity values (0-1) */
.slider-value[max="1"] {
  width: 50px;
}

/* For regular values (0-20, -10-10) */
.slider-value[max="20"],
.slider-value[max="10"],
.slider-value[min="-10"] {
  width: 50px;
}

/* For RGB values (0-255) */
.slider-value[max="255"] {
  width: 50px;
}

.slider-value:hover {
  background-color: #e0e0e0;
}

.slider-value:focus {
  border-color: #3460d8;
  background-color: #ffffff;
}

/* Remove the spinner arrows from number inputs */
.slider-value::-webkit-inner-spin-button,
.slider-value::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.slider-value[type="number"] {
  -moz-appearance: textfield;
}

.slider {
  flex: 1;
  min-width: 0;
}

#crosshairProfile {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #132037;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#crosshairProfile svg {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}

.crosshairProfile {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #132037;
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.crosshairProfile svg {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}
.crosshairProfile:hover {
  background-color: #f0f0f0;
  border-color: #d0d0d0;
}
.main-body-card {
  max-width: 970px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.card {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .main-body-card {
    width: 95%;
    padding: 15px;
  }

  .preview-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .title-prew {
    font-size: 24px;
  }

  .preview-image {
    height: 200px;
  }

  .presets-section {
    flex-direction: column;
    gap: 10px;
  }

  .button-group {
    width: 100%;
    justify-content: space-between;
  }

  .controls-container {
    padding: 15px;
  }

  .slider-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .slider-with-input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .preview-image {
    height: 150px;
  }

  .presets-grid {
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 10px;
  }

  .preset-item {
    width: 45px;
    height: 45px;
  }

  .button-group {
    gap: 5px;
  }

  .copy-button, #crosshairProfile {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .main-body-card {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .card {
        overflow: visible;
    }

    .controls-container {
        max-height: none; /* Remove max-height restriction on mobile */
        padding-bottom: 20px;
    }

    .card-footer {
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .main-body-card {
        padding: 10px;
    }

    .controls-container {
        padding: 15px;
        margin-bottom: 20px;
    }
}



