/* Default body styling */
body {
  font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d001a;
  animation: backgroundTintFade 20s ease-in-out infinite;
  margin: 0;
  padding: 0;
  color: white;
  height: 100%;
  position: relative;
  z-index: 0;
}

/* Animated tint */
@keyframes backgroundTintFade {
  0% { background-color: #0d001a; }
  25% { background-color: #1a0033; }
  50% { background-color: #2c0056; }
  75% { background-color: #1a0029; }
  100% { background-color: #0d001a; }
}

/* Overlay only for desktop via pseudo-element */
@media (min-width: 1025px) {
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://ilovehue.app/wp-content/uploads/2025/07/777.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: overlay;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
  }
}

/* Floating Header */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(72, 0, 67, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-text {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center;
  margin: 100px 0 0px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 15px 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: static;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  min-height: 100vh;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #e879f9, #ffecb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 400;
}

/* Main Content Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.controls-section {
  height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.controls-section::-webkit-scrollbar {
  width: 6px;
}

.controls-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.controls-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.controls-section::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.preview-section {
  position: sticky;
  top: 20px;
  height: fit-content;
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .controls-section {
    height: auto;
    overflow-y: visible;
  }
  
  .preview-section {
    position: static;
  }
}

/* Modern Card */
.modern-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.modern-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #ffffff;
}

/* Control Groups */
.control-group {
  margin-bottom: 20px;
}

.control-group-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.control-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.control-label-inline {
  display: block;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  min-width: 120px;
  flex-shrink: 0;
}

/* Modern Slider */
.modern-slider {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 8px;
}

.modern-slider-inline {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.modern-slider,
.modern-slider-inline {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.modern-slider::-webkit-slider-thumb,
.modern-slider-inline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.modern-slider::-moz-range-thumb,
.modern-slider-inline::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.slider-value {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  min-width: 60px;
  text-align: center;
  padding: 4px 8px;
  outline: none;
}

.slider-value:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Modern Color Input */
.modern-color-input {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  overflow: hidden;
}

.modern-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.modern-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

/* Modern Checkbox */
.modern-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.modern-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #e879f9, #c084fc);
  border-color: rgba(255, 255, 255, 0.4);
}

.modern-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: white;
  font-weight: bold;
  font-size: 12px;
}

/* Modern Select */
.modern-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
}

.modern-select option {
  background: #1a0033;
  color: white;
}

/* Preview Container */
.preview-container {
  background: linear-gradient(135deg, #1a0033, #2c0056);
  background-image: url('background.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-blend-mode: overlay;
  border-radius: 20px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.glassmorphism-preview {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-align: center;
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.glassmorphism-preview h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.glassmorphism-preview p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-button.active {
  color: #e879f9;
  border-bottom-color: #e879f9;
}

.tab-button:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Tab Content */
.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.code-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
}

.copy-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Code Blocks */
pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

code {
  color: #e879f9;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 140px 15px 30px;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .modern-card {
    padding: 24px;
  }
  
  .offer-text {
    font-size: 1rem;
  }
  
 
}