/* Inter font overrides to ensure consistent typography */
:root {
  --font-family-sans-serif: Inter, sans-serif;
}

/* Apply Inter to common text elements, overriding Argon defaults */
body,
p,
span,
a,
li,
dt,
dd,
small,
label,
input,
textarea,
select,
button,
h1,
h2,
h3,
h4,
h5,
h6,
.card,
.navbar,
.table,
.form-control {
  font-family: 'Inter', sans-serif !important;
}

/* Timeline group styling */
.timeline-group {
  min-height: 80px;
}
.timeline-group .vis-inner {
  min-height: 80px;
}
.group-label {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-top: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.group-title {
  font-weight: 700;
  color: #3E0045;
}

/* Responsive font sizing for section titles */
@media (max-width: 768px) {
  .group-title {
    font-size: 16px !important;
  }
}
.group-count {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0px;
  color: #6F6C99;
  opacity: 0.7;
  margin-top: 2px;
}

/* Override vis-timeline padding for labels */
.vis-labelset .vis-label .vis-inner {
  padding: 0 !important;
}

/* Preserve icon fonts */
.fa,
.fas,
.far,
.fal,
.fab {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", inherit !important;
}

/* Keep vis-timeline axis labels bold at all zoom levels */
.vis-timeline .vis-time-axis .vis-text {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  color: #3E0045 !important;
}
.vis-timeline .vis-time-axis .vis-text.vis-major {
  font-weight: 800 !important;
  color: #3E0045 !important;
}
.vis-timeline .vis-time-axis .vis-text.vis-minor {
  font-weight: 800 !important;
  color: #3E0045 !important;
}

/* Lifespan box styling */
.lifespan-box {
  background-color: rgb(153 13 160 / 3%);
}

.lifespan-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #990da0;
  z-index: 10;
}

.lifespan-box::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #990da0;
  z-index: 10;
}

.lifespan-box .vis-item-content {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Lock timeline items to their sections */
.vis-item {
  cursor: default !important;
  user-select: none;
}

.vis-item:hover {
  cursor: default !important;
}

/* Prevent dragging of timeline items */
.vis-item.vis-selected {
  cursor: default !important;
  background-color: #980A9F !important; /* Purple color for selected events */
  border-color: #980A9F !important;
}

/* Selected point events - white text and bullet, but keep icons dark */
.vis-item.vis-selected.vis-point {
  color: white !important;
  border-radius: 6px !important;
}

.vis-item.vis-selected.vis-point .vis-item-content {
  color: white !important;
}

.vis-item.vis-selected.vis-point .vis-item-content * {
  color: white !important;
}

/* Keep icons dark purple when point event is selected */
.vis-item.vis-selected.vis-point .vis-item-content i {
  color: #3E0045 !important;
}

/* Fix text positioning in timeline items to stay centered */
.vis-item .vis-item-content {
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 2px 4px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}

/* Ensure text stays centered at all zoom levels but respects left edge */
.vis-item.vis-range .vis-item-content {
  position: relative !important;
  left: 0 !important;
  transform: none !important;
  /* Ensure text doesn't overflow past left edge */
  text-align: center !important;
  justify-content: center !important;
  /* When text is too long, it will be clipped with ellipsis */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* For point events, keep default positioning and allow overflow for icons */
.vis-item.vis-point .vis-item-content {
  position: static !important;
  overflow: visible !important; /* Allow icon container to show */
}


/* Custom timeline tooltip styling */
.custom-timeline-tooltip {
  background: #f8f9fa;
  color: #495057;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  max-width: 300px;
  pointer-events: none;
  border: 1px solid #dee2e6;
}

.custom-timeline-tooltip .tooltip-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #212529;
}

.custom-timeline-tooltip .tooltip-hr {
  border: none;
  height: 1px;
  background: #dee2e6;
  margin: 8px 0;
}

.custom-timeline-tooltip .tooltip-description {
  font-weight: 400;
  color: #6c757d;
  line-height: 1.5;
}

/* Allow timeline range items to overflow for better visibility */
.vis-item .vis-item-overflow {
  overflow: visible !important;
}

/* Timeline range item styling */
.vis-item.vis-range {
  border-radius: 6px !important;
  border-style: none !important;
}

/* Range events - show full text without ellipsis */
.vis-item.vis-range .vis-item-content {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap !important;
}

/* Target the span inside range events to remove ellipsis */
.vis-item.vis-range .vis-item-content span {
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  width: auto !important;
}

/* Point event dot styling - match text color */
.vis-item.timeline-point {
  border-color: #3E0045 !important;
}

/* Point event dot styling when selected - white dot for white text */
.vis-item.vis-selected.timeline-point {
  border-color: white !important;
}

/* Set max height for timeline groups */
.vis-timeline .vis-group {
  max-height: 450px !important;
  overflow: hidden !important;
}

/* Hide all scrollbars within the timeline */
.vis-timeline * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.vis-timeline *::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
}

/* Override vis-current-time color */
.vis-current-time {
  background-color: #990da0 !important;
}

/* Override vis-item.vis-background to use light purple instead of blue */
.vis-item.vis-background {
  background-color: rgb(153 13 160 / 3%) !important;
}



