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

/* ✅ Navigation */
nav {
  background-color: #003366;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
nav a {
  color: #FFD700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}
nav a:hover {
  background-color: #FFD700;
  color: #003366;
}
nav a.active {
  background-color: #FFD700;
  color: #003366;
}

/* ✅ Header */
header {
  background: #1a1a2e;
  color: #FFD700;
  padding: 20px;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 28px;
  color: #FFD700;
}
header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #fff;
}

/* ✅ Main */
main {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card {
  margin-bottom: 20px;
}
#askmw-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 10px;
  box-sizing: border-box;
}
#askmw-input:focus {
  border-color: #003366;
  outline: none;
}
.btn-group {
  margin-top: 12px;
}
.btn-group button {
  padding: 10px 18px;
  margin-right: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
#ask-btn {
  background-color: #003366;
  color: white;
}
#ask-btn:hover {
  background-color: #002147;
}
.reset-btn {
  background-color: #FFD700;
  color: #1a1a2e;
}
.reset-btn:hover {
  background-color: #e6c200;
}

/* ✅ Footer */
footer {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
footer a {
  color: #FFD700;
  text-decoration: underline;
}
footer a:hover {
  color: #ffffff;
}
/* Chat UI */
.chat-log {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  background: #f8f9fa;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 15px;
  line-height: 1.4;
  font-size: 14px;
}

.chat-user {
  background: #003366;
  color: white;
  align-self: flex-end;
}

.chat-ai {
  background: #e5e5ea;
  color: #111;
  align-self: flex-start;
}

/* Chat input row */
.chat-input {
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

.chat-input button {
  background: #003366;
  color: #FFD700;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

/* Loading dots */
.loading-dots {
  display: inline-block;
  font-size: 16px;
}
.loading-dots::after {
  content: '...';
  animation: dots 1s steps(5, end) infinite;
}
@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}
