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

/* Header and Navigation */
header {
background-color: #3498db;
color: white;
padding: 1rem 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f0f0f0;
}
/* Hero Section */
#hero {
background: linear-gradient(135deg, #3498db, #2ecc71);
  color: white;
  text-align: center;
  padding: 4rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

#hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

#hero p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Main Content */
main {
max-width: 1200px;
margin: 20px auto;
  padding: 20px;
}

section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
color: #3498db;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/* Mood Tracker Styles */
#mood-tracker .mood-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

#mood-tracker .mood-input label {
  margin-bottom: 10px;
  font-weight: bold;
}

#mood-tracker .mood-input input[type="range"] {
  width: 80%;
  margin-bottom: 10px;
  -webkit-appearance: none;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}

#mood-tracker .mood-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #3498db;
  cursor: pointer;
  border-radius: 50%;
}

#mood-tracker .mood-input button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#mood-tracker .mood-input button:hover {
  background-color: #2980b9;
}

#mood-history ul {
  list-style-type: none;
  padding: 0;
}

#mood-history li {
  background-color: #f0f0f0;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#chatbot {
padding: 20px;
max-width: 800px;
margin: 20px auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#chatbot .chat-container {
  display: flex;
  flex-direction: column;
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#messages {
flex-grow: 1;
overflow-y: auto;
padding: 10px;
border-bottom: 1px solid #eee;
}

#messages .message {
padding: 8px 12px;
margin: 5px;
border-radius: 10px;
max-width: 70%;
}

#messages .user {
background-color: #d1e7ff;
align-self: flex-end;
text-align: right;
}

#messages .bot {
background-color: #f1f1f1;
align-self: flex-start;
text-align: left;
}

.chat-input {
display: flex;
padding: 10px;
border-radius: 5px;
}

.chat-input input {
flex-grow: 1;
padding: 10px;
margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chat-input button {
padding: 10px 15px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-input button:hover {
  background-color: #2980b9;
}


/* Footer */
footer {
  text-align: center;
  padding: 1em;
  background-color: #3498db;
  color: white;
  margin-top: 2rem;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}