/* ============================================================
   Softbook AI — Clean Wizard Styles (No Animations)
   Glassmorphism • Gallery • Color Swatches
============================================================ */

/* GLOBAL */
:root {
  --glass-bg: rgba(255,255,255,0.14);
  --glass-bg-heavy: rgba(255,255,255,0.20);
  --glass-border: rgba(255,255,255,0.28);

  --brand1: #6d5ffc;
  --brand2: #46c2ff;
  --brand3: #ff7eb3;

  --text-light: rgba(255,255,255,1);
  --text-dim: rgba(255,255,255,0.78);
}

body {
  /*background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));*/
  background: linear-gradient(90deg, #e46b6b, var(--brand2), var(--brand3));
  background-size: 300% 300%;
  color: #fff;
  font-family: "Inter", sans-serif;
  padding-top: 90px;
  overflow-x: hidden;
}

/* ============================================================
   NAVBAR — matching Create Story
============================================================ */
.premium-navbar {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.navbar-brand,
.navbar-brand span {
  color: #fff !important;
}

.btn-nav {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 12px;
  padding: 6px 12px;
}
.btn-nav:hover {
  background: rgba(255,255,255,0.18);
}

/* ============================================================
   WIZARD LAYOUT
============================================================ */
.wizard-wrapper {
  max-width: 780px;
  margin-top: 30px;
}

.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
  margin-bottom: 50px;
}

.wizard-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 2.4rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.wizard-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
}

.btn.wizard-btn {
  background: linear-gradient(90deg, #ff7e87, #bc5dff);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 14px;
  padding: 12px 22px;
  width: 30vw;
}

.btn.wizard-btn-outline {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 600;
  border-radius: 14px;
  padding: 12px 22px;
}

/* ============================================================
   PROGRESS BAR
============================================================ */
.wizard-progress {
  margin-bottom: 30px;
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  border-radius: 6px;
  background: rgba(255,255,255,0.25);
}

.progress-bar-fill {
  height: 5px;
  border-radius: 6px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand2), var(--brand3));
}

/* ============================================================
   INLINE ALERT
============================================================ */
.glass-alert {
  background: rgba(255, 80, 80, 0.28);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* ============================================================
   INPUTS / FLOATING FIELDS
============================================================ */
.floating-group {
  position: relative;
  margin-bottom: 32px;
}

.floating-group input,
.floating-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  border: none;
  outline: none;
  color: #fff;
}

.floating-group label {
  position: absolute;
  top: -11px;
  left: 14px;
  background: rgba(0,0,0,0.35);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.glass-input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 12px;
  height: 48px;
  padding-left: 12px;
  color: #fff;
}
.glass-input option {
  background: #1f1f1f;
  color: #fff;
}

/* ============================================================
   COLOR SWATCHES (Story-Style)
============================================================ */
.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.40);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.color-swatch.selected {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.85);
}

/* ============================================================
   UPLOAD BOXES
============================================================ */
.upload-box {
  /*background: rgba(255,255,255,0.14);*/
  border: 1px solid rgba(255,255,255,0.28);
  padding: 1.6rem;
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.preview-image {
  width: auto;
  max-width: 100%;
  max-height: 220px;
  border-radius: 14px;
  object-fit: contain;
  margin-top: 12px;
  display: block;
}

.btn-glass {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.26);
  color: white;
  border-radius: 12px;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.26);
}

/* Notes under upload area */
.custom-note {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ============================================================
   GALLERY MODAL (taken from create-story)
============================================================ */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.gallery-modal.open {
  display: flex;
}

.gallery-content {
  width: 92%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.35);
  position: relative;
}

.gallery-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.gallery-upload-box{
  text-align: center;
}

.gallery-upload-box label {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.gallery-grid{
  display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 12px
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.16);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.gallery-delete {
position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 0, 0, 0.7);
    border: none;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
}
.custom-alert-text{
      font-size: x-small;
      font-style: italic;
      color: #9b9b9b !important;
}

.gallery-item:hover .gallery-delete {
  opacity: 1;
}

/* Spinner */
.gallery-spinner {
  text-align: center;
}

.preview-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
}

/* Optional remove button overlay for preview images */
.preview-image-wrapper {
  position: relative;
  display: inline-block;
}

.preview-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(255,50,50,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}


/* ============================================================
   LOADING OVERLAY
============================================================ */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 30000;
}
.loading-overlay.show {
  display: flex;
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 768px) {
  .wizard-card {
    padding: 1.7rem;
  }

  .wizard-actions {
    flex-direction: column;
    gap: 12px;
  }

  .preview-image {
    height: 160px;
  }

  .btn.wizard-btn {
    width: 100%;
  }
}

/* White transparent placeholders (50%) */
::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important; /* ensures browsers don't reduce opacity further */
}

/* For textarea placeholders */
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* For input placeholders */
input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}
    .logo-text{
      color: #fff !important;
      font-weight: 600;
      font-size: 1rem;
    }
    .logo-text small {
  opacity: 0.8;
  font-size: 0.85rem;
  font-weight: 400;
}



/* BEFORE AFTER */

  .ba-wrapper {
    max-width: 400px;;
  }

  .ba-container {
    position: relative;
    width: 100%;
	
	    max-height: 260px;
    overflow: hidden;
    user-select: none;
    border-radius: 8px;
    background: #fff;
  }

  .ba-container img {
    display: block;
    width: 100%;
	  height: 100%;
	  object-fit: cover;
    object-position: top;
  }

  .ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    overflow: hidden;
  }

  .ba-after img {
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(60%);
  }

  .ba-handle {
    position: absolute;
    top: 0;
    left: 20%;
    width: 3px;
    height: 100%;
    background: #ffffff;
    cursor: ew-resize;
    z-index: 10;
  }

  .ba-handle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 2px solid #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .ba-handle::after {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #333;
    font-weight: bold;
  }

  .ba-label {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 4px;
    z-index: 5;
  }

  .ba-label.before {
    left: 12px;
  }

  .ba-label.after {
    right: 12px;
  }

.glass-suggestion {
    border-radius: 20px;
    font-size: small;
    border: 1px solid rgb(116 116 116 / 22%);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


  .glass-suggestion:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
  }

  .glass-suggestion i {
    margin-right: 6px;
  }

  .prompt-suggestions p{
    font-size: small;
  }

 .wizard-progress{
      position: fixed;
    top: 54px;
    left: 0;
    z-index: 10000;
    width: 100%;
 }



 /* ============================================================
   VARIATION SLIDER
============================================================ */

.variation-wrapper {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 18px;
}

.variation-slider-container {
  position: relative;
  margin-top: 10px;
}

/* Slider */
.variation-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 4px;
  outline: none;
}

.variation-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff7e87, #bc5dff);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
}

.variation-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff7e87, #bc5dff);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
}

/* Dots */
.variation-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.variation-dots .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s ease;
}

.variation-dots .dot.active {
  background: linear-gradient(135deg, #ff7e87, #bc5dff);
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
}
/* ============================================================
   VARIATION PREFERENCES (MULTI SELECT)
============================================================ */

.variation-pref-wrapper {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 16px;
}

.variation-pref-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variation-pref-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-weight: 500;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.variation-pref-option i {
  font-size: 1.2rem;
  opacity: 0.9;
}

.variation-pref-option:hover {
  background: rgba(255,255,255,0.18);
}

.variation-pref-option.selected {
  background: linear-gradient(135deg, #ff7e87, #bc5dff);
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.6);
}


/* ============================================================
   INGREDIENT OPTIONS (MATCH VARIATION STYLE)
============================================================ */

.ingredient-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ingredient-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-weight: 500;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-option i {
  font-size: 1.25rem;
  opacity: 0.9;
}

.ingredient-option:hover {
  background: rgba(255,255,255,0.18);
}

.ingredient-option.selected {
  background: linear-gradient(135deg, #ff7e87, #bc5dff);
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.6);
}

    .section-title {
      font-weight: 700;
      color: #a5b4fc;
      border-left: 4px solid #a5b4fc;
      padding-left: 0.5rem;
      margin-top: 1.5rem;
    }
.single-wizard hr{
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.upload-box hr{
  margin-top: 0;
  margin-bottom: 0;
}
#btnNext1{
  width: 100%;
}