/* Breadcrumb Navigation */
.breadcrumb-nav {
  /* background: var(--color-surface); */
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-12) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.breadcrumb-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb-path {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.breadcrumb-item {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.breadcrumb-item.current {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-semibold);
}

.breadcrumb-separator {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

@media (max-width:392px) {

  /* 🔹 Fix breadcrumb on small screens */
  .breadcrumb-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .breadcrumb-content .btn-fundamental {
    width: 100%;
    text-align: center;
  }
}

/* Card component */
.card__analysis {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card__analysis:hover {
  box-shadow: var(--shadow-md);
}

/* chart analisis for perticular ticker */
.candlestick-chart-container {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 550px;
  /* Set a maximum height to prevent excessive stretching on large screens */
}

.chart-analysis {
  height: 515px;
  overflow-x: hidden;
  overflow-y: auto;
}

#candleChartStock {
  width: 100%;
  height: 500px;
}

#ohlcValues {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

/* Custom scrollbar for chart-analysis */
.chart-analysis::-webkit-scrollbar {
  width: 6px;
}

.chart-analysis::-webkit-scrollbar-track {
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
}

.chart-analysis::-webkit-scrollbar-thumb {
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
}

.chart-analysis::-webkit-scrollbar-thumb:hover {
  background: var(--color-light-gray);
}


/* Start Indicator  */
.toggle {
  cursor: pointer;
}

.indicator-panel {
  display: none;
  position: fixed;
  top: 25%;
  /* Vertically aligned relative to the viewport */
  left: 0;
  /* Ensure it starts from the left edge */
  width: 100%;
  /* Full width of the viewport */
  height: 400px;
  /* Default height for larger screens */
  z-index: 1000;
  justify-content: center;
  overflow-y: auto;
  /* Handle content overflow */

}

/* For tablets and smaller devices */
@media (max-width: 768px) {
  .indicator-panel {
    top: 25%;
    /* Adjust position for smaller viewports */
    height: 300px;
    /* Reduce height */
    padding: 0 1rem;
    /* Add padding to maintain spacing */

  }
}

/* For mobile devices */
@media (max-width: 480px) {
  .indicator-panel {
    top: 25%;
    /* Further adjust top position */
    height: auto;
    /* Let height adjust based on content */
    max-height: 60vh;
    /* Constrain height to viewport */
    padding: 0.5rem;
    /* Compact padding */
  }
}

.indicator-card {
  background: white;
  width: 80%;
  /* Relative to parent container */
  max-width: 400px;
  /* Maximum width for larger screens */
  height: auto;
  /* Let height adapt to content */
  max-height: 80%;
  /* Prevent it from exceeding the viewport */
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  margin: auto;
  /* Center the card */
}



.indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

.indicator-header h5 {
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.indicator-body {
  padding: 1rem;
  /* Use relative padding for better scaling */
  overflow-y: auto;
  max-height: 70vh;
  /* Keeps the height relative to the viewport */
}



.indicator-body input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.indicator-body ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.indicator-body ul li {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator-body ul li:hover {
  background-color: #ddd;
}


#indicatorsList {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#indicatorsList li {
  padding: 8px;
  cursor: pointer;
}

#indicatorsList li:hover {
  background-color: #f0f0f0;
}

/* End Indicator  */

/* Start Forecast  */
#showForecastMethodsBtn {
  cursor: pointer;
  /* Changes the cursor to a pointer on hover */

}

#showForecastMethodsBtn:hover {
  color: rgb(11, 11, 26);
  /* Optional: change text color on hover */
}

/* End Forecast  */

/* Custom Tooltip Styles */
.tooltip-inner {
  background-color: #47476b;
  color: white;
}

.delete-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #b3b3cc;
  font-size: 10px;
}

.delete-button:hover {
  color: #3d3d5c;
}

.chart-name {
  font-size: 12px;
  /* Adjust the font size as needed */
}

.chart-value {
  font-size: 12px;
  /* Adjust the font size as needed */
}

/* Modal System */
.modal__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.modal__backdrop.show {
  opacity: 1;
}

.modal__analysis {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: var(--space-20);
  opacity: 0;
  transform: scale(0.95);
  transition: all var(--duration-normal) var(--ease-standard);
  pointer-events: none;
}

.modal__analysis.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.modal__container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-subtle);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* .modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-20) var(--space-24);
  border-bottom: 1px solid var(--color-card-border-inner);
  background: var(--color-bg-1);
} */

/* .modal__header--navy {
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-teal-700));
  color: var(--color-white);
}

.modal__header--navy .modal__title {
  color: var(--color-white);
}

.modal__header--navy .modal__close-btn {
  color: var(--color-white);
}

.modal__header--navy .modal__close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
} */

.modal__title-container {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

/* .modal__title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
} */

.modal__icon {
  flex-shrink: 0;
  font-size: var(--font-size-xl);
}

.modal__icon--warning {
  color: var(--color-warning);
}

.modal__icon--info {
  color: var(--color-primary);
}

.modal__icon--clipboard {
  color: var(--color-white);
}

/* .modal__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  font-size: var(--font-size-base);
} */

/* .modal__close-btn:hover {
  background: var(--color-secondary);
  color: var(--color-text);
}

.modal__close-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.modal__body {
  padding: var(--space-24);
  overflow-y: auto;
  flex: 1;
} */

.modal__text {
  margin-bottom: var(--space-16);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.modal__disclaimer {
  background: var(--color-bg-4);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  border-left: 4px solid var(--color-warning);
  margin-top: var(--space-20);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* .modal__footer {
  display: flex;
  gap: var(--space-12);
  padding: var(--space-20) var(--space-24);
  border-top: 1px solid var(--color-card-border-inner);
  background: var(--color-bg-1);
} */

/* .modal__footer .btn-analysis {
  flex: 1;
} */

/* Caution Modal Specific */
.modal--forecast {
  background: var(--color-bg-4);
}

.modal--forecast{
  background: var(--color-bg-4);
}

/* Technical Indicators Modal */
.modal--indicators .modal__container {
  max-width: 500px;
  max-height: 70vh;
}

.search-container {
  margin-bottom: var(--space-20);
}

.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: var(--space-12);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
  font-size: var(--font-size-sm);
}

.search-input {
  width: 100%;
  padding: var(--space-12) var(--space-12) var(--space-12) var(--space-32);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast) var(--ease-standard);
}

.search-input:focus {
  outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(30, 66, 88, 0.1);
}

.search-input::placeholder {
  color: var(--color-text-secondary);
}

.indicators-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-base);
  background: var(--color-surface);
}

.indicator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-12) var(--space-16);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard);
  border-bottom: 1px solid var(--color-border-subtle);
}

.indicator-item:last-child {
  border-bottom: none;
}

.indicator-item:hover {
  background: var(--color-bg-3);
}

.indicator-item.selected {
  background: var(--color-bg-1);
  border-left: 4px solid var(--color-primary-dark);
}

.indicator-item:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: -2px;
}

.indicator-name {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  flex: 1;
}

.indicator-tag {
  background: var(--color-secondary);
  color: var(--color-text-secondary);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.indicator-item:hover .indicator-tag {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Custom scrollbar for indicators list */
.indicators-list::-webkit-scrollbar {
  width: 6px;
}

.indicators-list::-webkit-scrollbar-track {
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
}

.indicators-list::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: var(--radius-sm);
}

.indicators-list::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* Entry Point Modal */
.modal--info .modal__container {
  max-width: 550px;
}

.modal--info  {
  background: var(--color-bg-1);
}

.modal--info  {
  background: var(--color-bg-1);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.info-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.price-comparison {
  background: var(--color-bg-2);
  padding: var(--space-20);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border-subtle);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
}

.price-item:last-of-type {
  margin-bottom: var(--space-16);
}

.price-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}

.price-value {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
}

.price-value--current {
   color: var(--color-success);
}

.price-value--entry {
  color: var(--color-success);
}

.price-status {
  text-align: center;
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border-subtle);
}

.indicator-info,
.recommendation-section,
.disclaimer-section {
  background: var(--color-surface);
  padding: var(--space-16);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border-subtle);
}

.indicator-info h4,
.recommendation-section h4,
.disclaimer-section h4 {
  margin: 0 0 var(--space-12) 0;
  color: var(--color-primary-dark);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

.indicator-info p,
.recommendation-section p,
.disclaimer-section p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.indicator-info p:first-of-type {
  margin-bottom: var(--space-8);
  color: var(--color-text-secondary);
}

.indicator-description {
  margin-top: var(--space-8) !important;
}

.disclaimer-section {
  background: var(--color-bg-4);
  border-left: 4px solid var(--color-error);
}

.last-updated {
  text-align: center;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-subtle);
}

.last-updated small {
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

/* Violation Modal Specific */
.modal--violation .modal__container {
  max-width: 600px;
}

.modal--violation  {
  background: var(--color-bg-1);
}

.violation-content {
  display: flex;
  flex-direction: column;
}

.violation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.violation-section {
  padding: var(--space-20);
}

.violation-section:not(:last-child) {
  border-bottom: 1px solid var(--color-border-subtle);
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.section-icon {
  color: var(--color-primary-dark);
  font-size: var(--font-size-lg);
  width: 20px;
  text-align: center;
}

.section-heading {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-dark);
}

.section-content {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.section-content--muted {
  color: var(--color-text-secondary);
  opacity: 0.8;
  font-style: italic;
}

/* Tab Navigation */
.tab-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border-subtle);
}

.tab-btn {
  padding: var(--space-12) var(--space-8);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 2px solid transparent;
  text-align: center;
}

.tab-btn:hover {
  background: var(--color-secondary);
  color: var(--color-text-secondary);
}

.tab-btn.active {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
}

.tab-btn .icon {
  font-size: var(--font-size-base);
}

.tab-btn span {
  font-size: var(--font-size-xs);
  line-height: 1.2;
}

/* Tab Content */
.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-16);
  background: var(--color-surface);
  height: 452px;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: justify;
  font-size: 13px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* New Sections */
.tab-section {
  margin-bottom: var(--space-16);
}

.tab-section:last-child {
  margin-bottom: 0;
}

.tab-section-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-12) 0;
}

/* Custom scrollbar for tab-pane list */
.tab-content::-webkit-scrollbar {
  width: 6px;
}

.tab-content::-webkit-scrollbar-track {
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
}

.tab-content::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: var(--radius-sm);
}

.tab-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}


/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.metric-card {
  padding: var(--space-12);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-card-border);
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
}

.metric-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.metric-card.entry {
  background: var(--color-bg-3);
}

.metric-card.stop-loss {
  background: var(--color-bg-4);
}

.metric-card.target {
  background: var(--color-bg-8);
}

.metric-card.holding {
  background: var(--color-bg-5);
}

.metric-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-dark);
}

.info-icon {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  opacity: 0.7;
}
/* Trend Grid (renamed from metrics-grid) */
.trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* Trend Card (renamed from metric-card) */
.trend-card {
  padding: var(--space-12);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-card-border);
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
}

.trend-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Background colors for trend cards */
.trend-card.daily {
  background: var(--color-bg-3); /* Light green */
}

.trend-card.weekly {
  background: var(--color-bg-4); /* Light red */
}

.trend-card.monthly {
  background: var(--color-bg-1); /* Light blue */
}

.trend-card.yearly {
  background: var(--color-bg-5); /* Light purple */
}

/* Trend Label (renamed from metric-label) */
.trend-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Trend Value (renamed from metric-value) */
.trend-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Color based on trend direction */
.trend-value[data-trend="uptrend"] {
  color: #0d6832; /* Dark green for uptrend */
}

.trend-value[data-trend="downtrend"] {
  color: #c92a2a; /* Dark red for downtrend */
}

.trend-value[data-trend="neutral"] {
  color: var(--color-text-secondary); /* Gray for neutral */
}

/* Trend Icon */
.trend-icon {
  font-size: 18px;
  line-height: 1;
}

/* Info Icon */
.info-icon {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* Responsive: Stack to single column on mobile */
@media (max-width: 576px) {
  .trend-grid {
    grid-template-columns: 1fr;
  }
}

/* Day Metrics */
.day-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.metric-card.day-high {
  background: var(--color-bg-3);
}

.metric-card.day-low {
  background: var(--color-bg-4);
}

/* Additional Info */
.additional-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.info-card {
  padding: var(--space-12);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border-subtle);
  text-align: center;
}

.info-card.violation {
  background: var(--color-bg-2);
}

.info-card.event {
  background: var(--color-bg-5);
}

.info-card.latest {
  background: var(--color-bg-7);
}

.info-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.info-value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.info-value.clickable {
  cursor: pointer;
  color: var(--color-primary-dark);
  transition: color var(--duration-fast) var(--ease-standard);
}

.info-value.clickable:hover {
  color: var(--color-primary-light);
}

.info-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}


/* News Section */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.news-item {
  padding: var(--space-12);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-base);
  background: var(--color-surface);
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
}

.news-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.sentiment {
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.sentiment.negative {
  color: var(--color-error);
  background: rgba(var(--color-error-rgb), 0.1);
  border-color: rgba(var(--color-error-rgb), 0.3);

}

.sentiment.positive {
    color: var(--color-success);
    background: rgba(var(--color-success-rgb), 0.1);
    border-color: rgba(var(--color-success-rgb), 0.3);

}

.sentiment.neutral {
  color: var(--color-slate-500);
  background: rgba(var(--color-info-rgb), 0.1);
  border-color: rgba(var(--color-info-rgb), 0.3);
}

.news-source {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);

}

.news-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary-dark);
  margin: 0 0 var(--space-6) 0;
  line-height: 1.3;
}

.news-content {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Market Peers Section */
.peers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.peers-column {
  display: flex;
  flex-direction: column;
}

.peers-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 var(--space-8) 0;
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-base);
}

.peers-title.similar {
  background: rgba(var(--color-success-rgb), 0.1);
  color: var(--color-success);
}

.peers-title.opposite {
  background: rgba(var(--color-error-rgb), 0.1);
  color: var(--color-error);
}

.peers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.peer-item {
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  border: 1px solid var(--color-border-subtle);
}

.peers-list.similar .peer-item {
  background: rgba(var(--color-success-rgb), 0.1)!important;
  color: var(--color-success)!important;
}

.peers-list.similar .peer-item:hover {
  background: rgba(var(--color-success-rgb), 0.1);
  transform: translateY(-1px);
}

.peers-list.opposite .peer-item {
  background: rgba(var(--color-error-rgb), 0.05);
  color: var(--color-error);
  
}

.peers-list.opposite .peer-item:hover {
  background: rgba(var(--color-error-rgb), 0.1);
  transform: translateY(-1px);
}

.similar {
  background: rgba(var(--color-success-rgb), 0.05);
  color: var(--color-success);
}

.opposite {
  background: rgba(var(--color-error-rgb), 0.05);
  color: var(--color-error);
}

/* Responsive Design */
@media (max-width: 768px) {

  .tab-navigation {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .tab-btn {
    padding: var(--space-8) var(--space-4);
    font-size: var(--font-size-xs);
  }

  .metrics-grid,
  .day-metrics {
    grid-template-columns: 1fr;
  }

  .info-cards-row {
    grid-template-columns: 1fr;
  }


  .peers-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }


  .tab-content {
    padding: var(--space-12);
  }


}

@media (max-width: 480px) {
  .tab-btn .icon {
    font-size: var(--font-size-sm);
  }

  .tab-btn span {
    font-size: 10px;
  }


}

@media (max-width: 640px) {
  .modal__analysis {
    padding: var(--space-16);
  }

  .modal__container {
    max-height: 90vh;
  }

  .modal__header,
  .modal__body,
  .modal__footer {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }

  .modal__footer {
    flex-direction: column;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .price-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .price-status {
    text-align: left;
  }

  .violation-section {
    padding: var(--space-16);
  }

  .peers-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}


/* Animation keyframes */
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes backdropEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal__analysis.entering {
  animation: modalEnter var(--duration-normal) var(--ease-standard);
}

.modal__backdrop.entering {
  animation: backdropEnter var(--duration-normal) var(--ease-standard);
}

/* Loading state (for future enhancement) */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-border-subtle);
  border-top-color: var(--color-primary-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* table */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.table td,
.table th {
  padding: 10px;
  text-align: left;
  font-weight: bold;
}

.table th {
  font-weight: bold;
}



/* Loading circle */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color:var(--color-primary-dark);
  /* Blue color */
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
  /* Fast rotation */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .card__analysis {
    padding: 15px;
  }
}

/* .link {
  display: inline-block;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.link:hover {
  transform: scale(1.05);
  color: white;
}

.link:active {
  transform: scale(0.98);
} */


.card-body-value {
  padding-top: 10px !important;
  padding-bottom: 10px !important;

}

.btn-uniform {
  display: inline-block;
  min-width: 60px;
  height: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.24rem 0.75rem;
  text-align: center;
  border-radius: 4px;
}

.select-style {
  min-width: 60px;
  height: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border: 1px solid #808080;
  border-radius: 4px;
  background-color: #FAFAFA;
  color: #808080;
  text-align: center;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .responsive-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .responsive-toolbar .ohlc-section {
    order: 2;
    width: 100%;
    margin-top: 10px;
  }

  .responsive-toolbar .controls-section {
    order: 1;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Default: stacked on mobile */
@media (min-width: 344px) and (max-width: 767.98px) {
  .responsive-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .responsive-toolbar .ohlc-section {
    order: 2;
    width: 100%;
    margin-top: 10px;
  }

  .responsive-toolbar .controls-section {
    order: 1;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0%;
    margin-right: 0%;
  }

  .controls-section .btn-forecast {
    display: inline-block;
    min-width: 150px;
    padding: 0.24rem 0.75rem;

  }

  .controls-section .btn-indicator {
    display: inline-block;
    min-width: 252px;
    margin-top: 5px;
    order: 1;
    padding: 0.24rem 0.75rem;
  }

  .select-style {
    padding: 0.24rem 0.75rem;
  }

}



/* analysis Content */
.analysis__featured-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.analysis__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analysis__content {
  padding: var(--space-2);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.analysis__content h2 {
  margin-top: var(--space-32);
  margin-bottom: var(--space-16);
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-border-subtle);
  padding-bottom: var(--space-8);
}

.analysis__content h3 {
  margin-top: var(--space-24);
  margin-bottom: var(--space-12);
  color: var(--color-primary-dark);
}

.analysis__content p {
  margin-bottom: var(--space-16);
}

.analysis__content .section-content {
  background: var(--color-cream);
  padding: var(--space-20);
  border-radius: var(--radius-base);
  margin: var(--space-16) 0;
  border-left: 4px solid var(--color-primary-dark);
}

/* Trade On 5Paisa */
.trade__banner {
  background: linear-gradient(135deg, #f7f1cb 0%, #faeb62 100%);
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 2px solid #ffc700;
  margin-bottom: 16px;
}

.trade__banner__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.trade__banner__subtitle {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
  text-align: left;
  word-spacing: normal;
  letter-spacing: normal;
  max-width: 520px;
}


.trade__banner__features {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.feature {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
}

.feature__icon {
  width: 6px;
  height: 6px;
  background-color: #1a1a1a;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.trade__banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f56672;
  color: white;
  padding: 12px 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.trade__banner__cta:hover {
  background-color: #fa4646;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 71, 87, 0.4);
}

.trade__banner__cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.cta__icon {
  font-size: 18px;
  display: inline-block;
}

.highlight {
  color: #ff4757;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trade__banner {
    padding: 24px;
  }

  .trade__banner__title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .trade__banner__subtitle {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .feature {
    font-size: 13px;
  }

  .trade__banner__cta {
    padding: 11px 24px;
    font-size: 14px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .trade__banner {
    padding: 20px;
    border-radius: 10px;
  }

  .trade__banner__title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .trade__banner__subtitle {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .trade__banner__features {
    margin-bottom: 10px;
  }

  .feature {
    font-size: 12px;
  }

  .trade__banner__cta {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
  }
}

/* Focus states for accessibility */
.trade__banner__cta:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}