* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #fff8fc;
  color: #2c2c2c;
  transition: background 0.25s ease;
  line-height: 1.5;
}

body.scholarship-mode { background: #ffc0d0; }

header {
  background: #ffffffcc;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container { display: flex; align-items: center; gap: 14px; }
.logo-img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; }
.logo-text { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 800; color: #f25ca2; text-decoration: none; letter-spacing: -0.5px; }

nav ul { display: flex; gap: 28px; list-style: none; }
nav a { font-weight: 600; text-decoration: none; color: #f25ca2; position: relative; transition: all 0.3s ease; }
nav a:hover { color: #a22865; }
nav a::after { content: ""; position: absolute; width: 0%; height: 2px; left: 0; bottom: -6px; background: #f25ca2; transition: 0.3s ease; }
nav a:hover::after { width: 100%; }

.hero {
  text-align: center;
  padding: 30px 20px 30px;
  background: linear-gradient(to right, #ffe8f0, #fff0f7);
  transition: background 0.25s ease;
}

body.scholarship-mode .hero { background: linear-gradient(to right, #ffd9e7, #ffe3f1); }

.hero h1 { font-size: 44px; color: #f25ca2; font-weight: 700; }
.hero p { font-size: 18px; color: #555; margin-top: 16px; }

.chatbox {
  max-width: 850px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

#chat { max-height: 60vh; overflow-y: auto; }

.chat-message {
  margin-bottom: 20px;
  padding: 14px 20px;
  border-radius: 14px;
  max-width: 75%;
  font-size: 16px;
  word-wrap: break-word;
}

.chat-message.user {
  background: #ffe3ec;
  color: #c93580;
  text-align: right;
  margin-left: auto;
  white-space: pre-wrap;
}

.chat-message.bot {
  background: #f4f4f4;
  color: #333;
  text-align: left;
  margin-right: auto;
}

.input-area {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}

input[type="text"] {
  flex: 1 1 400px;
  padding: 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  transition: border 0.2s ease;
}

input[type="text"]:focus { border-color: #f25ca2; }

button {
  background: #f25ca2;
  color: white;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover { background: #ff8ac3; }
button:disabled { opacity: .6; cursor: not-allowed; }

footer {
  background: #f25ca2;
  color: white;
  text-align: center;
  padding: 24px 0;
  margin-top: 60px;
  font-size: 15px;
}

/* Toggle switch */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  background: #fff;
  border: 1px solid #eee;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.toggle .label { font-weight: 600; color: #c93580; }

.switch { position: relative; width: 48px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ddd;
  border-radius: 999px;
  transition: .2s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input:checked + .slider { background: #f25ca2; }
input:checked + .slider:before { transform: translateX(20px); }

.chat-message.bot p { margin: 0 0 8px; }
.chat-message.bot ul, .chat-message.bot ol { margin: 8px 0 8px 20px; }
.chat-message.bot li { margin: 4px 0; }
.chat-message.bot strong { font-weight: 700; }
