.indigo-review-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.risk-gauge {
  position: relative;
  width: 120px;
  height: 120px;
}

.risk-gauge-circle {
  fill: none;
  stroke-width: 10;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.risk-gauge-bg {
  stroke: #e5e7eb;
}

.risk-gauge-fill {
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.risk-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.risk-score-number {
  font-weight: 600;
  line-height: normal;
  color: white;
}

.risk-score-label {
  font-size: 0.875rem;
  color: white;
  margin-top: 0.25rem;
  line-height: normal;
}

.clause-card {
  border-left: 4px solid;
  transition: all 0.3s ease;
}

.clause-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.clause-high {
  border-left-color: #ef4444;
}

.clause-medium {
  border-left-color: #f59e0b;
}

.clause-low {
  border-left-color: #10b981;
}

.issue-tag {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  justify-content: center;
}

.issue-critical {
  background-color: #fee2e2;
  color: #991b1b;
}

.issue-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.issue-info {
  background-color: #dbeafe;
  color: #1e40af;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

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

.summary-point {
  position: relative;
  padding-left: 1.5rem;
}

.summary-point::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-size: 1.5rem;
  line-height: 1;
}

.progress-bar {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background-color: #e5e7eb;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
}
.risk-gauge-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 12;
}

.risk-gauge-fill {
  transition: stroke-dashoffset 1.5s ease;
}

svg {
  transition: transform 0.3s ease;
}

svg.rotate-180 {
  transform: rotate(180deg);
}

.issue-card {
  position: relative;
}
/* Add these classes or styles */
.left-sidebar {
  height: fit-content;
  max-height: 100vh; /* Important: limit to viewport */
  position: sticky;
  top: 2rem; /* Some padding from top when scrolling */
  overflow-y: auto; /* Only scroll if content overflows */
  padding-right: 0.5rem; /* Optional: avoid scrollbar overlapping content */
}

/* Optional: hide scrollbar but keep functionality (nice touch) */
.left-sidebar::-webkit-scrollbar {
  width: 6px;
}
.left-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}
.ai-para {
  margin-bottom: 0px !important;
}
#downloadProgressBar {
  background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
#uiErrorBox {
  position: fixed;
  top: 8%; /* Start hidden above the viewport */
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  max-width: 90vw; /* Responsive: never wider than 90% of screen */
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* When visible: slide down and fade in */
#uiErrorBox:not(.hidden) {
  top: 8%; /* Distance from top when shown */
  opacity: 1;
  pointer-events: auto;
}

/* Error - Red */
#uiErrorBox.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Success - Green */
#uiErrorBox.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Warning - Yellow (optional) */
#uiErrorBox.warning {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Extra small screens - better padding and font */
@media (max-width: 480px) {
  #uiErrorBox {
    min-width: 280px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

.preview-pane {
  display: none !important; /* force hide when not active */
}

.preview-pane.active {
  display: flex !important;
  background: #4d2cf1 !important;
  /* force show when active */
}

/* Make sure parent is positioned correctly */
.relative {
  position: relative !important;
}

/* Optional: help debugging */
#preview-highlighted,
#preview-updated {
  background: #f8fafc !important; /* light bg to see if it's rendering */
}
.tab-button {
  background-color: transparent;
}

.tab-button[data-active="true"] {
  background-color: rgb(79 70 229);

  color: white;
  font-weight: 600;
  box-shadow: 0 -2px 0 0 #4f46e5 inset; /* optional inner highlight */
}

/* Optional: make inactive tabs slightly muted */
.tab-button:not([data-active="true"]) {
  background-color: gray;

  color: white;
  font-weight: 600;
}
.tab-button.active {
  background: #2563eb !important; /* blue-600 */
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.pdf-info {
  margin-bottom: 0px !important;
}

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
    border-bottom: 1px solid var(--ast-border-color);
    margin: 0;
     padding:0px!important; 
}