.autocomplete-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-radius: 25px;
    border: 1px solid #020202;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 84%;
    background-color: #1a1a1a;
    z-index: 1;
}

.autocomplete-list li {
    display: flex;
    justify-content: space-between;
    /* padding: 8px; */
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.autocomplete-list li:hover {
    background-color: #727272;
}

.stock-name {
    text-align: left;  
}

.stock-symbol {
    text-align: right;
}


/* General styling for the container */
.analysis-container {
    padding: 20px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between sections */
}

.analysis-container h2 {
    margin-bottom: 20px; /* Add spacing after h2 */
}

.market-summary h5 {
    margin-bottom: 5px; /* Spacing between h5 and the statement */
}

.market-summary .stmt {
    font-size: 16px;
    font-weight: bold;
    color: #0a0a0a;
    margin-bottom: 15px; /* Spacing after statement */
    display: block;
    text-align: center;
}

.ltp-container {
    font-size: 24px;
    /* font-weight: bold; */
    /* margin-bottom: 15px; */
}

.ltp-container .inr {
    font-size: 16px; /* Smaller font size for INR */
    vertical-align: bottom; /* Position INR as a subscript-like style */
}

.comparison {
    display: flex;
    align-items: center;
    gap: 8px;
    /* margin-bottom: 15px; Space below comparison */
}

.prev-close{
    font-size: 11px;
    margin-bottom: 20px;
}



/* Base Styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1px solid #f0f0f0;
}

/* Metric Item Styles - Delicate version */
.metric-item {
  background: rgb(221, 221, 221);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #f5f5f5;
}

.metric-item:hover {
  box-shadow: 0 4px 12px rgba(107, 245, 255, 0.881);
  transform: translateY(-1px);
}

/* Asymmetrical shapes */
.metric-item:nth-child(1) {
  grid-column: span 2;
  border-radius: 20px 50px 20px 50px;
  background: rgb(221, 221, 221);
}

.metric-item:nth-child(2),
.metric-item:nth-child(3) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(4),
.metric-item:nth-child(5) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(6) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(7) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(8) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(9) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(10) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(11) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(12) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(13) {
  border-radius: 20px 50px 20px 50px;
}

.metric-item:nth-child(14) {
  border-radius: 20px 50px 20px 50px;
}

/* LTP Container (First metric) */
.ltp-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ltp {
  font-size: 24px;
  font-weight: bolder;
  color: #2d3748;
  margin-bottom: 4px;
  letter-spacing: -0.25px;
}

.comparison {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Metric Headings - Delicate version */
.metric-item h4 {
  font-size: 15px;
  font-weight: bold;
  color: #4d5767;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* Metric Values - Subtle styling */
.metric {
  font-size: 20px;
  font-weight: bolder;
  color: #4a5568;
  margin: 0;
  letter-spacing: -0.25px;
}

.metric.positive {
  color: #38a169;
  background: rgba(72, 187, 120, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.metric.negative {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

/* Icons - More subtle */
.fa-caret-up, .fa-caret-down {
  font-size: 24px;
  margin-left: 4px;
}



/* Responsive Design */
@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .metric-item:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .metric-item:nth-child(1) {
    grid-column: span 1;
  }
  
  .metric-item {
    border-radius: 10px !important;
  }
}







/* Container for the market summary and right section gauge */
.content-container {
    display:inline-block; /* Enables flexbox to align children horizontally */
    gap: 12px; /* Space between the market-summary and right-section-gauge */
    align-items: flex-start; /* Aligns items to the top */
    margin-top: 20px; /* Adds space above the container */
}

/* Styling for the right-section-gauge */
.right-section-gauge {
    flex: 1; /* Allows flexibility in width */
    padding: 15px;
    background-color: #f9f9f9; /* Similar background color as market-summary */
    border: 1px solid #ddd; /* Border to match market-summary */
    border-radius: 10px; /* Rounded corners to match market-summary */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Box shadow for a subtle 3D effect */
}

/* Styling for the header and paragraphs */
.right-section-gauge h4 {
    font-size: 1.2em; /* Size similar to other headers */
    margin-bottom: 10px; /* Space below the header */
    color: #1a1a1a;
}

.right-section-gauge p {
    font-size: 0.95em;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Metric styling similar to other metrics */
.right-section-gauge .metric {
    font-weight: bold;
    color: #1a1a1a;
}

/* Styling for the delivery-rate-gauge */
.delivery-rate-gauge {
    margin-top: 15px; /* Space above the gauge */
    text-align: center; /* Center align the gauge content */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column; /* Stacks the boxes vertically on small screens */
    }

    .market-summary,
    .right-section-gauge {
        margin-bottom: 12px; /* Space between stacked boxes */
    }
}



/* Styling for plot containers */
.plots-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between rows of plots */
    width: 95%; /* Ensure it takes full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Center plot */
.plot-center {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9; /* Consistent background color */
    border: 1px solid #ddd; /* Consistent border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Consistent box shadow */
    box-sizing: border-box; /* Include padding and border in width */
}

/* Row of plots */
.plot-row {
    display: flex;
    flex: 1;
    gap: 12px; /* Space between plots in the same row */
    box-sizing: border-box; /* Include padding and border in width */
}

/* Individual plot styling */
.plot {
    flex: 1; /* Allows flexibility in width */
    padding: 15px;
    background-color: #f9f9f9; /* Same background color */
    border: 1px solid #ddd; /* Same border */
    border-radius: 10px; /* Same border radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Same box shadow */
    overflow: hidden; /* Hide overflow content */
    box-sizing: border-box; /* Include padding and border in width */
}

/* Specific plot sizes */
.candle-spread, .last-traded-price {
    text-align: center;
    flex: 1; /* Equal width for both plots */
    max-width: 100%; /* Ensure they don't exceed container width */
}


/* Individual plot styling */
.plot {
    flex: 1; /* Allows flexibility in width */
    padding: 15px;
    background-color: #f9f9f9; /* Same background color */
    border: 1px solid #ddd; /* Same border */
    border-radius: 10px; /* Same border radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Same box shadow */
    overflow: auto; /* Hide overflow content */
    overflow: hidden;
}


.plot h3 {
    font-size: 1.1em; /* Font size for plot titles */
    margin-bottom: 10px;
    color: #1a1a1a;
}

/* Specific styles for individual plots */
.candle-spread {
    max-width: 100%; /* Adjust width as needed */
    max-height: 600px; /* Adjust height as needed */
    position: relative;
}

.last-traded-price {
    max-width: 50%; /* Adjust width as needed */
    max-height: 600px; /* Adjust height as needed */
}

.plot-content {
    text-align: center; /* Center align plot content */

}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .plot-row {
        flex-direction: column; /* Stack plots vertically on small screens */
        gap: 12px; /* Space between stacked plots */
    }

    .candle-spread,
    .last-traded-price {
        max-width: 100%; /* Full width on small screens */
    }
}


/* Disclaimer Box Styling */
.disclaimer-box {
    background-color: #f2ead2; /* Light yellow background */
    color: #856404; /* Dark yellow text */
    border: 1px solid #fbf3dd;
    padding: 15px;
    border-radius: 35px;
    margin-bottom: 20px;
    text-align: center;
  }





/* General container styling */
.market-summary {
    background-color: #f5f5f5;
    flex:1;
    margin: 10px auto;  /* Auto centers the box with a small top/bottom margin */
    box-sizing:content-box;  /* Ensures padding is included in the width */
    padding: 12px;
    border: 1px solid #ddd; /* Border to match market-summary */
    border-radius: 10px; /* Rounded corners to match market-summary */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle 3D effect */
    width: 95%;
    height: auto;
    position: relative;

}


.trade-delivery-box {
    background-color: #f5f5f5;
    flex: 1;
    margin: 20px auto;  /* Auto centers the box with a small top/bottom margin */
    box-sizing: content-box;  /* Ensures padding is included in the width */
    padding: 20px;
    border: 1px solid #ddd; /* Border to match market-summary */
    border-radius: 10px; /* Rounded corners to match market-summary */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle 3D effect */
    width: 95%;
    
    /* Flexbox for centering */
    display: flex;
    flex-direction: column;  /* Stack items vertically */
    align-items: center;     /* Center items horizontally */
    text-align: center;      /* Center the text */
}




.market-summary h5 {
    text-align: center;
}




/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .metrics-row {
        flex-direction: column; /* Stack the columns vertically on small screens */
        gap: 12px;
        border-bottom: none; /* Remove lines between stacked rows */
    }
    
    .metrics-column {
        border-right: none; /* Remove borders for stacked columns */
        padding-right: 0;
    }
}


.comment-content {
    height: 25%;            /* Takes 1/4 of the available height */
    padding: 10px;          /* Adds some space around the text */
    font-size: 1rem;        /* Sets a readable font size */
    word-wrap: break-word;  /* Ensures long words break into the next line */
    line-height: 1.5;       /* Adjusts line spacing for readability */
    overflow-y: auto;       /* Adds a vertical scrollbar if the comment overflows */
    background-color: #f9f9f9; /* Light background to distinguish from the plot */
    border-top: 1px solid #ddd; /* Adds a subtle border to separate from the plot */
    box-sizing: border-box; /* Ensures padding is included in the element's total width/height */
}



.plot-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px; /* Space between plots in the same row */
    box-sizing: border-box; /* Include padding and border in width */
}


.plot.candle-spread {
    width: auto;
    max-width: 50%; /* Ensures it does not exceed 50% of the parent container's width */
    font-size: 1rem;
    word-wrap: break-word;
    padding-top: 10px;
}


.plot.last-traded-price {
    width: 50%; /* Ensures it takes the remaining 50% of the parent container's width */
    font-size: 1rem;
    /* word-wrap: break-word; */
    line-height: 1.5;

}
.comment-box {
    height: auto; /* Adjust this height as per your requirement */
    width: auto;
    overflow:auto;
    text-align: center;
    align-items:center;


  }
  

  .comment-content {
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    box-sizing: border-box;
    height: auto; /* Ensure the height expands to fit content */
    width: auto;
    white-space: normal; /* Allow the text to wrap to multiple lines */
    word-wrap: break-word; /* Ensure long words break and don't overflow */
    overflow: visible; /* Prevent any hidden or cut-off text */
    text-align: justify;
    align-items: center;
}



.overlay {
    display: none; /* Initially hidden */
    position: absolute; /* Position relative to the parent container */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white !important; /* Force text color to white */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 1000; /* Higher z-index to ensure it's above other elements */
    overflow-y: auto; /* Enable vertical scrolling for long content */
    border-radius: 5px; /* Optional: Add rounded corners for the overlay */
}

.overlay-content {
    max-width: 100%; /* Ensure the content spans the container width */
    margin: auto;
    text-align: justify; /* Justify the text for readability */
    font-size:large;
    color: white !important; /* Force text color to white */
    line-height: 1.6; /* Improve readability */
    background-color: rgba(0, 0, 0, 0.7); /* Optional: Add a subtle background to the content */
    padding: 15px;
    border-radius: 10px; /* Rounded corners */
}



.open-overlay-btn {
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

.open-overlay-btn:hover {
    background-color: #218838; /* Darker green on hover */
}

.overlay.show {
    display: flex; /* Show overlay */
    opacity: 1;
}


