/* ---------- Body & Container ---------- */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #a1c4fd, #c2e9fb);
  color: #333;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 500px;
  width: 100%;
}

/* ---------- Header ---------- */
h1 {
  text-align: center;
  margin-bottom: 15px;
  color: #1e3a8a;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* ---------- Chat Box ---------- */
.chat {
  height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.msg {
  padding: 10px 15px;
  margin: 5px 0;
  border-radius: 20px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.msg.me {
  background: rgba(178, 245, 234, 0.7);
  align-self: flex-end;
  backdrop-filter: blur(5px);
}

.msg.bot {
  background: rgba(254, 252, 191, 0.7);
  align-self: flex-start;
  backdrop-filter: blur(5px);
}

/* ---------- Form ---------- */
form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

form input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 25px;
  border: 1px solid rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
  background: rgba(255,255,255,0.6);
  outline: none;
}

form button {
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  background: rgba(99, 179, 237, 0.7);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(5px);
}

form button:hover {
  background: rgba(99, 179, 237, 0.9);
}

/* ---------- Bottom Buttons ---------- */
.bottom-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.bottom-buttons button {
  padding: 10px 15px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  background: rgba(144, 205, 244, 0.6);
  color: #fff;
  font-weight: bold;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.bottom-buttons button:hover {
  background: rgba(144, 205, 244, 0.9);
}

/* ---------- Quote ---------- */
.quote {
  margin-top: 15px;
  font-style: italic;
  text-align: center;
  color: #1e3a8a;
  font-size: 0.95rem;
}

/* ---------- Modals ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  margin: 10% auto;
  padding: 20px;
  border-radius: 20px;
  max-width: 320px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  color: #1e3a8a;
}

/* ---------- Breathing Circle ---------- */
.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid rgba(99,179,237,0.8);
  margin: 20px auto;
  animation: breath 4s infinite;
}

@keyframes breath {
  0%,100% { transform: scale(1); border-color: rgba(99,179,237,0.6); }
  50% { transform: scale(1.5); border-color: rgba(99,179,237,1); }
}

/* ---------- Mood Graph ---------- */
canvas#moodChart {
  margin-top: 15px;
  background: rgba(255,255,255,0.5);
  border-radius: 15px;
  padding: 5px;
}
