/* Chatbox fő stílus */
#rizzr-chat-container {
  width: 100%;
  max-width: 420px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid #EBEBEB;
  /* Világos szürke keret */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Chatbox üzenetek terület */
#rizzr-chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(240, 240, 240, 0.7);
  border-radius: 12px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Üzenetek beúszó animációja */
@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Felhasználói üzenet */
.user-message {
  text-align: right;
  background: #007aff;
  color: white;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 6px;
  display: inline-block;
  max-width: 80%;
  align-self: flex-end;
  box-shadow: 0 4px 8px rgba(0, 122, 255, 0.2);
  animation: messageFadeIn 0.4s ease-out;
}

/* AI válasz */
.ai-message {
  text-align: left;
  background: #e5e5ea;
  color: black;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80%;
  align-self: flex-start;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: messageFadeIn 0.4s ease-out;
}

/* Üzenetek lebegő hatása */
@keyframes messageBounce {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  60% {
    transform: scale(1.03);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.user-message,
.ai-message {
  animation: messageBounce 0.3s ease-out;
}

/* Input mező (fókusz animáció Apple-stílusban) */
#rizzr-chat-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
}

#rizzr-chat-input:focus {
  border: 1px solid #007aff;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

/* Küldés gomb új színnel */
#rizzr-chat-send {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: #FC81F3;
  /* Élénk pink szín */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(252, 129, 243, 0.4);
}

/* Küldés gomb hover animáció */
#rizzr-chat-send:hover {
  background: #E06AD1;
  /* Sötétebb pink árnyalat hover-re */
  box-shadow: 0 4px 10px rgba(224, 106, 209, 0.6);
}

/* Gomb nyomás animáció */
#rizzr-chat-send:active {
  transform: scale(0.95);
}

/* Gomb lebegtetés animáció */
@keyframes buttonHover {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

#rizzr-chat-send:hover {
  animation: buttonHover 0.3s ease-in-out;
}

/* Másolás gomb stílusa */
.copy-btn {
  background: #FC81F3;
  /* Élénk pink szín */
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s ease-in-out;
}

.copy-btn:hover {
  background: #E06AD1;
  /* Sötétebb pink hover */
}

.copy-btn:active {
  transform: scale(0.95);
}