  <style>
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
    body {
      ffont-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 20px;
    }
    .tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
    }
    .tab {
      padding: 10px 20px;
      background: #eee;
      border: none;
      cursor: pointer;
    }
    .tab.active {
      background: #007bff;
      color: white;
    }
    .tab-content {
      display: none;
    }
    .tab-content.active {
      display: block;
      margin-top: 20px;
    }
    #news-list li {
      margin-bottom: 10px;
    }
    iframe {
      border: none;
    }
  
  
    #chart {
      width: 100%;
      height: 500px;
    }
  #financials-container {
    overflow-x: auto;
    margin: 20px 0;
  }

  #historical-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    min-width: 800px;
  }

  #historical-table thead {
    background-color: #f4f4f4;
  }

  #historical-table th,
  #historical-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: right;
  }

  #historical-table th:first-child,
  #historical-table td:first-child {
    text-align: left;
    font-weight: bold;
    background-color: #fafafa;
  }

  #historical-table tr:hover {
    background-color: #f0f8ff;
  }
.header-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e70;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
  }

  .header-sub {
    font-size: 1rem;
    color: #3030ad;
    text-align: left;
    margin-top: -10px;
  }
.container {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* align top edges */
}

/* Main content takes majority width */
.content {
  flex: 3;
}

/* Right pane smaller fixed width or flexible */
.right-pane {
  flex: 1;
  max-width: 350px;
  background-color: #fcfcfc;
  padding: 4px;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-size: 11px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

/* Sections inside right pane spacing */
.right-pane section {
  padding: 7px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 7px;
}
.right-pane section::before {
  content: attr(id);
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #999;
  margin-bottom: 8px;
}
.right-pane span {
  display: inline;
  font-weight: 600;
  color: #222;
  font-size: 12px;
}
.nifty span { color: #7474da; font-size: 7px;}
.banknifty span { color: #7474da; font-size: 7px; }
.sensex span { color: #7474da; font-size: 7px; }

.grid-box {
  background: #fdfdfd;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  padding: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
}
.grid-box ul {
  list-style-type: none;
  padding-left: 0;
  font-size: 11px;
}

.grid-box li {
  margin-bottom: 8px;
}
#company-profile {
  background: #f9f9f9;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 12px;
  font-weight: 300;

}
#investment-ideas .idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#investment-ideas .idea-box {
  background: #f9f9f9;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 10px;
}
#StockOverview .idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#StockOverview .idea-box {
  background: #f9f9f9;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 13px;
}
#shareHoldingPattern .idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#shareHoldingPattern .idea-box {
  background: #f9f9f9;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 13px;
}

 #trendingCompanyList {
    height: 200px; /* Adjust as needed */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
  }
  #ipo-list{
    height: 100px; /* Adjust as needed */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;

  }

#investment-strategies{
    height: 100px; /* Adjust as needed */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;

}
  .company-list {
    margin-top: 15px;
    max-height: 300px; 
    overflow-y: auto;  
    -webkit-overflow-scrolling: touch; 
    border: 1px solid #ddd; 
    padding: 6px;           
    flex-shrink: 1; 
    min-height: 0;  
  }

  .company-item {
  margin-bottom: 8px;
  padding: 3px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  color: #0077cc; /* Link-like blue */
  text-decoration: underline;
  font-size: 11px;
  font-weight: 400;
}

.company-item:hover {
  color: #005599;
  background-color: #f0f8ff;
}
a:link {
  color: #222255;
  background-color: transparent;
  text-decoration: underline;
}
a:visited {
  color: #554499;
  background-color: transparent;
  text-decoration: underline;
}

h2 {
      margin-top: 40px;
      font-size: 20px;
      color: #2c3e50;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      margin-top: 5px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    th, td {
      padding: 10px;
      text-align: left;
      border-bottom: 1px solid #eaeaea;
    }

    th {
      background-color: #f2f2f2;
      font-weight: bold;
    }
.financial-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  color: #222255;
}
.financial-link img {
  height: 20px;
}
.trending-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.trending-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.tab-button {
    padding: 10px 20px;
    margin-right: 5px;
    background: #eee;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.tab-button:hover {
    background: #ddd;
}
.active-tab {
    background: #ccc;
}
.tab-pane {
    margin-top: 20px;
}
   
  </style>
