/* Custom styles that complement the Bootstrap theme */

/* Common Styles */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Border accent styles for cards */
.border-left-4 {
  border-left: 4px solid !important;
}

main {
  flex: 1;
}

/* Card styles */
.card-dashboard {
  transition: transform 0.2s ease;
  border: 1px solid var(--bs-border-color);
}

.card-dashboard:hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-box-shadow-lg) !important;
}

/* Project card styles */
.project-card {
  height: 100%;
}

.project-status {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Category tree display */
.category-tree {
  margin-left: 0;
  padding-left: 0;
}

.category-tree ul {
  margin-left: 20px;
  padding-left: 10px;
  border-left: 1px solid var(--bs-border-color);
}

.category-tree li {
  list-style-type: none;
  margin-bottom: 5px;
  position: relative;
}

.category-tree .category-toggle {
  cursor: pointer;
  margin-right: 5px;
}

.category-tree .category-name {
  font-weight: 500;
}

.category-tree .level-L1 > .category-name {
  font-weight: 700;
  color: var(--bs-primary);
}

.category-tree .level-L2 > .category-name {
  font-weight: 600;
  color: var(--bs-info);
}

.category-tree .level-L3 > .category-name {
  font-weight: 500;
  color: var(--bs-success);
}

/* Analysis progress */
.analysis-status {
  min-width: 100px;
}

/* Response card */
.response-card {
  border-left: 4px solid var(--bs-primary);
}

.response-card.invalid {
  border-left-color: var(--bs-danger);
}

/* Hierarchy display */
.hierarchy-card {
  border-top: 4px solid var(--bs-primary);
}

/* Model option card */
.model-option-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-option-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-box-shadow) !important;
}

.model-option-card.selected {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Charts */
.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}

/* Header and navbar customization */
.navbar-brand img {
  max-height: 40px;
  margin-right: 10px;
}

/* Analysis section icons */
.analysis-step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Utility classes */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Custom scrollbar for code blocks */
pre {
  max-height: 400px;
  overflow-y: auto;
}

/* Visualization highlight colors */
.highlight-l1 {
  background-color: rgba(54, 162, 235, 0.2);
}

.highlight-l2 {
  background-color: rgba(75, 192, 192, 0.2);
}

.highlight-l3 {
  background-color: rgba(255, 205, 86, 0.2);
}

/* ========== HEADING STYLE VARIANTS ========== */

/* GLOBAL: Apply Variant 5 to H1 elements only */
h1 {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.22) 0%, rgba(23, 162, 184, 0.12) 100%);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(23, 162, 184, 0.3);
  border-radius: 0.25rem;
  color: white;
  transition: all 0.2s ease;
}

h1:hover {
  box-shadow: 0 6px 16px rgba(23, 162, 184, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.32) 0%, rgba(23, 162, 184, 0.22) 100%);
  border-color: rgba(23, 162, 184, 0.5);
}

/* Home page heading - AI-Powered Qualitative Analysis */
h1.display-5 {
  color: white !important;
}

/* VARIANT 1: Subtle Gradient Background */
.h1-variant-1,
.h2-variant-1 {
  padding: 0.75rem 1rem;
  margin: -0.75rem -1rem 0.5rem -1rem;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.25) 0%, rgba(13, 110, 253, 0.15) 100%);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.h1-variant-1:hover,
.h2-variant-1:hover {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.35) 0%, rgba(13, 110, 253, 0.25) 100%);
}

/* VARIANT 2: Bottom Border (Underline) */
.h1-variant-2,
.h2-variant-2 {
  padding: 0.75rem 1rem;
  margin: -0.75rem -1rem 0.5rem -1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--bs-warning);
  background-color: rgba(255, 193, 7, 0.15);
  transition: all 0.2s ease;
}

.h1-variant-2:hover,
.h2-variant-2:hover {
  border-bottom-color: var(--bs-info);
  background-color: rgba(255, 193, 7, 0.25);
}

/* VARIANT 3: Left Border + Subtle Background */
.h1-variant-3,
.h2-variant-3 {
  padding: 0.75rem 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  border-left: 5px solid var(--bs-success);
  background-color: rgba(25, 135, 84, 0.2);
  transition: all 0.2s ease;
}

.h1-variant-3:hover,
.h2-variant-3:hover {
  border-left-color: var(--bs-info);
  background-color: rgba(25, 135, 84, 0.3);
}

/* VARIANT 4: Rounded Pill Style */
.h1-variant-4,
.h2-variant-4 {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(120deg, rgba(220, 53, 69, 0.25) 0%, rgba(220, 53, 69, 0.15) 100%);
  border: 2px solid rgba(220, 53, 69, 0.4);
  border-radius: 2rem;
  display: inline-block;
  transition: all 0.2s ease;
}

.h1-variant-4:hover,
.h2-variant-4:hover {
  background: linear-gradient(120deg, rgba(220, 53, 69, 0.35) 0%, rgba(220, 53, 69, 0.25) 100%);
  border-color: rgba(220, 53, 69, 0.6);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* VARIANT 5: Shadow & Elevation Effect */
.h1-variant-5,
.h2-variant-5 {
  padding: 0.75rem 1rem;
  margin: -0.75rem -1rem 0.5rem -1rem;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.22) 0%, rgba(23, 162, 184, 0.12) 100%);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(23, 162, 184, 0.3);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.h1-variant-5:hover,
.h2-variant-5:hover {
  box-shadow: 0 6px 16px rgba(23, 162, 184, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.32) 0%, rgba(23, 162, 184, 0.22) 100%);
  border-color: rgba(23, 162, 184, 0.5);
}

/* Sample box styling for showcase */
.sample-box {
  border: 1px solid var(--bs-border-color);
}
