/* Deal Flow Diagram Styles */

.deal-flow-view {
  padding: var(--spacing-xl);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
}

.deal-flow-header {
  margin-bottom: var(--spacing-xl);
}

.deal-flow-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.deal-flow-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.deal-flow-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.deal-flow-canvas {
  position: relative;
  background-color: var(--color-bg-primary);
}

/* Stage Headers */
.stage-headers {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-sm);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: var(--spacing-md);
}

.stage-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-header-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.stage-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm);
}

.stage-label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
}

/* Flow Boxes */
.flow-box {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-md);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.flow-box-blue {
  background-color: #1E67E1;
  color: white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.flow-box-blue:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.flow-box-blue:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 103, 225, 0.3);
}

.flow-box-gray {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.flow-box-label {
  white-space: pre-line;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.flow-box-subtitle {
  font-size: 11px;
  margin-top: var(--spacing-xs);
  opacity: 0.9;
}

/* SVG Arrows */
.flow-arrows {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.flow-arrow-path {
  stroke: #2E6EEB;
  stroke-width: 1;
  fill: none;
}

.flow-arrow-head {
  fill: #2E6EEB;
}

/* Knowledge Bar */
.knowledge-bar {
  position: absolute;
  left: 40px;
  right: 40px;
  border-radius: var(--radius-lg);
  background-color: #1E67E1;
  color: white;
  text-align: center;
  padding: var(--spacing-lg);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
}

.knowledge-caption {
  position: absolute;
  left: 40px;
  right: 40px;
  text-align: center;
  color: #1E67E1;
  font-style: italic;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Back Button */
.deal-flow-footer {
  margin-top: var(--spacing-xl);
  display: flex;
  justify-content: flex-start;
}

.btn-back-to-account {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-medium);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-to-account:hover {
  background-color: var(--color-border-light);
  border-color: var(--color-border-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}


/* Deal Flow Filters */
.deal-flow-filters {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.filter-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.filter-select,
.filter-input {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: all 0.2s ease;
  min-width: 180px;
}

.filter-select:hover,
.filter-input:hover {
  border-color: var(--color-border-dark);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}


/* Animated Arrows Above Knowledge Bar */
.knowledge-arrows {
  position: absolute;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.arrow-single {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-up,
.arrow-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.arrow-up {
  border-bottom: 10px solid #1E67E1;
  animation: glimmerUp 2s ease-in-out infinite;
}

.arrow-down {
  border-top: 10px solid #1E67E1;
  animation: glimmerDown 2s ease-in-out infinite;
}

/* Stagger the animations for visual interest */
.arrow-single:nth-child(1) .arrow-up,
.arrow-single:nth-child(1) .arrow-down {
  animation-delay: 0s;
}

.arrow-single:nth-child(2) .arrow-up,
.arrow-single:nth-child(2) .arrow-down {
  animation-delay: 0.2s;
}

.arrow-single:nth-child(3) .arrow-up,
.arrow-single:nth-child(3) .arrow-down {
  animation-delay: 0.4s;
}

.arrow-single:nth-child(4) .arrow-up,
.arrow-single:nth-child(4) .arrow-down {
  animation-delay: 0.6s;
}

.arrow-single:nth-child(5) .arrow-up,
.arrow-single:nth-child(5) .arrow-down {
  animation-delay: 0.8s;
}

.arrow-single:nth-child(6) .arrow-up,
.arrow-single:nth-child(6) .arrow-down {
  animation-delay: 1s;
}

.arrow-single:nth-child(7) .arrow-up,
.arrow-single:nth-child(7) .arrow-down {
  animation-delay: 1.2s;
}

.arrow-single:nth-child(8) .arrow-up,
.arrow-single:nth-child(8) .arrow-down {
  animation-delay: 1.4s;
}

.arrow-single:nth-child(9) .arrow-up,
.arrow-single:nth-child(9) .arrow-down {
  animation-delay: 1.6s;
}

.arrow-single:nth-child(10) .arrow-up,
.arrow-single:nth-child(10) .arrow-down {
  animation-delay: 1.8s;
}

.arrow-single:nth-child(11) .arrow-up,
.arrow-single:nth-child(11) .arrow-down {
  animation-delay: 0.1s;
}

.arrow-single:nth-child(12) .arrow-up,
.arrow-single:nth-child(12) .arrow-down {
  animation-delay: 0.3s;
}

.arrow-single:nth-child(13) .arrow-up,
.arrow-single:nth-child(13) .arrow-down {
  animation-delay: 0.5s;
}

.arrow-single:nth-child(14) .arrow-up,
.arrow-single:nth-child(14) .arrow-down {
  animation-delay: 0.7s;
}

.arrow-single:nth-child(15) .arrow-up,
.arrow-single:nth-child(15) .arrow-down {
  animation-delay: 0.9s;
}

.arrow-single:nth-child(16) .arrow-up,
.arrow-single:nth-child(16) .arrow-down {
  animation-delay: 1.1s;
}

.arrow-single:nth-child(17) .arrow-up,
.arrow-single:nth-child(17) .arrow-down {
  animation-delay: 1.3s;
}

.arrow-single:nth-child(18) .arrow-up,
.arrow-single:nth-child(18) .arrow-down {
  animation-delay: 1.5s;
}

.arrow-single:nth-child(19) .arrow-up,
.arrow-single:nth-child(19) .arrow-down {
  animation-delay: 1.7s;
}

.arrow-single:nth-child(20) .arrow-up,
.arrow-single:nth-child(20) .arrow-down {
  animation-delay: 1.9s;
}

/* Glimmer animations */
@keyframes glimmerUp {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes glimmerDown {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}
