/* sidebar navigation */
:root {
--sidebar-bg: linear-gradient(135deg, rgba(8,60,113,0.03) 0%, rgba(65,20,93,0.03) 100%);
--sidebar-border: rgba(8,60,113,0.1);
--text-color: #1a1a1a;
--text-light: #5a5a5a;
--active-bg: rgba(8,60,113,0.1);
--active-text: #0C7075;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--shadow: 0 8px 32px rgba(8,60,113,0.1);
--highlight: rgba(65,20,93,0.05);
}

.cus-nav {
min-height: 100vh;
background: var(--sidebar-bg);
border-right: 1px solid rgba(8,60,113,0.1);
box-shadow: 0 8px 32px rgba(8,60,113,0.1);
padding: 30px 0 !important;
top: 0;
left: 0;
overflow-y: auto;
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 100;
}

.cus-nav a {
  text-decoration: none !important;
}


.nav {
list-style: none;
padding: 0;
margin: 0;
}


.menu-title {
display: block;
padding: 14px 30px;
margin: 8px 0 4px;
font-weight: 600;
font-size: 0.75rem;
color: #0C7075;
text-transform: uppercase;
letter-spacing: 1px;
background: linear-gradient(90deg, rgba(8,60,113,0.05) 0%, rgba(255,255,255,0) 100%);
border-left: 3px solid #072E33;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-title.active {
color: #072E33;
border-left-color: #0C7075;
}

@media (max-width: 768px) {
    .cus-nav {
        display: none;
    }
    
    #sidebar-overlay {
    display: none;
  }
}

/* sidebar navigation ends */

/* page content begins */
.gainers-losers-section,
.active-52-week {
    margin-top: 20px;
}

.buttons-wrapper { /*dropdowns & buttons menu wrapper */
    width: 100%;
    display: flex;
    gap: 20px;
}


/* buttons wrapper */
.gainers-losers-nav
/*.button-nav */ {   
    width: 50%;
    display: flex;            
    justify-content: flex-start;
}

/* dropdown wrapper */
.period-index-nav { 
    width: 50%;
    display: flex;            
    justify-content: flex-end;
}

/* buttons styling */
.custom-menu-wrapper {
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
  flex-wrap: wrap;
  gap: 0;
}

.custom-menu-wrapper button {
    text-decoration: none !important;
}

.custom-menu button {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
  background-color: transparent;
  border: none;
  text-decoration: none; 
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.custom-menu button::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 0;
  background-color: #072E33;
  transition: width 0.3s ease;
}

.custom-menu button:hover {
  color: #072E33;
  background-color: #f5f7fa;
}

.custom-menu button:hover::after {
  width: 80%;
}

.custom-menu button.active {
  color: #0C7075;
  background-color: rgba(15, 150, 156, 0.05);
  font-weight: 600;
  border-bottom: 1px solid #072E33;;
}

.custom-menu button.active::after {
  width: 80%;
}

/* dropdowns styling & wrapper */
.dropdowns-wrapper {
  display: flex;
  justify-content: flex-end;  
  flex-direction: row-reverse;  
  margin-left: auto;
  margin-right: 0;
  gap: 15px;
}

.custom-index-dropdown {
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 160px;
  max-width: 100%;
}

.custom-index-btn {
  background: linear-gradient(135deg, #0F969C, #0C7075);
  color: #fff;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 30px;
  width: 100%;
  border: none;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.custom-index-btn:hover {
  background: linear-gradient(135deg, #0C7075, #0F969C);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
  background: #fff;
  color: #0F969C;
  padding: 4px 6px;
  border-radius: 50%;
}

.custom-index-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-index-menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  position: absolute;
  width: 100%;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-top: 6px;
  z-index: 999;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-index-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.custom-index-menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none !important;
  color: #0C7075;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}

.custom-index-menu a:last-child {
  border-bottom: none;
}

.custom-index-menu a:hover {
  background-color: #f2fefe;
}

.custom-index-menu a.active {
  background-color: #d9f2f3;
  font-weight: bold;
  color: #0C7075;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: 6px;
  margin: 16px 0;
}

.returns-table {
  width: 100%;
  border-collapse: collapse;
  font-family: roboto, system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: 1px;
  border: none;
}

/* Header Styles */
.returns-table thead th {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  color: #666;
  text-align: center;
  padding: 12px 16px;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid #0C7075;
  white-space: nowrap;

}

.returns-table tbody td:not(:nth-child(3)) {
  color: #555;
}

/* Body Styles */
.returns-table tbody td {
  padding: 12px 16px;
  text-align: center;
  border: none;
  border-bottom: 1px solid #f5f5f5;
}

.returns-table th:first-child {
    text-align: left;
}

.returns-table td:first-child {
  width: 25%;
  min-width: 180px;
  text-align: left;
  padding-left: 20px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  font-weight: 400;
  color: #222;
  border-right: 1px solid rgba(8, 61, 113, 0.1);
}


.returns-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.highlight {
 font-weight: bold;    
}

.returns-table tbody tr:hover {
  background-color: #f9fbfe;
}


@media (max-width: 768px) {
  .returns-table {
    font-size: 13px;
  }
  
  .returns-table th {
      font-size: 14px;
  }
  
  .returns-table th, 
  .returns-table td {
    padding: 10px 12px;
  }
  
  .returns-table td:first-child {
    padding-left: 16px;
    min-width: 160px;
  }
}

.positive {
  color: #218739;
  font-weight: 500;
}

.negative {
  color: #c0392b;
  font-weight: 500;
}

#load-more-btn {
    margin: 10px;
    background: none;
    color: #072E33;
    box-shadow: -5px 5px 10px #eef5ff, 5px 5px 10px #eef5ff;
    border: 1px solid #666;
}


#message {
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
    color: #072E33;
}

@media (max-width: 600px) {
  .dropdowns-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    flex-direction: row;
    justify-content: space-between;
    gap: 0; /* 🚫 Remove horizontal space between dropdowns */
  }

  .dropdowns-wrapper .custom-index-dropdown {
    width: 50%;
    border-right: 1px solid #f0f0f0;
  }

  .dropdowns-wrapper .custom-index-dropdown:last-child {
    border-right: none;
  }

  .dropdowns-wrapper .custom-index-btn {
    width: 100%;
    padding: 12px 10px; 
    font-size: 13.5px;
    border-radius: 0;
    background: #0F969C;
    color: white;
    box-shadow: none;
    border-top: 3px solid transparent;
  }

  .dropdowns-wrapper .custom-index-btn:hover {
    background-color: #0C7075;
  }

  .dropdowns-wrapper .custom-index-menu {
    bottom: 100%;
    top: auto;
    margin-bottom: 4px;
    left: 0;
    right: 0;
    width: 100%;
  }

  .custom-index-menu a {
    font-size: 13px;
    padding: 10px 12px;
    text-align: center;
  }

  .dropdown-arrow {
    font-size: 10px;
    padding: 3px 5px;
  }

  .label-text {
    font-size: 13.5px;
  }
}

.faq-section {
  font-family: 'Roboto', sans-serif;
  padding: 2rem;
  border-left: 4px solid #0C7075;
  max-width: 800px;
}

.faq-title {
  font-size: 28px;
  color: #0F969C;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #0C7075;
  display: inline-block;
  padding-bottom: 5px;
}

.faq-item {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid #0F969C;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-weight: 600;
  font-size: 18px;
  color: #444;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.notes {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 20px 0;
  padding: 15px 20px;
}

.notes h3 {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #072E33;
  border-left: 4px solid #0C7075;
  padding-left: 10px;
}


.notes ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.notes li {
  margin-bottom: 10px;
  color: #222; 
}

.notes strong {
  color: #0C7075;
}


.highlight-change-positive {
    color: #008000 !important;
}

.highlight-change-negative {
    color: #d00 !important;
}
