:root {
  --header-text-color: #485c6e;
  --border-color: #f1f1f1;
}

/* body {
  font-family:
    "Satoshi",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
} */

.content-container {
  background-color: white;
  border: 1px solid var(--border-color);
  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.12);
  overflow: visible;
}

.header-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 700;
  color: var(--header-text-color);
}

.header-desc {
  font-size: clamp(0.875rem, 1vw + 0.25rem, 1rem);
  font-weight: 400;
  color: var(--header-text-color);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 500px;
}

.separator {
  background-color: #f1f1f1;
  margin: auto;
  height: 100%;
  display: none;
  width: 1px;
  margin: 0.5;
}

.input-section,
.output-section {
  padding: 0.8rem;
  border: none;
}
.input-section {
  padding-bottom: 0;
}

.form {
  padding-top: 2px;
}

.section-title {
  margin-bottom: 1rem;
  border-bottom: 2px solid #f1f1f1;
  padding: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-505050);
}

.regenerate {
  background: url("./svg/regenerate.svg") no-repeat center 12px;
  background-size: clamp(13px, 3vw, 12px);
  height: 33px;
  width: 10px;
  border-radius: 8px;
  padding-left: 35px;
  display: none;
  display: block;
  cursor: pointer;
  box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.3);

  filter: brightness(0) saturate(100%) invert(61%) sepia(5%) saturate(930%)
    hue-rotate(197deg) brightness(93%) contrast(87%);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.empty-state {
  min-height: 250px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  color: #bebebe;
}

.empty-state h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.856rem;
  color: #757682;
  margin: 0;
}

#covers-question-count-progressbar {
  min-height: 48px; /* or whatever matches your progress bar */
}

.empty-state {
  min-height: 250px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  color: #bebebe;
}

/* New walkthrough styles */
.walkthrough-container {
  height: 95%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  margin: 0 auto;
}

.walkthrough-header {
  margin-bottom: 3.5rem;
}

.walkthrough-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 0.5rem;
}

.walkthrough-header p {
  font-size: 0.875rem;
  color: #757682;
  margin: 0;
}

.walkthrough-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
  text-align: left;
}

.walkthrough-step {
  counter-increment: step-counter;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  text-align: left;
}

.walkthrough-step:last-child {
  margin-bottom: 0;
}

.step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #3b82f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  position: relative;
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2f2f2f;
  margin-bottom: 0.25rem;
}

.step-description {
  font-size: 0.825rem;
  color: #757682;
  line-height: 1.4;
  margin: 0;
}

/* Icons for each step */
.upload-icon {
  background: url("./svg/walkthrough-upload.svg") no-repeat 0px center;
  background-size: 100%;
  padding-left: 35px;
}

.details-icon {
  background: url("./svg/walkthrough-notes.svg") no-repeat 0px center;
  background-size: 100%;
  padding-left: 35px;
}

.generate-icon {
  background: url("./svg/walkthrough-generate.svg") no-repeat 0px center;
  background-size: 100%;
  padding-left: 35px;
}

.seperator {
  width: 100%;
  height: 30px;
  background-color: #f2f2f9;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.action-btns {
  height: 2.3125rem;
  margin-top: 5px;
}

.header-action-btns {
  display: flex;
  gap: 0.5rem;
  height: 2.25rem;
}

.btn-primary {
  background: var(--color-primary-light);
  border: none;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--color-primary-dark);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn-loading-spinner {
  border: 1px solid #f3f4f6;
  border-top: 1px solid var(--color-primary-light);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

.upload {
  padding: 0.6em 1.5em;
  padding-right: 0;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 400;
  background: #eee;
  font-size: 14px;
}

.upload {
  position: relative;
  border: 2px dashed transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 8px;
  background: #f8f9fa;
  color: #333;
  font-weight: 500;
}

/* Drag over state - applied via JavaScript */
.upload.drag-over {
  background-color: #e3f2fd !important;
  border-color: #2196f3 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3) !important;
}

/* Optional: Add an icon to indicate drag and drop capability */
.upload {
  background: url("./svg/upload-outline.svg") no-repeat 10px center;
  background-size: clamp(20px, 3vw, 19px);
  padding-left: 35px;
}

/* Animation for better UX */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.upload:active {
  animation: pulse 0.3s ease;
}

/* Optional: Create a dedicated drop zone wrapper */
.drop-zone {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 10px;
  /* padding: 20px; */
  text-align: center;
  transition: all 0.3s ease;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 10px;
}

.drop-zone.drag-over {
  border-color: #2196f3;
  background-color: #f0f8ff;
  transform: scale(1.02);
}

.drop-zone p {
  margin: 10px 0;
  color: #666;
}

.after {
  color: #265baa;
  border: 2px solid #265baa;
  border-radius: 9px;
  background: url(./svg/rotate-right.svg) no-repeat 10px center;
  background-size: clamp(20px, 3vw, 19px);
  padding-left: 35px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

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

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-secondary {
  border: 1px solid #f1f1f1;
  box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.12);
  width: 2.25rem;
  height: auto;
  background-color: white;
  color: #485c6e;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0.375rem;
}

/* Hover state */
.btn-secondary:hover:not(:disabled) {
  background-color: #f9fafb;
  /* light gray */
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  border-color: #e5e7eb;
}

/* Disabled state */
.btn-secondary:disabled {
  background-color: #f5f5f5;
  color: #a1a1aa;
  border-color: #e5e5e5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==========================================================================
   INPUT TEXTAREA LIMIT
   ========================================================================== */

.left-scroll {
  height: 652px;
  overflow-y: scroll;
  padding-right: 3px;
  padding-left: 3px;
  margin-top: 3px;
  /* margin-bottom: 8px; */

  /* Hide scrollbar for Chrome, Safari, Edge */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.left-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.field-group {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-grey-700);
  margin-bottom: 6px;
}

.field-label .optional {
  font-weight: 400;
  color: var(--color-grey-300);
}

.field-input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

/* ==========================================================================
   INPUT TEXTAREA LIMIT
   ========================================================================== */

.label-upload {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.input-group-custom {
  position: relative;
  margin-top: 13px;
}

#cover-description-textareaRes {
  min-height: 80px;
  /* max-height: 140px; */
  resize: vertical;
}

.char-counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: #6b7280;
  background: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.char-limit-warning {
  color: #f59e0b;
}

.char-limit-error {
  color: #ef4444;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #2f2f2f;
  margin-bottom: 0.4rem;
}

/* Show '*' mark in red for required labels */
.form-label.required::after {
  content: " *";
  color: red;
  font-weight: 500;
}

/* Show (Optional) in gray for optional labels */
.form-label.optional::after {
  content: " (Optional)";
  font-weight: 500;
  color: #a0a0a0;
}

/* ==========================================================================
   CONFIGURATIONS BTNS
   ========================================================================== */

/*==========================================================================
  covers CARDS
  ========================================================================== */
/* Container Styles */
#generated-output-result {
  height: 100%;
  overflow-y: auto;
  flex-direction: column;
}

#generated-output-result {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

/* cover Card Styles */
.cover-card {
  background: #fbfbfd;
  border: 1px solid #f1f1f1;
  border-radius: 12px;
  padding: 1.5rem 1.125rem;
  /* margin-bottom: 0.7rem; */
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* cover Header Styles */
.cover-header {
  padding-bottom: 0.75rem;
}

.cover-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-505050);
  letter-spacing: 0.5px;
}

/* cover Content Styles */
.cover-content {
  padding-top: 0.75rem;
}

.cover-question {
  font-size: 1rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

#cover-template {
  font-size: 16px;
  background: #fbfbfd;
  line-height: 1.6;
  font-weight: 400;
  border-radius: 12px;
  white-space: pre-wrap;
  font-family: inherit;
  padding: 0.85rem;
  overflow-y: auto;
}

.cover-question strong,
.cover-answer strong {
  color: #374151;
  font-weight: 600;
}

/* Copy Button Styles */
.copy-btn {
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.copy-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.copy-btn:active {
  transform: scale(0.95);
}

.generating-text {
  font-style: italic;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.generating-text::after {
  content: "";
  width: 4px;
  height: 20px;
  background: currentColor;
  animation: blink 1s infinite;
}

#loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  background-color: #fbfbfd;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
}

.loading-progress-bar {
  width: 50%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #265baa;
  border-radius: 3px;
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% {
    width: 20%;
  }
  50% {
    width: 80%;
  }
  100% {
    width: 20%;
  }
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/*==========================================================================
  RESPONSIVE DESIGN - BREAKPOINTS
  ========================================================================== */

/* Small Mobiles */
@media (max-width: 479px) {
  /* smallest mobile devices */
}

/* ToDo: Need to refactor this breakpoint */
/* Mobile Only (0px to 767px) */
@media (max-width: 767px) {
  /* Hiding scrollbar for mobile devices for output panel */
  #generated-output-result {
    -ms-overflow-style: none !important; /* IE and Edge */
    scrollbar-width: none !important; /* Firefox */
  }

  .left-scroll {
    height: auto;
    overflow-y: auto;
    padding-right: 0px;
  }

  .section-title {
    border-top: 2px solid #f1f1f1;
  }

  .input-group-custom {
    margin-top: 21px;
  }
}

/* Tablet and Up */
@media (min-width: 768px) {
  .walkthrough-header h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2f2f2f;
    margin-bottom: 0.5rem;
  }

  .walkthrough-header p {
    font-size: 1.1rem;
    color: #757682;
    margin: 0;
  }
}

/* Desktop and Up */
@media (min-width: 1024px) {
  /* Desktop and larger */

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

  .separator {
    display: block;
  }

  .input-action-btns-container {
    flex-direction: row;
  }
}

@media (max-width: 768px) and (min-height: 1024px) {
  /* Target tablet portrait */
}

/* Large Desktop and Up */
@media (min-width: 1280px) {
  /* Large desktop and larger */
}

/* =======================
   ORIENTATION BREAKPOINTS
   ======================= */

/* Portrait orientation */
@media (orientation: portrait) {
  /* Portrait mode styles */
}

/* Landscape orientation */
@media (orientation: landscape) {
  /* Landscape mode styles */
}

/* Mobile landscape specifically */
@media (max-width: 767px) and (orientation: landscape) {
  /* Mobile in landscape */
}
