@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.container {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1 {
  font-weight: 700;
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 20px;
}

.result-section {
  margin-bottom: 30px;
}

.text-container {
  max-height: 200px;
  overflow-y: scroll;
  border: 1px solid #e0e0e0;
  padding: 10px;
  background-color: #fafafa;
  border-radius: 5px;
}

.collapsed {
  max-height: 100px;
}

.expanded {
  max-height: none;
}

label, input[type="submit"] {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
}

input[type="submit"] {
  background-color: #1a73e8;
  color: #ffffff;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #145cb2;
}

textarea {
  width: 100%;
  font-family: 'Roboto', sans-serif;
  padding: 10px;
  margin-bottom: 20px;
  resize: vertical;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.expand-button {
  font-size: 1rem;
  font-weight: 500;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 10px;
}

.expand-button:hover {
  background-color: #e0e0e0;
}

.tooltip {
  display: inline-block;
  position: relative;
  cursor: help;
  padding-left: 5px;
  color: #1a73e8;
  text-decoration: underline;
}

.tooltip::after {
  content: attr(data-tooltip);
  display: none;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(26, 115, 232, 0.9);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 100;
}

.tooltip:hover::after {
  display: block;
}

.sentiment-color.good {
  color: #4CAF50;
}

.sentiment-color.bad {
  color: #F44336;
}

.sentiment-color.neutral {
  color: #9E9E9E;
}

.bold {
font-weight: bold;
}
