: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: 95%;
  display: none;
  width: 2px;
  margin: 0.5;
}


.input-section,
.output-section {
  padding: 0.5rem;
  border: none;
  height: auto;
}

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

/* ==========================================================================
   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: #757682;
  margin-bottom: 0.5rem;
}

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


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

.action-btns {
  height: 2.3125rem;
}

.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;
}
/* ==========================================================================
   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;
  /* optional: subtle rounding */
}

/* 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;
  /* slightly darker border on hover */
}

/* 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
   ========================================================================== */
.field-group {
    display: flex;
    flex-direction: column;
}

.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;
    max-height: 2.315rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

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

.input-group-custom {
  position: relative;
}

#description-textarea {
  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: 700;
    color: #757682;
    margin-bottom: 0.4rem;
}

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

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

/* ==========================================================================
   CONFIGURATIONS BTNS
   ========================================================================== */
.faqs-configuration-dropdowns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
}
#faqs-tone-dropdown-container, #faqs-language-dropdown-container, #outlines-types-dropdown-container, #outlines-count-dropdown-container  {
  min-height: 40px;
  width: 100%;
}


/* ==========================================================================
   RESULT SECTIONS
   ========================================================================== */

/* Container Styles */
#generated-output-result {
    height: 100%;
    overflow-y: auto;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* FAQ Card Styles */
.faq-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;
}

.faq-card:hover {
    border-color: #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* FAQ Header Styles */
.faq-header {
    border-bottom: 2px solid #F1F1F1;
    padding-bottom: 0.75rem;
}

.faq-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-505050);
    letter-spacing: 0.5px;
    background: #F8F9FA;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #E9ECEF;
}

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

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

.faq-answer {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
}

.faq-question strong,
.faq-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);
}

/* .copy-btn svg {
    width: 16px;
    height: 16px;
    color: #6B7280;
} */




/*==========================================================================
  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 */
  }
  #generated-output-result::-webkit-scrollbar {
    display: none !important;             /* Chrome, Safari, Opera */
  }
}

/* Tablet and Up */
@media (min-width: 768px) {
  
}

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

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

  .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 */
}