/* ========== STUDY QUESTIONNAIRE STYLES ========== */

/* Preserve font awesome icon styling - DO NOT override FontAwesome */
/* FontAwesome icons should keep their own font-family and styling */

/* Apply DM Sans only to text content elements */
.ba-study-panel,
.ba-study-panel p,
.ba-study-panel h1,
.ba-study-panel h2,
.ba-study-panel h3,
.ba-study-panel h4,
.ba-study-panel h5,
.ba-study-panel h6,
.ba-study-panel button,
.ba-study-panel label,
.ba-study-panel textarea,
.ba-study-panel input,
.ba-study-welcome-content,
.ba-question-text,
.ba-option-desc {
  font-family: 'DM Sans', 'Roboto', sans-serif !important;
  font-size: 15px;
  color: #18181A;
  line-height: 20px;
  letter-spacing: 0;
}

/* Set font weight for headings only */
.ba-study-panel h3,
.ba-study-panel h5 {
  font-weight: 700;
}

/* WELCOME SCREEN */
.ba-study-welcome {
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.ba-study-welcome-content {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 40px 35px;
  border-radius: 4px;
  margin-bottom: 35px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ba-study-welcome-content p {
  font-size: 15px;
  line-height: 1.85;
  color: #4b5563;
  margin: 18px 0;
  text-align: left;
}

.ba-welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 20px;
}

.ba-welcome-closing {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 0;
  margin-top: 25px;
}

.ba-btn-start {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.ba-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* SCRIPTURE SELECTION */
.ba-study-scripture {
  padding: 30px;
}

.ba-study-scripture h4,
.ba-study-theme h4,
.ba-study-mode h4 {
  margin: 0 0 28px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  text-align: left;
}

.ba-scripture-options {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ba-option-section {
  background: white;
  padding: 28px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ba-option-section h5 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-option-section h5 i {
  font-size: 15px;
  color: #3b82f6;
}

.ba-option-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.ba-input-scripture {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
  line-height: 1.5;
}

.ba-input-scripture:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ba-divider {
  text-align: center;
  color: #d1d5db;
  font-weight: 600;
  margin: 15px 0;
  font-size: 13px;
}

.ba-auto-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* STUDY MODE SELECTION */
.ba-study-mode {
  padding: 30px;
}

.ba-mode-intro {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}

.ba-mode-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ba-mode-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ba-mode-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.ba-mode-icon {
  font-size: 36px;
  margin-bottom: 14px;
  color: #3b82f6;
}

.ba-mode-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}

.ba-mode-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* QUESTIONNAIRE INTERFACE */
.ba-questionnaire,
.ba-custom-study {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ba-passage-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #1e40af;
  gap: 15px;
}

.ba-passage-section {
  flex: 1;
  text-align: left;
}

.ba-passage-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ba-passage-text {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.ba-btn-back {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ba-btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ba-questions-list,
.ba-custom-questions {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ba-question-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 24px;
  display: flex;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ba-question-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.ba-question-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ba-question-label {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-question-label i {
  font-size: 14px;
  color: #3b82f6;
}

.ba-question-text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  text-align: left;
}

.ba-answer-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
  line-height: 1.6;
  box-sizing: border-box;
}

.ba-answer-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* PRAYER SECTION */
.ba-prayer-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #f9fafb 100%);
  border: 1px solid #e0e7ff;
  border-radius: 4px;
  padding: 24px;
  margin: 28px;
  margin-bottom: 20px;
}

.ba-prayer-header {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-prayer-header i {
  color: #3b82f6;
  font-size: 16px;
}

.ba-prayer-intro {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.ba-prayer-textarea {
  background: white;
}

/* TOOLBAR */
.ba-questionnaire-toolbar,
.ba-custom-intro {
  display: flex;
  gap: 12px;
  padding: 20px 28px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.ba-custom-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: white;
  border: none;
}

.ba-custom-intro p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.ba-btn-save,
.ba-btn-export,
.ba-btn-share,
.ba-btn-secondary,
.ba-btn-primary,
.ba-btn-tertiary {
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ba-btn-save {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  flex: 1;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.ba-btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
}

.ba-btn-export {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  flex: 1;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.ba-btn-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.25);
}

.ba-btn-share {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  flex: 1;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.ba-btn-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.25);
}

.ba-btn-secondary {
  background: white;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.ba-btn-secondary:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
}

.ba-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  width: 100%;
}

.ba-btn-primary:hover {
  transform: translateY(-1px);
}

.ba-btn-tertiary {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  margin-top: 12px;
}

.ba-btn-tertiary:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

/* CUSTOM QUESTION */
.ba-custom-question-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ba-custom-question-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* SCROLLBAR STYLING */
.ba-questions-list::-webkit-scrollbar,
.ba-custom-questions::-webkit-scrollbar {
  width: 6px;
}

.ba-questions-list::-webkit-scrollbar-track,
.ba-custom-questions::-webkit-scrollbar-track {
  background: transparent;
}

.ba-questions-list::-webkit-scrollbar-thumb,
.ba-custom-questions::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.ba-questions-list::-webkit-scrollbar-thumb:hover,
.ba-custom-questions::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
  gap: 15px;
}

.ba-question-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  gap: 15px;
}

.ba-question-number {
  background: #8b5cf6;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.ba-question-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ba-question-label {
  font-size: 12px;
  font-weight: 700;
  color: #8b5cf6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ba-question-text {
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.5;
  margin-bottom: 8px;
}

.ba-answer-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #374151;
  resize: vertical;
  transition: all 0.2s ease;
}

.ba-answer-textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* CUSTOM STUDY */
.ba-custom-intro {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

.ba-custom-intro p {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #6b7280;
}

.ba-custom-question-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.ba-custom-question-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* TOOLBAR */
.ba-questionnaire-toolbar {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ba-btn-save,
.ba-btn-export,
.ba-btn-share {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ba-btn-save {
  background: #10b981;
  color: white;
}

.ba-btn-save:hover {
  background: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ba-btn-export {
  background: #f59e0b;
  color: white;
}

.ba-btn-export:hover {
  background: #d97706;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.ba-btn-share {
  background: #3b82f6;
  color: white;
}

.ba-btn-share:hover {
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* BUTTONS */
.ba-btn-start,
.ba-btn-primary,
.ba-btn-secondary,
.ba-btn-tertiary,
.ba-btn-back {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.ba-btn-start,
.ba-btn-primary {
  background: #8b5cf6;
  color: white;
  width: 100%;
  padding: 12px;
  font-size: 13px;
  margin-top: 10px;
}

.ba-btn-start:hover,
.ba-btn-primary:hover {
  background: #7c3aed;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.ba-btn-secondary {
  background: #e5e7eb;
  color: #1f2937;
  margin-bottom: 8px;
  width: 100%;
}

.ba-btn-secondary:hover {
  background: #d1d5db;
}

.ba-btn-tertiary {
  background: transparent;
  color: #8b5cf6;
  border: 1px solid #e5e7eb;
  width: 100%;
}

.ba-btn-tertiary:hover {
  background: #f9fafb;
}

.ba-btn-back {
  background: transparent;
  color: #6b7280;
  padding: 6px 10px;
  font-size: 11px;
}

.ba-btn-back:hover {
  color: #1f2937;
}

/* DISCLAIMER OVERLAY */
.ba-disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.ba-disclaimer-box {
  background: white;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  margin: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ba-disclaimer-box h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.ba-disclaimer-content {
  margin-bottom: 20px;
}

.ba-disclaimer-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.ba-disclaimer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.ba-disclaimer-actions button {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ba-disclaimer-actions .ba-btn-secondary {
  background: #e5e7eb;
  color: #1f2937;
  margin: 0;
  width: auto;
}

.ba-disclaimer-actions .ba-btn-secondary:hover {
  background: #d1d5db;
}

.ba-disclaimer-actions .ba-btn-primary {
  background: #8b5cf6;
  color: white;
  margin: 0;
  width: auto;
  padding: 10px 16px;
}

.ba-disclaimer-actions .ba-btn-primary:hover {
  background: #7c3aed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ba-mode-options {
    gap: 12px;
  }
  
  .ba-questionnaire-toolbar {
    flex-direction: column;
  }
  
  .ba-btn-save,
  .ba-btn-export,
  .ba-btn-share {
    width: 100%;
  }
}
