/* Chat Widget Styles */
.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0a2b5e, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.chat-button i {
  font-size: 28px;
  color: white;
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transition: all 0.3s ease;
  border: 1px solid #e0e7ff;
}

.chat-window.hidden {
  display: none;
}

.chat-header {
  background: linear-gradient(135deg, #0a2b5e, #3b82f6);
  color: white;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header i {
  font-size: 18px;
}

.close-chat {
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}

.close-chat:hover {
  opacity: 0.7;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f9fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.4;
}

.bot-message {
  background: #e0f4ff;
  color: #0a2b5e;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-message {
  background: #0a2b5e;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #e2edf2;
  background: white;
}

.chat-input-area input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbdbe2;
  border-radius: 25px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.chat-input-area input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.chat-input-area button {
  background: #0a2b5e;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 8px 15px;
  margin-left: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.chat-input-area button:hover {
  background: #3b82f6;
}

@media (max-width: 500px) {
  .chat-window {
    width: 90%;
    right: 5%;
    left: 5%;
    bottom: 80px;
  }
}