.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;
  }
  
  body {
    font-family: 'DM Sans', sans-serif;
  }
  
  /* 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 */
       /* 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 */
    }
  
    /* General Modal Styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Transparent background */
  }
  
  .forecast-modal-content {
    background-color: #fff;
    margin: 15% auto; /* Center the modal */
    padding: 20px;
    border: 1px solid #888;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: auto; /* Handle content overflow */
}
  /* Modal header with gradient */
.forecast-modal-header {
  padding: 1rem 1.5rem;
  color: red;
  border-bottom: none;
}
.forecast-modal-body {
  background-color: #f9fafc;
  padding: 24px;
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: 60vh; /* Adjust as needed */
}

  /* Modal close and accept buttons - Default (Desktop) */
  #closeModalBtn, #acceptModalBtn {
    position: absolute;
    background: linear-gradient(135deg, #2C3E50, #1C2833); /* Professional dark blue gradient */
    color: #ffffff !important;                /* Blue text */
    border: 2px solid #44596e !important;   /* Light blue border */
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.475rem;
    transition: all 0.3s ease-in-out;
    text-align: center;
    cursor: pointer;
  }
  
  #closeModalBtn {
    top: auto;
    /* bottom: 20px; */
    left: 20px;
  }
  
  #acceptModalBtn {
    top: auto;
    /* bottom: 20px; */
    right: 20px;  
  }
  
  #closeModalBtn:hover, #acceptModalBtn:hover {
    background: linear-gradient(135deg, #2C3E50, #1C2833); /* Professional dark blue gradient */
    color: #ffffff !important;                /* Text changes to dark blue */
    border-color: #2C3E50;
  }
  
  #acceptModalBtn a {
    color: white; /* Ensure link inside the button also has white color */
    text-decoration: none; /* Remove underline from the link */
  }
  
  /* Mobile Styles */
  @media screen and (max-width: 767px) {
    
    #closeModalBtn, #acceptModalBtn {
        width: 100px;
        padding: 8px;
    }
  }
  
  /* Tablet Styles */
  @media screen and (min-width: 768px) and (max-width: 1024px) {
   
    #closeModalBtn, #acceptModalBtn {
        width: 110px;
    }
  }
  
 
  
  /* 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;
  }
  
  .tab-content {
    /* width: 350px; */
    height: 475px;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: justify;
    font-size: 13px;
  }
  .nav-link{
    color:black;
  
  }
  .nav-link:hover{
  color: #0000e6;
  }

   /* 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;
  }

 /* Compliance Data */
  .compliance_regulation{
    font-size: 15px; /* Adjust as needed */
  }
  .compliance_sops{
    font-size: 15px; /* Adjust as needed */

  }
  .sops_message{
    font-size: 15px; /* Adjust as needed */

  }

  /* Related stock */
.similar-stock a {
  color: green;
  text-decoration: none; /* Remove underline */
}

.opposite-stock a {
  color: red;
  text-decoration: none; /* Remove underline */
}

.similar-stock a:hover,
.opposite-stock a:hover {
  text-decoration: underline; /* Optional: Add underline on hover */
}
@media (max-width: 760px) {
  .card-header{
      font-size: 1rem;
     
     
  }
}  

@media (max-width: 480px) {
  .card-header{
      font-size: 0.7rem;
      overflow-wrap: anywhere;
      white-space: normal;
      line-height: 1.4;
      padding: 10px !important;
      word-break: normal;
    
     
  }
} 

/* 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: #007bff; /* Blue color */
  border-radius: 50%;
  animation: spin 0.5s linear infinite; /* Fast rotation */
  
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
a.fundamental_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.fundamental_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;

}

.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: 360px) 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;
  }

}

/* Default: stacked on mobile */
@media (min-width: 360px) and (max-width: 767.98px) {
  a.fundamental_analysis {
    width: 100%;
  }

  .stock-values div {
    margin-left: 0px !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 */
}

.technical-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%;
}
.technical-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) {
  .technical-img {
      width: 600px;
      height: 450px;
  }
}

/* Small Devices (Mobile, 768px and below) */
@media (max-width: 768px) {
  .technical-img {
      width: 500px;
      height: 400px;
  }
}

/* Extra Small Devices (Phones, below 576px) */
@media (max-width: 576px) {
  .technical-img {
      width: 100%; /* Full width on small screens */
      height: auto; /* Auto height to maintain aspect ratio */
  }
}


/* tab-content */
.bg-stoploss{
  background-color:rgba(204, 0, 0, 0.3) ;
  color:black;
  font-weight: bold; 
  font-size: 18px; 
  
}
.bg-target{
  background-color: rgba(8, 153, 129, 0.3);
  color:black;
  font-weight: bold;
  font-size: 18px;
  

}
.bg-entrypoint{
  background-color: rgba(31, 88, 50, 0.3);
  color:black;
  font-weight: bold;
  font-size: 18px;
}
.bg-holdingperiod{
  background-color: rgba(55, 54, 103, 0.3);
  color:black;
  font-weight: bold;
  font-size: 18px;
}
.bg-events{
  background-color: rgba(111, 110, 189, 0.3);
  color:black;
  font-weight: bold;
  font-size: 18px;
}
.bg-violation{
  background-color: rgba(130, 152, 49, 0.3);
  color:black;
  font-weight: bold;
  font-size: 18px;

}
.bg-last50dayhigh{
  background-color: rgba(46, 204, 113, 0.15); /* Soft green */
  color:black;
  font-weight: bold;
  font-size: 18px;
}
.bg-last50daymin{
  background-color: rgba(168, 28, 12, 0.4);  /* Soft red */
  color:black;
  font-weight: bold;
  font-size: 18px;
}
.compliance-modal {
  border-radius: 12px;
  border: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.compliance-modal-header {
  background: linear-gradient(135deg, #2C3E50, #1C2833); /* Professional dark blue gradient */
  color: #ffffff;
  padding: 16px 24px;
  border-bottom: none;
}

.compliance-modal-body {
  background-color: #f9fafc;
  padding: 24px;
}

.close-button span {
  font-size: 1.5rem;
  color: #ffffff;
}

.compliance-section {
  background-color: #ffffff;
  border-left: 4px solid #2C3E50;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.compliance-detail {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}
.info-icon {
  color: #6c757d;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.3s ease;
}

.info-icon:hover {
  color: #2C3E50;
}

.entrypoint-modal  {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

/* Modal header with gradient */
.entrypoint-modal-header {
  background: linear-gradient(135deg, #2C3E50, #1C2833);
  padding: 1rem 1.5rem;
  color: white;
  border-bottom: none;
}

.entrypoint-modal-body {
  background-color: #f9fafc;
  padding: 24px;
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: 60vh; /* Adjust as needed */
}
.entrypoint-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.btn-entrypoint {
  background-color: #ffffff !important;   /* White background */
  color: #435a71 !important;              /* Blue text */
  border: 2px solid #44596e !important;   /* Light blue border */
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.3s ease-in-out;
  text-align: center;
  cursor: pointer;
}
.btn-entrypoint:hover {
  background: linear-gradient(135deg, #2C3E50, #1C2833); /* Professional dark blue gradient */
  color: #ffffff !important;                /* Text changes to dark blue */
  border-color: #2C3E50;
}