body {
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: #000;
    margin: 0;
    padding: 0;
}

.chat-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
}

.chat-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: #fff;
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
}

.chat-popup.expanded {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
}

.chat-popup.minimized {
    display: none;
}

.chat-popup.open {
    display: flex;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 10px 0;
    background: #fff;
}

.chat-body .messages{
    padding: 0 10px 0px 10px;
}

#messages {
  height: 300px; /* ou 100% de uma div pai com altura */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-popup.expanded #messages{
    height: 100%;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.message.user {
    justify-content: flex-end;
}

.message.admin {
    justify-content: flex-start;
}

.message-content {
    background: #0078ff;
    color: white;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
    text-align: left;
}

.message.user .message-content {
    background: #0078ff;
    align-items: flex-end;
}

.message.admin .message-content {
    background: #444;
    align-items: flex-start;
    text-align: right;
}

.meta {
    font-size: 11px;
    color: #ccc;
    margin-top: 5px;
}

.input-area {
    display: flex;
    padding: 5px 10px;
    background: #1e1e1e;
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 40px);
}

.input-area input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
    margin-right: 8px;
    background: #2e2e2e;
    color: white;
}

.input-area button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
  z-index: 10;
  animation: pulse 2s ease infinite;
}

.hidden {
  display: none;
}

/* animação chacoalhar */
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
  75% { transform: rotate(-2deg); }
}

.shake {
  animation: shake 1s infinite;
}

.chat-actions button{
    background-color: transparent;
    border: none;
    color: white;
    font-size: 22px;
    font-weight: bold;
}