.nav-tabs .nav-link {
    font-size: 14px;
    font-weight: 600;
}

.table th, .table td {
    font-size: 14px;
}

@media (max-width: 768px) {
    .table th, .table td {
        font-size: 12px;
    }
}


.table th, .table td {
    vertical-align: middle;
    text-align: center;
    padding: 10px;
}



.fw-bold {
    font-weight: bold;
}
/* Center the 'Asset' column text */
.asset-column {
    text-align: center;
    vertical-align: middle;
}

/* Make all table borders thick */
.table th, .table td {
    border: 3px solid #19232d  !important;
}

/* Adjust heading font sizes */
th h4, th h5 {
    margin: 0;
    font-weight: bold;
}

.graph {

    max-width: 330px;  /* ✅ Maximum width for large screens */
    height: 240px;  /* ✅ Prevents it from shrinking too much */
    margin: 0 auto;  /* ✅ Centers the graph */
}

/* ✅ Adjusts for small tablets and phones */
@media (max-width: 820px) {
    .graph {
        max-width: 310px;
        height: 250px;
    }
}

/* ✅ For small mobile devices */
@media (max-width: 480px) {
    .graph {
        max-width: 200px;
        height: 240px;
    }
}


#profitabilityChart {
    width: 100% !important;
    max-width: 600px; /* ✅ Limits chart width */
    height: 350px !important; /* ✅ Limits chart height */
}

#liquidityChart {
    width: 100% !important;
    max-width: 600px; /* ✅ Limits chart width */
    height: 350px !important; /* ✅ Limits chart height */
}

#efficiencyChart {
    width: 100% !important;
    max-width: 600px; /* ✅ Limits chart width */
    height: 350px !important; /* ✅ Limits chart height */
}

#coverageChart {
    width: 100% !important;
    max-width: 600px; /* ✅ Limits chart width */
    height: 350px !important; /* ✅ Limits chart height */
}

#solvencyChart {
    width: 100% !important;
    max-width: 600px; /* ✅ Limits chart width */
    height: 350px !important; /* ✅ Limits chart height */
}

#marketChart {
    width: 100% !important;
    max-width: 600px; /* ✅ Limits chart width */
    height: 350px !important; /* ✅ Limits chart height */
}

.chart-container {
    width: 100%;
    max-width: 650px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ✅ Adjust height for smaller screens */
@media (max-width: 768px) {
    #profitabilityChart {
        max-width: 100%;
        height: 300px !important;
    }
}

/* ✅ Adjust height for smaller screens */
@media (max-width: 768px) {
    #liquidityChart {
        max-width: 100%;
        height: 300px !important;
    }
}

/* ✅ Adjust height for smaller screens */
@media (max-width: 768px) {
    #efficiencyChart {
        max-width: 100%;
        height: 300px !important;
    }
}

/* ✅ Adjust height for smaller screens */
@media (max-width: 768px) {
    #coverageChart {
        max-width: 100%;
        height: 300px !important;
    }
}

/* ✅ Adjust height for smaller screens */
@media (max-width: 768px) {
    #solvencyChart {
        max-width: 100%;
        height: 300px !important;
    }
}

/* ✅ Adjust height for smaller screens */
@media (max-width: 768px) {
    #marketChart {
        max-width: 100%;
        height: 300px !important;
    }
}

h2 {
    color: #404245;
    border-bottom: 3px solid #404245;
    padding-bottom: 5px;
    text-align: center;
  }
  h3 {
    color: #333;
  }
  
  .section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 5px solid #343435;
    border-radius: 5px;
  }
  
  @media (max-width: 600px) {
    .card {
        padding: 15px;
    }
  }
  
  .link {
    display: inline-block;
    background: linear-gradient(135deg, #1C2833, #2C3E50); /* Reverse gradient on hover */
    color: white; /* White text */
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .link:hover {
    background: linear-gradient(135deg, #1C2833, #2C3E50); /* Reverse gradient on hover */
    transform: scale(1.05); /* Slight zoom effect */
    color: white; /* White text */
  }
  
  .link:active {
    background: linear-gradient(135deg, #1C2833, #2C3E50); /* Reverse gradient on hover */
    transform: scale(0.98); /* Slight shrink effect */
  }

  a.technical_analysis {
    background: #ffffff;/* Professional dark blue gradient */
    color: rgb(87, 87, 87);/* White text */
    font-weight: 600;/* Slightly bold */
    border-radius: 5px;/* Rounded corners */
    border: 1px solid black;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);/* Soft shadow */
    text-decoration: none;
    text-align: center;
}

a.technical_analysis:hover {
    
    background: linear-gradient(135deg, #1C2833, #2C3E50); /* Reverse gradient on hover */
    transform: scale(1.05); /* Slight zoom effect */
    color: #ffffff; /* White text */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.card-body-value {
    padding-top: 10px !important;
    padding-bottom: 10px !important;

}

/* Default: stacked on mobile */
@media (min-width: 360px) and (max-width: 767.98px) {
    a.technical_analysis {
        width: 100%;
    }

    .stock-values div {
        margin-left: 0px !important;
    }
}

.thead-bg{
    background: linear-gradient(135deg, #253342, #253342); /* Reverse gradient on hover */
    color: white; /* White text */
}

.fundamental-img {
    width: 700px;  /* Default for large screens */
    height: 500px;
    max-width: 100%; /* Ensures it doesn't exceed the parent container */
    object-fit: cover; /* Ensures the image fills the space without stretching */
    margin: 0%;
    padding: 0;
}
.fundamental-img img{
    margin: 0;
    border-radius: 4% !important;
    border: 2px solid rgb(50, 48, 50) !important;
}


/* Medium Devices (Tablets, 992px and below) */
@media (max-width: 992px) {
    .fundamental-img {
        width: 600px;
        height: 450px;
    }
}

/* Small Devices (Mobile, 768px and below) */
@media (max-width: 768px) {
    .fundamental-img {
        width: 500px;
        height: 400px;
    }
}

/* Extra Small Devices (Phones, below 576px) */
@media (max-width: 576px) {
    .fundamental-img {
        width: 100%; /* Full width on small screens */
        height: auto; /* Auto height to maintain aspect ratio */
    }
}


/* Index fundamentals */
/* Stats Cards Grid */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.stat-card {
  flex: 1 1 200px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  min-width: 120px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

.value {
  font-size: 18px;
  font-weight: bold;
}



/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #aaa;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.tab {
  flex: 1 1 auto;
  padding: 10px;
  background: #d3d3d3;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  border-right: 1px solid #aaa;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  background: #eee;
}

/* Tab Content */
.index-content {
  display: none;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  height: 350px;
  overflow-y: auto;
}

.index-content.active {
  display: block;
}

.risk {
  color: red;
  font-weight: bold;
  margin-bottom: 5px;
}

.section-title {
  font-weight: bold;
  margin-top: 15px;
}

.info {
  font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 820px) {
  .stats-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .stat-card {
    flex: 0 0 48%; /* 2 columns with small gap */
    margin-bottom: 10px;
  }

  .tab {
    border-right: none;
    border-bottom: 1px solid #aaa;
  }

  .tab:last-child {
    border-bottom: none;
  }
}

/* Up to 343px – 1 per row */
@media (max-width:392px) {
  .stat-card {
    flex: 0 0 100%;
  }
}

.index-sector-table {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  margin: 20px auto;
  overflow-x: auto;
  width: 100%;
}

.index-sector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #dfdede;
  border-radius: 12px;
  padding: 5px 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.index-sector-name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.index-sector-metrics {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.index-metric {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers content horizontally */
  justify-content: center; /* Centers content vertically */
  text-align: center;
}

.index-metric .label {
  font-size: 0.85rem;
  color: #555;
  margin-right: 6px;
}

.index-metric .value {
  font-weight: bold;
  font-size: 1rem;

}

/* Responsive */
@media (max-width: 390px) {
  .index-sector-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .index-sector-metrics {
    justify-content: flex-start;
    gap: 30px;
  }

  .index-metric {
    align-items: flex-start;
    text-align: left;
  }
}
/* Responsive */
@media (max-width: 600px) {
  .index-sector-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .index-sector-metrics {
    justify-content: flex-start;
  }

  .index-metric {
    align-items: flex-start;
    text-align: left;
  }
}

.index-company-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    margin-top: 10px;
    font-size: 14px;
}

.index-company-table th,
.index-company-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
}
.index-company-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #444;
}
/* Optional: for better column alignment */
.index-company-table th:first-child,
.index-company-table td:first-child {
  text-align: left;
}

/* Responsive container fix */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    padding-right: 0px !important;
    padding-left: 0px !important;
    -webkit-overflow-scrolling: touch;
}

/* Optional: Shrink font on small devices */
@media screen and (max-width: 576px) {
    .index-company-table {
        font-size: 12px;
        
    }
   
}

.green {
    color: green;
    font-weight: bold;
}

.red {
    color: red;
    font-weight: bold;
}

/* Optional: for better column alignment */
.index-news-table th:first-child,
.index-news-table td:first-child {
  text-align: left;
}
.index-news-table th,
.index-news-table td {
    border: 1px solid #ddd !important;
    padding: 10px !important;
    vertical-align: middle !important;
    word-wrap: break-word !important;
}
.index-news-table th {
    border: 1px solid #ddd !important;
    background-color: #f8f8f8 !important;
    font-weight: bold !important;
    color: #444 !important;
}

.index-news-table  {
    border: 2px solid #0a0909 !important;
   
}

/* Sentiment Analysis */
.sentiment-positive::before {
  content: '👍';
  /* Or use an appropriate icon */
  color: green;
  font-weight: bold;
}

.sentiment-negative::before {
  content: '👎';
  /* Or use an appropriate icon */
  color: red;
  font-weight: bold;
}

.sentiment-neutral::before {
  content: '👌';
  /* Or use an appropriate icon */
  color: gray;
  font-weight: bold;
}

.sentiment-positive {
  color: green;
  font-weight: bold;
}

.sentiment-negative {
  color: red;
  font-weight: bold;
}

.sentiment-neutral {
  color: gray;
}
  /*event */
.bg-events {
    background-color: #eee;
}
.card-title {
    font-weight: bold;
    color: #333;
}
.section-title { font-weight: bold; margin-top: 1rem; }