html, body {
  height: 100%;
  background: transparent !important;
}
.container {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  display: flex;
}
.wrapper {
  box-shadow: 0 5px 30px 5px rgba(210,210,210,1);
}
#text {
  outline: none;
  border: 1px solid rgb(204, 204, 204);
  box-shadow: none !important;
}
.message {
  display: block;
  margin-bottom: 10px;
  padding-left: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.col-md-3, .col-md-9 { padding-left: 5px; padding-right: 5px; }
small { font-size:12px; }
small small { font-size:10px; }

.chat-container {
  display: flex;
  align-items: stretch;
  gap: 15px;
  width: 100%;
  height: 100%;
}

.chat-container .main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.chat-container .online {
  flex: 0 0 260px;
  display: flex;
}

.chat-container .panel {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.chat-container .panel-body {
  flex: 1;
  overflow-y: auto;
}

#msg {
  list-style: none;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 767px) {
  .chat-container { flex-direction: column; }
  .chat-container .online { display: none; } /* Oculta online em telas pequenas */
}

#login-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
}
#login-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
#login-box {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
#login-box h4 {
  margin: 0 0 15px;
}
.panel-footer { position: relative; }

.emoji-wrap {
  position: relative;
  display: table-cell;
  width: 100%;
}
.emoji-wrap .form-control {
  padding-right: 40px;
}

#btn_emoji {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #666;
  line-height: 1;
  z-index: 200;
}
#btn_emoji:hover { color: #333; }

#emoji-picker {
  position: absolute;
  right: 10px;
  bottom: 50px;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  background: #fff;
  border-radius: 8px;
}

#emoji-picker {
  transform: scale(0.85);
  transform-origin: right bottom;
}

@media (max-width: 480px) {
  #emoji-picker { transform: scale(0.75); }
}