/* styles.css */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #1a1a1a;
  color: white;
}

.container {
  display: flex;
  height: 100%;
}


.extra-feature {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #333;
  padding: 10px;
  border-radius: 8px;
}

.company-logo {
  max-width: 40px;
  max-height: 40px;
}

.feature-button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  outline: none;
}

.feature-button:hover {
  background-color: #66bb6a;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chart-area, .chatbot, .ai-tools-panel {
  margin: 10px;
  padding: 20px;
  background-color: #333;
  border-radius: 4px;
}

.chart-area {
  flex: 2; /* Allocate more space for the chart */
}

.chatbot {
  flex: 1; /* Allocate space for the chatbot */
  min-height: 150px; /* Minimum height for visibility */
}

.ai-tools-panel {
  flex: 0 0 100px; /* Fixed width for the AI tools panel */
  display: right;
  flex-direction: column;
  background-color: #262626;
  padding: 10px;
}

.ai-tools-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-tool-item {
  background: #404040;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.ai-tool-item:hover {
  background-color: #555;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #555;
}

::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar, .ai-tools-panel {
    width: 100%;
  }

  .scrollable-content {
    height: auto; /* Allow the content to expand as needed on smaller screens */
  }

  .extra-feature {
    position: static; /* Reset position for mobile */
    margin-top: 10px; /* Add space on top */
  }

  .main-content, .chart-area, .chatbot {
    margin: 0; /* Remove margins for a full-width layout on small screens */
    border-radius: 0; /* Remove border radius for a flat design on small screens */
  }
}
/* Chatbot styles */

/* ... existing styles ... */

/* Hide the actual file input field */
#file-upload {
  display: none;
}

#image-preview-container {
  /* No fixed size, let it grow as per the image inside it */
  display: flex;
  justify-content: left;
  align-items: center;
  /* No visible box until an image is loaded */
}

/* Styles for the image within the preview container */
#image-preview-container img {
  max-width: 100%; /* Ensure the image fits the container */
  max-height: 100%; /* Ensure the image fits the container */
  object-fit: cover; /* Cover the area without stretching */
}

/* Chat Form File Upload */
#chat-form {
  display: flex;
  align-items: center; /* Vertically center align the items */
  position: relative;
  background: #333; /* Assuming you want a dark background for the form */
  padding: 5px; /* Add padding to the form */
}

#chat-input {
  flex-grow: 1;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #555; /* A slight border can sometimes help the input stand out */
  margin-right: 5px; /* Adjust space between input and paperclip icon */
  background-color: #222; /* Slightly lighter background for the input */
  color: white; /* Text color for the input */
}

#chat-form button {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  align-self: stretch; /* This will make the button height equal to the form */
}

#chat-form button:hover {
  background-color: #66bb6a;
}

/* Position the paperclip icon to the left of the send button */
.file-upload-label {
  position: absolute;
  right: calc(100% - 30px); /* Position the label to the left of the button */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  height: 100%; /* Make label full height to align with the input and button */
  display: flex;
  align-items: center; /* Center the icon vertically */
}

.file-upload-label img {
  height: 95%; /* Make the image fill the label's height */
  width: auto; /* Keep the aspect ratio */
}

#file-upload {
  display: none; /* Hide the actual file input */
}

/* Adjust the margin of the input field to make space for the paperclip icon */
#chat-input {
  margin-left: 40px; /* Space for the paperclip icon */
}

/* ... existing styles ... */

/* Add responsive adjustments as needed */
@media (max-width: 768px) {
  /* ... existing styles ... */
}


/* ... existing styles ... */
.chatbot {
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#chat-window {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  background: #222;
  margin-bottom: 10px;
  border-radius: 4px;
  height: 300px; /* Fixed height, or change as needed */
}

#chat-form {
  display: flex;
}

#chat-input {
  flex-grow: 1;
  padding: 10px;
  border-radius: 4px;
  border: none;
  margin-right: 25px;
}

#chat-form button {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
}

#chat-form button:hover {
  background-color: #66bb6a;
}
.chart-container {
  display: flex;
  flex-direction: column;
}

.chart {
  flex: 1; /* Each chart will take up an equal amount of space */
  margin: 10px;
  /* Additional styles for your charts */
}

#chart2 {
  display: none; /* Initially hide the second chart */
}


/* Additional Panels for Charts and Data */
.additional-panels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.data-panel {
  background-color: #333; /* Same background color as other panels */
  color: white; /* Text color */
  border-radius: 4px; /* Rounded corners like other panels */
  padding: 20px; /* Padding inside the panels */
  flex-basis: calc(33.333% - 10px); /* Three panels per row with spacing */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  min-height: 150px; /* Minimum height for uniformity, can expand as needed */
  overflow: visible; /* Allows content like charts to overflow if needed */
  display: flex;
  flex-direction: column; /* Organizes children in a column */
  justify-content: space-between; /* Distributes space between children */
}

.data-panel {
  font-size: 1.2vw; /* Adjust font size based on the width of the viewport */
}


/* Style the individual indicator items */
.indicator-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  background: #333;
  border-radius: 4px;
}

/* Style the indicator name (strong element) */
.indicator-item strong {
  /* Styling for the indicator name */
}

/* Style the indicator value (span element) */
.indicator-item span {
  /* Styling for the indicator value */
}











/* Responsive adjustments for smaller screens */


@media (max-width: 768px) {
  .data-panel {
    flex-basis: calc(50% - 10px); /* Two panels per row on smaller screens */
  }
}

@media (max-width: 480px) {
  .data-panel {
    flex-basis: 100%; /* One panel per row on very small screens */
  }
}
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #333; /* Match with your theme */
}

.nav-logo {
  height: 40px; /* Adjust as needed */
}

.connect-button {
  padding: 8px 16px;
  background-color: #4caf50; /* Your button color */
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-right: 20px;
  /* Add more styles for your nav links */
}

.nav-links a:hover {
  text-decoration: underline;
}
/* ... Previous styles ... */

/* GPT vs GPT Chatbot Section */
.gpt-chatbot-section {
  margin-top: -100px;
  padding: 10px;
  background-color: #2d2d2d; /* Match the dashboard theme */
}

.gpt-chatbot-heading {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

.gpt-chatbot-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.gpt-chatbot {
  flex: 1;
  background-color: #333333;
  border-radius: 4px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.chat-window {
  background-color: #222222;
  border-radius: 4px;
  padding: 10px;
  height: 300px; /* Adjust as needed */
  overflow-y: auto;
  margin-bottom: 10px;
}

.chat-form {
  display: flex;
}

.chat-input {
  flex-grow: 1;
  border-radius: 4px;
  border: none;
  padding: 10px;
  margin-right: 10px;
}

.chat-form button {
  border-radius: 4px;
  border: none;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
}

.chat-form button:hover {
  background-color: #66bb6a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gpt-chatbot-container {
    flex-direction: column;
  }
}
.top-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px;
  background-color: #333; /* Match with your theme */
}

.nav-logo {
  height: 70px; /* Adjust as needed */
}

.connect-button {
  padding: 8px 16px;
  background-color: #4caf50; /* Your button color */
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-right: 20px;
  /* Add more styles for your nav links */
}

.nav-links a:hover {
  text-decoration: underline;
}
.user-message {
  background-color: #4caf50; /* User messages in a different color */
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
  align-self: flex-end; /* Align user messages to the right */
}

.chatbot-message {
  background-color: #333333; /* Chatbot messages in a darker color */
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
  align-self: flex-start; /* Align chatbot messages to the left */
}
.charts-flex-container {
  display: flex;
  margin: 10px 0; /* Provide some space around the flex container */
  height: 75%
  
}

.chart-area {
  flex-grow: 1; /* Allow the chart area to grow as needed */
  /* Keep existing styles... */
}

/* New Side Panel Styles */
.side-panel {
  width: 300px; /* Adjust as needed */
  background-color: #333; /* Same background color as the chart area */
  color: white;
  margin-left: 10px; /* Spacing between chart and side panel */
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

.market-sentiment, .trade-operations {
  padding: 10px; /* Padding for content */
  flex: 1; /* Make both children of the side panel take equal height */
}

.market-sentiment {
  border-bottom: 2px solid #555; /* Divider between sections */ 
  border-top-left-radius: 10px; /* Rounded corners on the top-left */
  border-top-right-radius: 10px; /* Rounded corners on the top-right */
}

.trade-operations {
  /* Add additional styles for trade operations if needed */
  border-bottom-left-radius: 10px; /* Rounded corners on the bottom-left */
  border-bottom-right-radius: 10px; /* Rounded corners on the bottom-right */
}

/* Add additional responsive behavior as needed */
@media (max-width: 768px) {
  .charts-flex-container {
    flex-direction: column;
  }

  .side-panel {
    width: auto; /* Side panel takes full width on smaller screens */
    margin-left: 0; /* Remove spacing on smaller screens */
   
  }
}

.sentiment-content,
.operations-content {
  background-color: #2c2c2c; /* or any color you prefer */
  border-radius: 8px; /* Match the design of other elements */
  padding: 10px; /* Spacing inside the box */
  margin-bottom: 10px; /* Space between content box and the rest */
  /* Additional styling as needed */
}



/* Container for the trade buttons to sit at the bottom */

.trade-buttons-container {
  display: flex; /* Align buttons in a row */
  justify-content: space-around; /* Space out buttons evenly */
  padding: 10px; /* Spacing inside the container */
  margin-top: 100px;
}

.long-btn,
.short-btn {
  flex: 1; /* Allow buttons to fill the container evenly */
  margin: 0 5px; /* Spacing between buttons */
  background-color: #4caf50; /* Green for long, red for short */
  color: white; /* Text color */
  border: none; /* Remove border */
  padding: 10px 20px; /* Padding inside buttons */
  border-radius: 4px; /* Slightly rounded corners for buttons */
  cursor: pointer; /* Change mouse cursor on hover */
}

.short-btn {
  background-color: #f44336; /* Red for short */
}

.long-btn:hover,
.short-btn:hover {
  opacity: 0.8; /* Slight transparency on hover */
}

/* piechart */

#myChart + .chartjs-legend {
  display: flex;
  justify-content: center; /* This centers the legend items */
  flex-wrap: wrap; /* This allows the items to wrap into new lines as needed */
  list-style: none;
  padding: 0;
}

#myChart {
  display: block; /* This can help if your chart isn't rendering as a block level element */
  width: 100%; /* This ensures that the chart is responsive and occupies the full width of its container */
  max-width: 600px; /* This restricts the chart's width to a maximum, which you can adjust based on your layout */
  margin: 0 auto; /* This centers the chart in the middle of the page */
}
.chartjs-legend ul {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center the legend items horizontally */
}

.chartjs-legend li span {
  display: block;
  padding: 0 5px; /* Add some padding around the text */
  line-height: 1; /* Adjust line height for better vertical alignment */
}

.chart-inner-container {
  background-color: #202020; /* Slightly different background to distinguish the area */
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px; /* Spacing between the chart container and other panel content */
}

.chart-heading {
  color: #FFF;
  text-align: center;
  margin-bottom: 10px; /* Spacing after the heading */
}

#connectBtn {
  background-color: green;
  color: white;
  border: none;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
}
.data-panel {
  background: #1e1e1e; /* Dark background */
  color: #ffffff; /* White text */
  border-radius: 10px;
  padding: 20px;
  width: 100%; /* Adjust width as needed */
  max-height: 400px; /* Adjust height as needed */
  overflow-y: auto; /* Enables vertical scrolling */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

.gainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #2e2e2e; /* Separator for each gainer */
}

.gainer:last-child {
  border-bottom: none; /* Removes the bottom border for the last item */
}

.gainer strong {
  color: #4CAF50; /* Green color for positive change */
  margin-right: 5px; /* Spacing between symbol and data */
}

/* Additional styling for the price, volume, and percentage change */
.gainer .price,
.gainer .volume,
.gainer .change {
  margin: 0 10px; /* Spacing for readability */
}

/* Adjustments to typography and layout */
.gainer .change {
  color: #76cd91; /* Lighter green for percentage change */
  font-weight: bold;
}

.data-panel {
  background: #1e1e1e;
  color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  max-height: 400px; /* Adjust to fit content or preference */
  overflow-y: auto;
  font-family: Arial, sans-serif;
}

.header, .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 0;
}

.header {
  font-weight: bold;
  border-bottom: 2px solid #333;
  margin-bottom: 10px;
}

.row {
  border-bottom: 1px solid #333;
}

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

.row .change {
  color: #4CAF50; /* Change color based on positive/negative */
}

.row span {
  text-align: left;
  margin-right: 15px;
}

.row span:last-child {
  text-align: right;
  margin-right: 0;
}
/* ... existing styles ... */

.row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Styling for positive and negative changes */
.row .change.positive {
  color: #4CAF50; /* Green for positive values */
}

.row .change.negative {
  color: #f44336; /* Red for negative values */
}
.portfolio-btn {
  background-color: #333; /* Adjust the color to match your design */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: block; /* Make it a block element to fill the container */
  margin: 10px 0; /* Adjust margins as needed */
}

.portfolio-btn:hover {
  background-color: #555; /* Slightly lighter on hover */
}

/* Black Dividers */
.black-divider {
  height: 2px;
  background-color: black;
  margin: 20px 0; /* Spacing above and below the divider */
}
