:root {
    --background-primary: #0a0a0a;
    --background-secondary: #171717;
    --accent-grey: #545454;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --card-gradient-start: rgba(168, 168, 168, 0.1);
    --card-gradient-end: rgba(30, 30, 46, 0.4);
    --max-content-width: 1300px;
    --surface-glow: rgba(255, 255, 255, 0.1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 2rem;
    line-height: 1.2;
    min-height: 100vh;
  }
  
  .container {
    width: 80%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    position: relative;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    margin: 0 auto 4rem auto;
    max-width: var(--max-content-width);
  }
  
  .logo {
    font-weight: normal;
    font-size: 1.5rem;
  }
  
  .nav-links {
    display: flex;
    gap: 1rem;
  }
  
  .nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    
  }
  
  .nav-links a:hover {
    box-shadow: 0 0 30px var(--surface-glow);
    transform: translateY(-1px);
  }
  
  h1 {
    font-size: 2.5rem;
    font-weight: lighter;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .sentiment-analysis {
    background: var(--background-secondary);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: 0 0 20px var(--surface-glow);
    transition: transform 0.2s ease;
  }
  
  .input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
  }
  
  .stock-input {
    background: var(--card-gradient-start); /* Lighter gray background */
    border: none; /* Remove border */
    color: var(--text-primary);
    padding: 1rem 1.5rem; /* Increase padding for height */
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1.2rem; /* Increase font size */
    width: 100%; /* Full width (responsive) */
    max-width: 500px; /* Larger input box */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}


.stock-button {
    background: var(--card-gradient-start); /* Lighter gray background */
    color: var(--text-primary);
    border: none; /* Remove border */
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.stock-button:hover {
    box-shadow: 0 0 30px var(--surface-glow); /* Highlight glow on hover */
    transform: translateY(-1px);
}

  
  .chart-container {
    background: #1a1919;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: none;
    box-shadow: 0 4px 8px rgba(72, 70, 70, 0.2);

  }
  
  .news-grid {
    max-height: 400px; /* Set the height of the container */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping of items */
    gap: 10px; /* Add space between the items */
    padding: 10px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(72, 70, 70, 0.2);
  }
  
  .news-item {
    width: calc(50% - 10px); /* Two items per row, accounting for the gap */
    box-sizing: border-box; /* Include padding/border in the width */
    padding: 10px;
    border: none; /* Remove border */
    background-color: var(--card-gradient-start); /* Lighter gray background */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Keep subtle shadow */
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--surface-glow); /* Highlight glow on hover */
}

  
  .news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--surface-glow);
  }
  
  .news-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .news-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .news-item .summary {
    margin: 1rem 0;
  }
  
  .news-item strong {
    color: var(--text-primary);
  }
  
  .grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
  }
  
  @media (max-width: 768px) {
    body {
      padding: 1rem;
    }
    
    .container {
      width: 95%;
    }
    
    .input-container {
      flex-direction: column;
    }
    
    .stock-input {
      width: 100%;
    }
    
    nav {
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
    }
    
    .nav-links {
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
    }
    
    .nav-links a {
      font-size: 1rem;
      padding: 0.5rem 1rem;
    }
  }
  #overallSentimentContainer {
    background: var(--card-gradient-start); /* Lighter gray background */
    border: none; /* No outline */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    padding: 1.5rem; /* Padding inside the box */
    text-align: center; /* Center align text */
    margin: 1rem auto; /* Spacing around the box */
    max-width: 600px; /* Limit the width */
    font-size: 1.5rem; /* Larger font size */
    color: var(--text-primary); /* Text color */
    font-weight: light; /* Emphasize text */
}
/* Dropdown button styling */
.dropdown {
  margin: 2rem auto;
  text-align: center;
}

.dropdown-button {
  background-color: var(--card-gradient-start); /* Light gray background */
  color: var(--text-primary); /* White text */
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: lighter;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: background-color 0.3s, box-shadow 0.3s;
}

.dropdown-button:hover {
  background-color: var(--card-gradient-end); /* Slightly darker gray */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Dropdown content styling */
.dropdown-content {
  max-height: 0; /* Initially collapsed */
  overflow: hidden; /* Hide content when collapsed */
  transition: max-height 0.3s ease-out; /* Smooth toggle */
  background-color: var(--background-secondary); /* Darker background */
  border-radius: 8px;
  padding: 0 1rem;
  margin-top: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chart-container {
  background: var(--background-primary); /* Dark background */
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  color: var(--text-primary); /* White text */
}

.chart-container h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: lighter;
}

.chart-container p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-secondary); /* Light gray text */
}

/* Images in dropdown */
.dropdown-image {
  width: 100%; /* Make images responsive */
  max-width: 600px; /* Limit maximum width */
  margin: 1rem auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.references {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
}

ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

ul li {
  margin: 0.5rem 0;
}

ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: text-decoration 0.2s ease, color 0.2s ease;
}

ul li a:hover {
  text-decoration: underline;
}
.histogram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts based on screen size */
  gap: 20px;
  margin: 20px 0;
}

.histogram-item {
  text-align: center;
  background-color: #1f1f1f;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.histogram-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.histogram-item p {
  margin-top: 10px;
  color: #cccccc;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
}
