/* user_chat.css — Pelangi88 + Mobile Optimized */

#neoserve-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #0b0e2a;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 30px;
  cursor: pointer;
  z-index: 9999;
  line-height: 60px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.5);
  transition: transform 0.2s ease;
}

#neoserve-launcher:hover {
  transform: scale(1.1);
}

#neoserve-chatbox {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: #0b0e2a;
  border: 2px solid #ffc107;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Registration Form Styles */
.registration-container {
  padding: 15px;
  background: #1a1f3a;
  border-radius: 8px;
  margin: 10px 0;
  border: 1px solid #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #ffc107;
  font-size: 13px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #555;
  background-color: #0b0e2a;
  color: #f0f0f0;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #0b0e2a;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #ffca28, #ff5722);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.suggestions {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  max-width: 200px;
}

.suggestion-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

@media (max-width: 480px) {
  #neoserve-chatbox {
    width: 95%;
    height: 80vh;
    right: 10px;
    left: 10px;
    bottom: 80px;
  }

  .suggestion-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  .registration-container {
    padding: 12px;
  }

  .form-group input {
    font-size: 12px;
    padding: 6px 8px;
  }

  .submit-btn {
    font-size: 13px;
    padding: 8px;
  }
}

#neoserve-header {
  display: flex;
  align-items: center;
  padding: 10px;
  background: linear-gradient(135deg, #ff2d2d, #ff9900);
  color: white;
  font-weight: bold;
  font-size: 15px;
}

#neoserve-logo {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: transparent;
}

#neoserve-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 13px;
}

#neoserve-body p {
  margin: 6px 0;
  line-height: 1.4;
  max-width: 85%;
  padding: 6px 10px;
  border-radius: 12px;
  word-wrap: break-word;
}

.user {
  background: #ff2d2d;
  color: white;
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  padding: 6px 10px;
  border-radius: 12px;
  display: block;
  /* ?? THIS LINE FIXES THE ISSUE */
  max-width: 85%;
  word-break: break-word;
  clear: both;
}

.bot {
  background: #222c5d;
  color: #ffc107;
  text-align: left;
  padding: 6px 10px;
  border-radius: 12px;
  display: block;
  /* ?? ALSO FIX FOR BOT */
  max-width: 85%;
  word-break: break-word;
  clear: both;
}

#neoserve-input-area {
  display: flex;
  padding: 8px;
  background-color: #121528;
  border-top: 1px solid #333;
}

#neoserve-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #555;
  background-color: #1a1f3a;
  color: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
}

#neoserve-send {
  padding: 8px 10px;
  margin-left: 6px;
  cursor: pointer;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #0b0e2a;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}

#neoserve-send:hover {
  background: linear-gradient(135deg, #ffca28, #ff5722);
}

@media (max-width: 480px) {
  #neoserve-chatbox {
    max-width: 95%;
    left: 10px;
    right: 10px;
  }
}