/* Basic Reset & Body Styling */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
}

/* Header & Navigation */
header {
  background-color: #007bff; /* Webinar blue */
  color: #fff;
  padding: 10px 0;
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  margin: 0;
  padding: 10px;
}

nav ul {
  list-style: none;
  padding: 0;
  background-color: #333;
  text-align: center;
  margin-bottom: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  display: inline-block;
}

nav ul li a:hover {
  background-color: #555;
}

/* Forms */
form {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #eee;
  border-radius: 5px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
  width: calc(100% - 22px); /* Adjust width considering padding/border */
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button,
input[type="submit"] {
  background-color: #6441a5;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

button:hover,
input[type="submit"]:hover {
  background-color: #4b2e7e;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

/* Sentiment Bar */
.sentiment-bar {
  display: flex; /* Use flexbox for horizontal layout */
  width: 100%;
  height: 30px; /* Adjust height as needed */
  margin: 20px 0;
  overflow: hidden;
  border-radius: 4px;
  background-color: #e0e0e0; /* Fallback background */
}

.sentiment-bar > div {
  height: 100%;
  color: white;
  text-align: center;
  line-height: 30px; /* Vertically center text */
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box; /* Include padding/border in width */
}

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

.sentiment-bar .neutral {
  background-color: #2196f3; /* Blue */
}

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

/* Utility Classes */
.error {
  color: #d9534f; /* Red */
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.success {
  color: #3c763d; /* Green */
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 30px;
  padding: 15px;
  color: #777;
  border-top: 1px solid #eee;
}
