/* Override Elementor's default blue gradient - Force our custom styles */
.elementor-kit-498 #lighter-designer-container button,
.elementor-kit-498 #lighter-designer-container input[type="button"],
.elementor-kit-498 #lighter-designer-container input[type="submit"],
#lighter-designer-container button,
#lighter-designer-container input[type="button"],
#lighter-designer-container input[type="submit"] {
  background-image: none !important;
  background-color: transparent !important;
}

/* Force color buttons to keep their specific colors */
.elementor-kit-498 #lighter-designer-container .color-buttons button[data-color="beyaz"],
#lighter-designer-container .color-buttons button[data-color="beyaz"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #333 !important;
}

.elementor-kit-498 #lighter-designer-container .color-buttons button[data-color="mavi"],
#lighter-designer-container .color-buttons button[data-color="mavi"] {
  background: #0066ff !important;
  background-image: none !important;
  color: white !important;
}

.elementor-kit-498 #lighter-designer-container .color-buttons button[data-color="kirmizi"],
#lighter-designer-container .color-buttons button[data-color="kirmizi"] {
  background: #ff0000 !important;
  background-image: none !important;
  color: white !important;
}

/* Force WhatsApp button to keep green gradient */
.elementor-kit-498 #lighter-designer-container #sendWhatsappButton,
#lighter-designer-container #sendWhatsappButton {
  background: linear-gradient(45deg, #25D366, #128C7E) !important;
  background-image: linear-gradient(45deg, #25D366, #128C7E) !important;
  color: white !important;
}



/* Force rotate controls to not have the blue gradient */
.elementor-kit-498 #lighter-designer-container .rotate-controls button,
#lighter-designer-container .rotate-controls button {
  background: rgba(255,255,255,0.1) !important;
  background-image: none !important;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
}

.elementor-kit-498 #lighter-designer-container .rotate-controls button:hover,
#lighter-designer-container .rotate-controls button:hover {
  background: rgba(255,255,255,0.2) !important;
  background-image: none !important;
  border-color: rgba(255,255,255,0.6) !important;
}

#lighter-designer-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%) !important;
  padding: 20px;
  min-height: 80vh;
  margin: 20px 0;
  color: #333;
  border-radius: 15px;
}

#lighter-designer-container h2 {
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 300;
}

/* Color Selection Buttons */
.color-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.color-buttons button {
  padding: 12px 24px;
  border: 3px solid transparent;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

/* Remove the gradient animation overlay */

.color-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.color-buttons button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Selected button styling */
.color-buttons button.selected {
  border: 3px solid #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.5), 0 4px 15px rgba(0,0,0,0.2);
}

/* Specific color button styles - Force these colors */
.color-buttons button[data-color="beyaz"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #333 !important;
  border-color: rgba(0,0,0,0.1) !important;
}

.color-buttons button[data-color="beyaz"].selected {
  border: 3px solid #333 !important;
  box-shadow: 0 0 15px rgba(51,51,51,0.5), 0 4px 15px rgba(0,0,0,0.2) !important;
}

.color-buttons button[data-color="mavi"] {
  background: #0066ff !important;
  background-image: none !important;
  color: white !important;
}

.color-buttons button[data-color="kirmizi"] {
  background: #ff0000 !important;
  background-image: none !important;
  color: white !important;
}

.mockup-container {
  position: relative;
  width: 230px;
  height: 500px;
  margin: 0 auto 20px auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  overflow: visible;
  z-index: 1;
}

.mockup-base {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  max-width: 100%;
  object-fit: contain;
}

.overlay {
  position: absolute;
  top: 30%;
  left: 25%;
  width: 50%;
  height: 35%;
  transform-origin: center center;
  cursor: move;
  border: 2px dashed rgba(255,255,255,0.8);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 100;
  display: none;
}

/* Overlay is now draggable */
.overlay.active {
  pointer-events: auto;
  cursor: move;
}

.overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: none;
}

.overlay.active img {
  display: block;
}

.overlay.active {
  pointer-events: auto;
  display: block;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  cursor: move;
}

/* File Input Styling - Custom Turkish Button */
.upload-section {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hide the default file input */
#designImageUpload {
  display: none !important;
}

/* Custom file upload label that acts as button */
.custom-file-upload {
  width: 300px;
  padding: 20px;
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 15px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  box-sizing: border-box;
}

.custom-file-upload:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Turkish button text */
.upload-button {
  display: inline-block;
  background: linear-gradient(45deg, #43e97b, #38f9d7) !important;
  background-image: linear-gradient(45deg, #43e97b, #38f9d7) !important;
  color: white !important;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.upload-text {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
}

/* Override Elementor for file upload button */
.elementor-kit-498 .custom-file-upload .upload-button,
.custom-file-upload .upload-button {
  background: linear-gradient(45deg, #43e97b, #38f9d7) !important;
  background-image: linear-gradient(45deg, #43e97b, #38f9d7) !important;
  color: white !important;
}

/* Progress Bar */
#upload-progress {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #43e97b, #38f9d7);
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-animation 2s infinite;
}

@keyframes progress-animation {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Rotate Controls */
.rotate-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.rotate-controls button {
  padding: 12px 20px;
  font-size: 18px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(45deg, #43e97b, #38f9d7);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
  font-weight: bold;
}

.rotate-controls button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(67, 233, 123, 0.4);
}

.rotate-controls button:active {
  transform: translateY(0) scale(1);
}

/* Range Input Styling */
label {
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

input[type="range"] {
  width: 150px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

hr {
  margin: 30px 0;
  width: 250px;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

/* Form Styling */
.submission-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 280px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.submission-form h4 {
  margin: 0 0 10px 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.submission-form label {
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.submission-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.submission-form input[type="email"],
.submission-form input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.submission-form input[type="email"]::placeholder,
.submission-form input[type="number"]::placeholder {
  color: rgba(255,255,255,0.7);
}

.submission-form input[type="email"]:focus,
.submission-form input[type="number"]:focus {
  outline: none;
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

/* Number input minimum value styling */
.submission-form input[type="number"] {
  min-value: 1000;
}

/* Send Options Buttons */
#sendOptions {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

#sendWhatsappButton {
  display: inline-block;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  min-width: 200px;
  background: linear-gradient(45deg, #25D366, #000) !important;
  background-image: linear-gradient(45deg, #25D366, #000) !important;
  color: white !important;
  text-decoration: none;
  text-align: center;
}

#sendWhatsappButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}


/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  #lighter-designer-container {
    padding: 15px;
    min-height: auto;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%) !important;
  }
  
  #lighter-designer-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .color-buttons {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
  }
  
  .color-buttons button {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .mockup-container {
    width: 180px;
    height: 400px;
    padding: 10px;
    margin: 0 auto 20px;
  }
  
  .overlay {
    width: 50%;
    height: 35%;
    top: 30%;
    left: 25%;
  }
  
  .custom-file-upload {
    width: 90%;
    max-width: 280px;
    padding: 15px;
    font-size: 14px;
  }
  
  .rotate-controls button {
    padding: 10px 15px;
    font-size: 16px;
  }
  
  .submission-form {
    width: 90%;
    max-width: 300px;
    padding: 20px;
  }
  
  input[type="range"] {
    width: 120px;
  }
}

@media (max-width: 480px) {
  #lighter-designer-container {
    padding: 10px;
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%) !important;
  }
  
  #lighter-designer-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .color-buttons button {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .mockup-container {
    width: 150px;
    height: 350px;
    padding: 8px;
  }
  
  .overlay {
    width: 50%;
    height: 35%;
    top: 30%;
    left: 25%;
  }
  
  .custom-file-upload {
    padding: 12px;
    font-size: 13px;
  }
  
  .upload-button {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .rotate-controls {
    gap: 8px;
  }
  
  .rotate-controls button {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .submission-form {
    padding: 15px;
  }
  
  .submission-form h4 {
    font-size: 16px;
  }
  
  #sendWhatsappButton {
    padding: 12px 20px;
    font-size: 12px;
    min-width: 150px;
  }
} 