/* Chat Icon */
.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #131232 url('../images/pattern.png') repeat;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.chat-icon:hover {
  background: #0f0f28;
  transform: scale(1.05);
}

.chat-icon span {
  color: white;
  font-size: 24px;
}

/* Chat Modal */
.chat-modal {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow: hidden;
}

.chat-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  background: #131232 url('../images/pattern.png') repeat;
  color: #fff !important;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 18px;
  color: #fff !important;
}

.close-chat {
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
}

.message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 80%;
}

.message.received {
  background: #f1f1f1;
  align-self: flex-start;
}

.message.sent {
  background: #131232;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 15px;
}

.chat-input button {
  border-radius: 20px;
  padding: 10px 20px;
}

/* Responsive */
@media (max-width: 576px) {
  .chat-modal {
    width: 300px;
    right: 10px;
    bottom: 80px;
  }
}
