/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Header styles */
.header {
  background-color: #1a237e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-brand h1 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main content styles */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Chat container styles */
.chat-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.chat-header {
  background-color: #1a237e;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.chat-controls {
  display: flex;
  gap: 1rem;
}

.control-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Chat messages styles */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 1rem;
  border-radius: 12px;
  position: relative;
}

.user-message {
  background-color: #e3f2fd;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bot-message {
  background-color: #f5f5f5;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Chat input styles */
.chat-input-container {
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
}

.chat-form {
  display: flex;
  gap: 1rem;
}

.input-group {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-select {
  padding: 0.75rem 0.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 100px;
  max-width: 120px;
}

.search-select:focus {
  border-color: #1a237e;
  outline: none;
}

.search-select:hover {
  border-color: #1a237e;
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  min-width: 0;
}

.chat-input:focus {
  border-color: #1a237e;
  outline: none;
}

.send-button {
  background-color: #1a237e;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.send-button:hover {
  background-color: #0d47a1;
  transform: translateY(-2px);
}

/* Footer styles */
.footer {
  background-color: #1a237e;
  padding: 1rem;
  text-align: center;
  color: #fff;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Dark theme */
body.dark-theme {
  background-color: #121212;
  color: #fff;
}

.dark-theme .chat-container {
  background-color: #1e1e1e;
}

.dark-theme .chat-header {
  background-color: #0d47a1;
}

.dark-theme .user-message {
  background-color: #0d47a1;
  color: #fff;
}

.dark-theme .bot-message {
  background-color: #2d2d2d;
  color: #fff;
}

.dark-theme .chat-input-container {
  background-color: #1e1e1e;
  border-top-color: #333;
}

.dark-theme .chat-input {
  background-color: #2d2d2d;
  border-color: #333;
  color: #fff;
}

.dark-theme .search-select {
  background-color: #2d2d2d;
  border-color: #333;
  color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .chat-container {
    height: calc(100vh - 250px);
  }

  .message {
    max-width: 90%;
  }

  .input-group {
    flex-direction: column;
  }

  .search-select {
    width: 100%;
    max-width: none;
  }
}
