/* Market Buttons */
.market-butn {
  cursor: pointer;
  padding: 5px 10px;
  border: 2px solid #993A8B;
  background: transparent;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  color: #993A8B;
  transition: all 0.25s ease-in-out;
  margin: 0 6px 6px 0;
}
.market-butn:hover {
  background: rgba(40, 167, 69, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.25);
}
.market-butn.active {
  background: #993A8B;
  color: #fff;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
/* Segments Buttons */
.segment-butn {
  cursor: pointer;
  padding: 5px 10px;
  border: 2px solid #E68057;
  background: transparent;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  color: #E68057;
  transition: all 0.25s ease-in-out;
  margin: 0 6px 6px 0;
}
.segment-butn:hover {
  background: rgba(40, 167, 69, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.25);
}
.segment-butn.active {
  background: #E68057;
  color: #fff;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}
/* Search wrapper keeps input & results aligned */
/* Search wrapper keeps input & results aligned */
.search-wrap {
  position: relative;
  margin-top: 10px;
  max-width: 360px;
}
/* Search box */
#stockSearch {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d6d6d6;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}
#stockSearch:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.12);
}
/* Search results dropdown */
#searchResults {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  z-index: 999;
  /* keep hidden by default, JS will .show() it when results available */
  display: none;
  max-height: 280px;
  overflow-y: auto;
}
.search-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.15s;
  line-height: 1.2;
}
.search-item:last-child { border-bottom: 0; }
.search-item:hover { background-color: #f7faff; }
.search-item .meta {
  font-size: 12px;   /* medium font for segment + exchange */
  color: #667085;
  margin-left: 6px;
  font-weight: bold;
}
.search-item .company {
  font-size: 11px;   /* smaller font for company name */
  color: #888;
  margin-top: 4px;
}
.empty-state {
  padding: 12px;
  color: #7a7a7a;
  text-align: center;
  font-size: 13px;
}
/* Simple spinner used in the search dropdown */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid #ddd;
  border-top-color: #999;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block; vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* General section padding */
.info-section {
  margin: 20px auto;
  max-width: 900px;
  padding: 10px;
}

/* Important Note Styling */
.note-box {
  border: 1px solid #f5c6cb;
  background: #fff8f6;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.note-header {
  display: flex;
  align-items: center;   /* Align icon & text on same line */
  gap: 10px;             /* spacing between icon and text */
  margin-bottom: 8px;
}

.note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;        /* circle shape */
  background-color: #f8d7da; /* light red/pink bg */
  color: #d35400;            /* warning orange */
  font-size: 18px;
  flex-shrink: 0;            /* prevents squishing */
}

.note-box h4 {
  margin: 0;
  font-size: 1rem;
  color: #d35400;
  font-weight: 500;
}

.note-box p {
  margin: 0;
  font-size: 0.80rem;
  color: #444;
  line-height: 1.5;
  text-align: justify;
}
/* Accordion */
.accordion-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.accordion-header {
  width: 100%;
  background: #f9f9f9;
  border: none;
  outline: none;
  padding: 15px 20px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: #eee;
}

.accordion-body {
  display: none;
  padding: 15px 20px;
  background: #fff;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Active accordion */
.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active .accordion-header {
  background: #e8f0fe;
  color: #1a73e8;
}