body {
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f2f5;
  box-sizing: border-box;
}

.container {
  width: 90%;
  max-width: 800px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  color: #1c1e21;
}

.search-box {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

#company-input {
  width: 70%;
  padding: 0.5rem;
  border: 1px solid #dddfe2;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-size: 1rem;
}

#search-button {
  padding: 0.5rem 1rem;
  border: 1px solid #1877f2;
  background-color: #1877f2;
  color: #fff;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  outline: none;
  font-size: 1rem;
}

#search-button:disabled {
  background-color: #a0bdf5;
  border-color: #a0bdf5;
  cursor: not-allowed;
}

#search-button:hover:not(:disabled) {
  background-color: #166fe5;
}

.error {
    color: #d93025;
    margin-top: 1rem;
    height: 1.2rem;
    font-weight: bold;
}

.hidden {
    display: none;
}

#timed-analysis-results {
    margin-top: 2rem;
    text-align: left;
}

#timed-analysis-results h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.period-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f9f9f9;
}

.period-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.2rem;
}

.period-card p {
    color: #666;
    margin-bottom: 1rem;
}

.sentiment-bar {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e0e0e0; /* Fallback for neutral */
}

.sentiment-bar .positive {
    background-color: #4CAF50; /* Green */
}

.sentiment-bar .negative {
    background-color: #F44336; /* Red */
}

#board-container {
    margin-top: 2rem;
}

#board-container h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.result-view {
    width: 100%;
    height: 70vh;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    overflow: hidden;
}

#stock-board {
  width: 100%;
  height: 100%;
}
