/* ==========================================================================
   ISLAMI COMICS - ADD NEW COMIC STYLESHEET
   Matching Mockup Image 3 Pixel-Perfect Design
   ========================================================================== */

.add-comic-body {
  background-color: #f5f8f6;
}

.add-comic-stage {
  padding-bottom: 90px; /* Space for sticky bottom bar */
}

/* ==========================================================================
   1. PAGE HEADER & 4-STEP STEPPER
   ========================================================================== */
.add-comic-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 20px;
  flex-wrap: wrap;
}

.add-comic-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--card-shadow);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.step-item .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.step-item.active {
  color: var(--text-main);
}

.step-item.active .step-num {
  background: var(--brand-green);
  color: #ffffff;
}

.step-divider {
  width: 24px;
  height: 1px;
  background: #cbd5e1;
}

/* ==========================================================================
   2. MAIN 2-COLUMN GRID & SECTION CARDS
   ========================================================================== */
.add-comic-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.form-col-left,
.form-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.form-section-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
}

.form-section-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1e293b;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ==========================================================================
   3. FORM FIELDS & INPUTS
   ========================================================================== */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field-group:last-child {
  margin-bottom: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label-row label,
.form-field-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.req {
  color: #ef4444;
}

.char-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input-text {
  width: 100%;
  background: #fbfdfc;
  border: 1px solid #dbe4de;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input-text:focus,
.form-input-textarea:focus,
.form-select-custom:focus {
  background: #ffffff;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-input-textarea {
  width: 100%;
  background: #fbfdfc;
  border: 1px solid #dbe4de;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
}

.dropdowns-4grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-select-custom {
  width: 100%;
  background: #fbfdfc;
  border: 1px solid #dbe4de;
  border-radius: 8px;
  padding: 8px 10px 8px 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}

/* ==========================================================================
   4. COMIC COVER & TIPS
   ========================================================================== */
.cover-upload-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

.cover-dropzone-box {
  background: #fbfdfc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-dropzone-box:hover {
  border-color: var(--emerald);
  background: #f0fdf4;
}

.upload-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e6f4ea;
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  font-size: 15px;
}

.upload-icon-circle.large {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.dropzone-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.dropzone-sub {
  font-size: 11px;
  color: var(--text-sub);
}

.dropzone-limit {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cover-img-preview-tag {
  max-width: 100%;
  max-height: 140px;
  border-radius: 6px;
  object-fit: cover;
}

.cover-tips-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 18px;
}

.tips-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.tips-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tips-checklist li {
  font-size: 11.5px;
  color: #065f46;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tips-checklist li i {
  color: #10b981;
  font-size: 11px;
}

/* ==========================================================================
   5. COMIC FILES & BANNER NOTICE
   ========================================================================== */
.file-dropzone-box {
  background: #fbfdfc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.file-dropzone-box:hover {
  border-color: var(--emerald);
  background: #f0fdf4;
}

.dropzone-title-main {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.banner-notice-amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.banner-notice-amber i {
  color: #d97706;
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   6. COMIC SETTINGS & PRICING
   ========================================================================== */
.settings-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}

.field-label-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.type-radio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option-card {
  background: #fbfdfc;
  border: 1px solid #dbe4de;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option-card input[type="radio"] {
  display: none;
}

.radio-custom-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-option-card.active {
  background: #f0fdf4;
  border-color: var(--emerald);
}

.radio-option-card.active .radio-custom-circle {
  border-color: var(--emerald);
  background: var(--emerald);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.radio-option-text .option-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
}

.radio-option-text .option-desc {
  font-size: 11px;
  color: var(--text-sub);
}

.price-input-currency-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-sub);
}

.price-input {
  padding-left: 36px;
  font-size: 13.5px;
  font-weight: 800;
}

.discount-min-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.discount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.percent-suffix {
  position: absolute;
  right: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.min-price-display {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  padding: 9px 0;
}

/* ==========================================================================
   7. RIGHT COLUMN: CREATOR INFO & COMIC PREVIEW
   ========================================================================== */
.creator-info-3grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-icon {
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.preview-status-note {
  font-size: 11px;
  color: var(--text-muted);
}

.comic-preview-placeholder-box {
  background: #f8faf9;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book-preview-art {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preview-prompt-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.preview-prompt-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.btn-preview-upload {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn-preview-upload:hover {
  border-color: var(--emerald);
  color: var(--emerald-dark);
}

/* ==========================================================================
   8. ADDITIONAL INFORMATION & TOGGLES
   ========================================================================== */
.tags-source-2grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-helper-note {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggles-2col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f3;
}

.toggle-control-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-label-wrap {
  flex: 1;
}

.toggle-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.toggle-sub {
  font-size: 10.5px;
  color: var(--text-sub);
}

/* Custom Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .25s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
}

input:checked + .slider {
  background-color: var(--emerald);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.slider.round {
  border-radius: 999px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ==========================================================================
   9. STICKY BOTTOM ACTION BAR
   ========================================================================== */
.add-comic-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.btn-footer-cancel {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-footer-cancel:hover {
  background: #f8faf9;
  color: var(--text-main);
}

.footer-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-footer-draft {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-footer-draft:hover {
  background: #f8faf9;
  border-color: #cbd5e1;
}

.btn-footer-continue {
  background: var(--brand-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(13, 95, 67, 0.25);
}

.btn-footer-continue:hover {
  background: #08432f;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .add-comic-grid-2col {
    grid-template-columns: 1fr;
  }

  .add-comic-sticky-footer {
    left: 0;
  }
}

@media (max-width: 768px) {
  .dropdowns-4grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover-upload-layout {
    grid-template-columns: 1fr;
  }

  .settings-content-grid {
    grid-template-columns: 1fr;
  }

  .creator-info-3grid {
    grid-template-columns: 1fr;
  }

  .tags-source-2grid {
    grid-template-columns: 1fr;
  }

  .toggles-2col-row {
    grid-template-columns: 1fr;
  }
}
