/* Message status styles */
.atendimento .chat-message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.atendimento .chat-message-status {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #8e8e8e;
  font-size: 12px;
}

.atendimento .chat-message-status i {
  font-size: 14px;
}

.atendimento .chat-message-status i.atendimento .ph-clock {
  color: #8e8e8e;
  animation: spin 1s linear infinite;
}

.atendimento .chat-message-status i.atendimento .ph-warning {
  color: #dc3545;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Typing indicator styles */
.atendimento .typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f0f2f5;
  border-radius: 12px;
  margin: 8px 0;
  width: fit-content;
}

.atendimento .typing-dots {
  display: flex;
  gap: 4px;
}

.atendimento .typing-dots span {
  width: 8px;
  height: 8px;
  background: #8e8e8e;
  border-radius: 50%;
  animation: typing 1.atendimento .4s infinite ease-in-out;
}

.atendimento .typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.atendimento .typing-dots span:nth-child(2) {
  animation-delay: 0.atendimento .2s;
}

.atendimento .typing-dots span:nth-child(3) {
  animation-delay: 0.atendimento .4s;
}

.atendimento .typing-text {
  color: #8e8e8e;
  font-size: 12px;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-4px);
  }
}

.atendimento .message-date-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  position: relative;
}

.atendimento .message-date-separator::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e0e0e0;
  z-index: 1;
}

.atendimento .message-date-separator span {
  padding: 0 10px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.atendimento .1);
  font-size: 12px;
  color: #666;
  position: relative;
  z-index: 2;
}

/* Chat Container Styles */
.atendimento .chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  height: 100%;
  border-radius: 12px;
  height: 85vh;
}

/* Chat Header */
.atendimento .chat-header {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.atendimento .95);
}

.atendimento .chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.atendimento .chat-header-left-avatar {
  position: relative;
  transition: transform 0.atendimento .2s;
}

.atendimento .chat-header-left-avatar:hover {
  transform: scale(1.atendimento .05);
}

.atendimento .chat-header-left-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #2A3D52;
  box-shadow: 0 2px 8px rgba(42, 61, 82, 0.atendimento .1);
  transition: all 0.atendimento .3s ease;
}

.atendimento .chat-header-left-info {
  display: flex;
  flex-direction: column;
}

.atendimento .chat-header-left-info .atendimento .name {
  font-weight: 600;
  color: #2A3D52;
  font-size: 16px;
  transition: color 0.atendimento .2s;
}

.atendimento .chat-header-left-info .atendimento .status {
  font-size: 13px;
  color: #2a3d52be;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atendimento .chat-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.atendimento .chat-header-actions button {
  background: none;
  border: none;
  color: #2A3D52;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.atendimento .2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atendimento .chat-header-actions button:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.atendimento .action-btn {
  width: 36px;
  height: 36px;
}

.atendimento .action-btn.atendimento .finalize i {
  color: #28a745;
}

.atendimento .action-btn.atendimento .cancel i {
  color: #dc3545;
}

.atendimento .action-btn.atendimento .transfer i {
  color: #ffc107;
}

.atendimento .action-btn:hover {
  background-color: rgba(42, 61, 82, 0.atendimento .05);
}

.atendimento .action-btn.atendimento .finalize:hover {
  background-color: rgba(40, 167, 69, 0.atendimento .1);
}

.atendimento .action-btn.atendimento .cancel:hover {
  background-color: rgba(220, 53, 69, 0.atendimento .1);
}

.atendimento .action-btn.atendimento .transfer:hover {
  background-color: rgba(255, 193, 7, 0.atendimento .1);
}

.atendimento .action-btn.atendimento .reopen i {
  color: #17a2b8;
}

.atendimento .action-btn.atendimento .reopen:hover {
  background-color: rgba(23, 162, 184, 0.atendimento .1);
}

/* Current Account Indicator Styles */
.atendimento .current-account-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-right: 15px;
  padding: 8px 12px;
  background: rgba(42, 61, 82, 0.atendimento .05);
  border-radius: 8px;
  border: 1px solid rgba(42, 61, 82, 0.1);
}

.atendimento .account-indicator-text {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.atendimento .5px;
}

.atendimento .account-indicator-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atendimento .account-indicator-info img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #2A3D52;
}

.atendimento .account-indicator-info span {
  font-size: 12px;
  color: #2A3D52;
  font-weight: 500;
}

/* Chat Body */
.atendimento .chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 67vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

/* Date Separator */
.atendimento .message-date-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

.atendimento .message-date-separator::before,
.atendimento .message-date-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.atendimento .message-date-separator span {
  padding: 0 10px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.atendimento .1);
}

.atendimento .chat-message {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
  animation: messageSlideIn 0.atendimento .3s ease;
  overscroll-behavior: contain;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.atendimento .chat-message.atendimento .received {
  align-self: flex-start;
}

.sent {
  align-self: flex-end !important;
  flex-direction: row-reverse !important;
}

.selected {
  background: #f2f2f2;
}

.sent .chat-message-content {
  background: linear-gradient(135deg, #2A3D52, #3a4f6a);
  color: white;
  border-radius: 16px !important;
  border-bottom-right-radius: 0px !important;
}

.atendimento .chat-message-content {
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 0px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.atendimento .06);
  position: relative;
  transition: all 0.atendimento .2s;
  display: flex;
  gap: 10px;
  align-items: end;
}

.atendimento .chat-message.atendimento .sent .atendimento .chat-message-content {
  background: linear-gradient(135deg, #2A3D52, #3a4f6a);
  border-radius: 16px !important;
  border-bottom-right-radius: 0px !important;
  color: white;
}

.atendimento .chat-message-content-text {
  font-size: 14px;
  line-height: 1.atendimento .5;
  word-break: break-word;
  margin-bottom: 4px;
}

.atendimento .chat-message-time {
  font-size: 11px;
  color: #999;
  text-align: right;
  opacity: 0.atendimento .8;
  margin-top: 4px;
}

.atendimento .chat-message.atendimento .sent .atendimento .chat-message-time {
  color: rgba(255, 255, 255, 0.atendimento .8);
}

/* Chat Footer */
.atendimento .chat-footer {
  padding: 8px 10px;
  border-top: 1px solid #eee;
  background-color: #fff;
  position: sticky;
  bottom: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.atendimento .chat-footer-input {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 8px;
  border-radius: 24px;
  transition: all 0.3s ease;
}

.atendimento .chat-footer-input:focus-within {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.atendimento .chat-footer-input textarea {
  flex: 1;
  /* padding: 12px 16px; */
  /* border: none; */
  /* font-size: 14px; */
  /* background: transparent; */
  transition: all 0.2s ease;
  resize: none;
  /* min-height: 44px;
        max-height: 120px; */
}

.atendimento .chat-footer-input textarea:focus {
  outline: none;
}

/* Botão de enviar com largura fixa */
.atendimento .chat-footer-input button[ng-click*="send"] {
  background: #2A3D52;
  color: white;
  border: none;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(42, 61, 82, 0.2);
  flex-shrink: 0;
}

.atendimento .chat-footer-input button[ng-click*="send"]:hover {
  background: #1e2a3a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 61, 82, 0.3);
}

.atendimento .chat-footer-input button[ng-click*="send"]:active {
  transform: translateY(0);
}

/* Botões de anexo e emoji aumentados */
.atendimento .attachment-btn,
.atendimento .emoji-picker-btn {
  background: transparent !important;
  border: none !important;
  color: #2A3D52 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  transition: background-color 0.2s !important;
  margin-right: 8px;
}

.atendimento .attachment-btn:hover,
.atendimento .emoji-picker-btn:hover {
  background: rgba(42, 61, 82, 0.1) !important;
}

.atendimento .attachment-btn i,
.atendimento .emoji-picker-btn i {
  font-size: 2.4rem !important;
}

/* File preview melhorado */
.atendimento .file-preview {
  /* background: #f8f9fa !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
        padding: 12px !important;
        border: 1px solid #e9ecef !important; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Message Actions */
.atendimento .chat-message-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.2s;
  position: relative;
  right: 0;
  top: 0;
  background: transparent;
  padding: 4px;
  border-radius: 8px;
}

.atendimento .chat-message:hover .atendimento .chat-message-actions {
  opacity: 1;
}

.atendimento .chat-message-action-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.atendimento .chat-message-action-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #2A3D52;
}

.atendimento .chat-message.atendimento .sent .atendimento .chat-message-action-btn {
  color: #2A3D52;
}

.atendimento .chat-message.atendimento .sent .atendimento .chat-message-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Reactions */
.atendimento .chat-message-reactions {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
  animation: reactionsPopIn 0.2s ease;
  overscroll-behavior: contain;
}

@keyframes reactionsPopIn {
  from {
    opacity: 0;
    transform: scale(0.atendimento .8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.atendimento .reaction-btn {
  background: none;
  border: none;
  font-size: 20px;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.atendimento .2s;
}

.atendimento .reaction-btn:hover {
  background: rgba(0, 0, 0, 0.atendimento .05);
  transform: scale(1.atendimento .1);
}

.atendimento .message-reactions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.atendimento .reaction {
  background: rgba(0, 0, 0, 0.atendimento .05);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.atendimento .chat-message.atendimento .sent .atendimento .reaction {
  background: rgba(255, 255, 255, 0.atendimento .1);
  color: white;
}

.atendimento .reply-to {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  padding-left: 8px;
  border-left: 2px solid #2A3D52;
}

.atendimento .chat-message.atendimento .sent .atendimento .reply-to {
  color: rgba(255, 255, 255, 0.atendimento .8);
  border-left-color: white;
}

/* Reply Preview */
.atendimento .reply-preview {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border-left: 3px solid #2A3D52;
  animation: replyPreviewSlideIn 0.atendimento .3s ease;
}

@keyframes replyPreviewSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.atendimento .reply-preview-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.atendimento .reply-preview-text {
  font-size: 13px;
  color: #666;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atendimento .reply-preview-close {
  background: none;
  border: none;
  color: #666;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.atendimento .2s;
}

/* Loading States */
.atendimento .chat-message-skeletons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.atendimento .skeleton-message-received {
  align-self: flex-start;
  max-width: 60%;
}

.chat-message {
  margin: 7px 0 0;
}

.chat-message input[type=text] {
  margin-bottom: 0 !important;
  width: 100%;
}

.chat-message .input-box {
  display: block;
  margin-right: 90px;
}

.chat-message button {
  float: right;
}

.atendimento .skeleton-message-content {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.atendimento .5s infinite;
  border-radius: 12px;
}

/* Scrollbar Styling */
.atendimento .chat-body::-webkit-scrollbar {
  width: 6px;
}

.atendimento .chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.atendimento .chat-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.atendimento .1);
  border-radius: 3px;
}

.atendimento .chat-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .atendimento .chat-container {
    height: 100vh;
    border-radius: 0;
  }

  .atendimento .chat-header {
    padding: 12px 16px;
  }

  .atendimento .chat-header-left-avatar img {
    width: 40px;
    height: 40px;
  }

  .atendimento .chat-message {
    max-width: 90%;
  }

  .atendimento .chat-footer {
    padding: 12px 16px;
  }

  .atendimento .chat-footer-input {
    padding: 6px;
  }

  .atendimento .chat-footer-input button {
    width: 40px;
    height: 40px;
  }
}

/* Typing Indicator */
.atendimento .typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 8px;
}

.atendimento .typing-dot {
  width: 8px;
  height: 8px;
  background: #2A3D52;
  border-radius: 50%;
  animation: typingDot 1.atendimento .4s infinite;
}

.atendimento .typing-dot:nth-child(2) {
  animation-delay: 0.atendimento .2s;
}

.atendimento .typing-dot:nth-child(3) {
  animation-delay: 0.atendimento .4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-4px);
  }
}

/* Message Status */
.atendimento .message-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.atendimento .message-status i {
  font-size: 14px;
}

.atendimento .message-status.atendimento .sent {
  color: #28a745;
}

.atendimento .message-status.atendimento .delivered {
  color: #17a2b8;
}

.atendimento .message-status.atendimento .read {
  color: #2A3D52;
}

/* File Upload Preview */
.atendimento .file-upload-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
}

.atendimento .file-preview-icon {
  font-size: 24px;
  color: #2A3D52;
}

.atendimento .file-preview-info {
  flex: 1;
}

.atendimento .file-preview-name {
  font-size: 13px;
  color: #2A3D52;
  margin-bottom: 2px;
}

.atendimento .file-preview-size {
  font-size: 11px;
  color: #666;
}

.atendimento .file-preview-remove {
  background: none;
  border: none;
  color: #dc3545;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.atendimento .2s;
}

.atendimento .file-preview-remove:hover {
  background: rgba(220, 53, 69, 0.atendimento .1);
}

/* Voice Message */
.atendimento .voice-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(42, 61, 82, 0.atendimento .05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.atendimento .2s;
}

.atendimento .voice-message:hover {
  background: rgba(42, 61, 82, 0.1);
}

.atendimento .voice-message-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2A3D52;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.atendimento .2s;
}

.atendimento .voice-message-play:hover {
  transform: scale(1.atendimento .1);
}

.atendimento .voice-message-waveform {
  flex: 1;
  height: 24px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.atendimento .w3.atendimento .org/2000/svg" viewBox="0 0 100 24"><path d="M0,12 L2,12 L2,8 L4,8 L4,16 L6,16 L6,4 L8,4 L8,20 L10,20 L10,0 L12,0 L12,24 L14,24 L14,0 L16,0 L16,20 L18,20 L18,4 L20,4 L20,16 L22,16 L22,8 L24,8 L24,12 L26,12" fill="none" stroke="%232A3D52" stroke-width="2"/></svg>') repeat-x;
  background-size: contain;
  opacity: 0.atendimento .5;
}

.atendimento .voice-message-duration {
  font-size: 12px;
  color: #666;
}

/* Message Link Preview */
.atendimento .message-link-preview {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  transition: all 0.atendimento .2s;
}

.atendimento .message-link-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.atendimento .1);
}

.atendimento .link-preview-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.atendimento .link-preview-content {
  padding: 12px;
}

.atendimento .link-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: #2A3D52;
  margin-bottom: 4px;
}

.atendimento .link-preview-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.atendimento .link-preview-url {
  font-size: 11px;
  color: #999;
}

/* Empty Chat State Styles */
.atendimento .chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 8px;
}

.atendimento .chat-empty-content {
  text-align: center;
  padding: 40px;
  max-width: 400px;
}

.atendimento .empty-chat-icon {
  font-size: 64px;
  color: #2A3D52;
  margin-bottom: 20px;
  opacity: 0.atendimento .8;
}

.atendimento .chat-empty-content h3 {
  color: #2A3D52;
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.atendimento .chat-empty-content p {
  color: #666;
  font-size: 16px;
  line-height: 1.atendimento .5;
  margin: 0;
}

/* Search and Filter Styles */
.atendimento .search-filter-container {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.atendimento .search-box {
  position: relative;
  margin-bottom: 12px;
}

.atendimento .search-box i {
  color: #666;
  font-size: 18px;
}

.atendimento .search-box input {
  width: 100%;
  padding: 10px 10px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.atendimento .3s ease;
}

.atendimento .search-box input:focus {
  outline: none;
}

.atendimento .filter-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.atendimento .filter-options::-webkit-scrollbar {
  height: 4px;
}

.atendimento .filter-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.atendimento .filter-options::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.atendimento .filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
  white-space: nowrap;
}

.atendimento .filter-btn i {
  font-size: 16px;
}

.atendimento .filter-btn:hover {
  background: #f8f9fa;
  border-color: #2A3D52;
  color: #2A3D52;
}

.atendimento .filter-btn.atendimento .active {
  background: #2A3D52;
  border-color: #2A3D52;
  color: white;
}

.atendimento .filter-btn.atendimento .active:hover {
  background: #1e2a3a;
}

/* Contact Panel Styles */
.atendimento .contact-panel {
  width: 300px;
  border-left: 1px solid #eee;
  height: 100%;
  overflow-y: auto;
  background: white;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  position: relative;
}

.atendimento .contact-panel.minimized {
  width: 50px !important;
  overflow: hidden;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.atendimento .contact-panel.minimized::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2A3D52, #3a4f6a);
}

.atendimento .contact-panel.minimized .contact-panel-body,
.atendimento .contact-panel.minimized .contact-panel-header h3 {
  display: none;
}

.atendimento .contact-panel.minimized .contact-panel-header {
  padding: 10px;
  justify-content: center;
  border-bottom: none;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.atendimento .contact-panel.minimized .minimize-btn {
  margin: 0 auto;
  font-size: 16px;
  color: #2A3D52;
  transition: all 0.2s ease;
}

.atendimento .contact-panel.minimized .minimize-btn:hover {
  background-color: #f8f9fa;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.atendimento .contact-panel-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  color: #2A3D52;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atendimento .minimize-btn {
  background: none;
  border: none;
  color: #2A3D52;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atendimento .minimize-btn:hover {
  background-color: #f8f9fa;
}

.atendimento .contact-panel.minimized .minimize-btn {
  margin: 0 auto;
}

.atendimento .contact-panel-body {
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.atendimento .contact-avatar {
  text-align: center;
  margin-bottom: 30px;
}

.atendimento .contact-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #2A3D52;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.atendimento .1);
}

.atendimento .contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.atendimento .info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border-radius: 8px;
}

.atendimento .info-group label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.atendimento .5px;
}

.atendimento .info-group p {
  margin: 0;
  color: #2A3D52;
  font-size: 16px;
  font-weight: 500;
}

/* Updated Accept Chat Button Styles */
.atendimento .chat-footer-accept {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 10px;
}

.atendimento .accept-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #28a745;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.atendimento .3s ease;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.atendimento .2);
  width: 100%;
  justify-content: center;
}

.atendimento .accept-chat-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.atendimento .3);
}

.atendimento .accept-chat-btn:active {
  transform: translateY(0);
}

.atendimento .accept-chat-btn i {
  font-size: 20px;
}

.atendimento .accept-chat-info {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.atendimento .5;
  text-align: center;
}

/* Concluded Chat Footer Styles */
.atendimento .chat-footer-concluded {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 10px;
}

.atendimento .concluded-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #666;
}

.atendimento .concluded-message i {
  font-size: 24px;
  color: #28a745;
}

.atendimento .concluded-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 400px;
}

/* Estilos para checkboxes do modal de contatos */
.waha-contacts-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #25D366;
}

.waha-contacts-modal input[type="checkbox"]:focus {
  outline: 2px solid #25D366;
  outline-offset: 2px;
}

/* Estilos para botões de seleção */
.waha-contacts-modal .selection-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.waha-contacts-modal .selection-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.waha-contacts-modal .selection-buttons {
  display: flex;
  gap: 8px;
}

.waha-contacts-modal .selection-buttons button {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.waha-contacts-modal .selection-buttons button:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Estilos para paginação */
.waha-contacts-modal .pagination-info {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 5px;
}

.waha-contacts-modal .load-more-button {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.waha-contacts-modal .load-more-button:hover {
  background: #128C7E;
  transform: translateY(-1px);
}

.waha-contacts-modal .loading-more {
  text-align: center;
  padding: 20px;
}

.waha-contacts-modal .loading-more i {
  font-size: 24px;
  color: #25D366;
  animation: spin 1s linear infinite;
}

.waha-contacts-modal .loading-more p {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* Loading State Styles */
.atendimento .loading-chats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  list-style: none;
}

.atendimento .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #2A3D52;
}

.atendimento .loading-spinner i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}

.atendimento .loading-spinner span {
  font-size: 14px;
  color: #666;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Loading Messages Styles */
.atendimento .loading-messages {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
}

.atendimento .loading-messages .atendimento .loading-spinner {
  background: rgba(255, 255, 255, 0.atendimento .9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.atendimento .1);
}

.atendimento .loading-messages .atendimento .loading-spinner i {
  font-size: 28px;
  animation: spin 1s linear infinite;
}

.atendimento .loading-messages .atendimento .loading-spinner span {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* Skeleton Loading Styles */
.atendimento .skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 20%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.atendimento .5s infinite;
}

.atendimento .skeleton-name {
  width: 120px;
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.atendimento .5s infinite;
  border-radius: 4px;
}

.atendimento .skeleton-time {
  width: 40px;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.atendimento .5s infinite;
  border-radius: 4px;
}

.atendimento .skeleton-message {
  width: 80%;
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.atendimento .5s infinite;
  border-radius: 4px;
}

.atendimento .chat-message-skeletons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.atendimento .skeleton-message-received {
  align-self: flex-start;
  max-width: 60%;
}

.atendimento .skeleton-message-content {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.atendimento .5s infinite;
  border-radius: 12px;
}

.atendimento .skeleton-message-time {
  width: 40px;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.atendimento .5s infinite;
  border-radius: 4px;
  margin-top: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.atendimento .editable-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.atendimento .editable-field p {
  margin: 0;
  flex: 1;
}

.atendimento .btn-edit {
  background: none;
  border: none;
  color: #2A3D52;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.atendimento .2s;
}

.atendimento .btn-edit:hover {
  background: #f0f0f0;
}

.atendimento .edit-field {
  display: flex;
  gap: 8px;
  width: 100%;
}

.atendimento .edit-field input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.atendimento .edit-actions {
  display: flex;
  gap: 4px;
}

.atendimento .btn-save,
.atendimento .btn-cancel {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.atendimento .2s;
}

.atendimento .btn-save {
  color: #28a745;
}

.atendimento .btn-cancel {
  color: #dc3545;
}

.atendimento .btn-save:hover,
.atendimento .btn-cancel:hover {
  background: #f0f0f0;
}

.atendimento .contact-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.atendimento .action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #f8f9fa;
  color: #2A3D52;
  cursor: pointer;
  transition: all 0.atendimento .2s;
  width: 100%;
  text-align: left;
}

.atendimento .action-btn:hover {
  background: #e9ecef;
}

.atendimento .action-btn i {
  font-size: 18px;
}

.atendimento .contact-notes {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.atendimento .contact-notes h4 {
  color: #2A3D52;
  margin-bottom: 12px;
  font-size: 16px;
}

.atendimento .note-item {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.atendimento .note-content p {
  margin: 0 0 8px 0;
  color: #2A3D52;
}

.atendimento .note-content small {
  color: #666;
  font-size: 12px;
}

.atendimento .contact-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dc3545;
  border: 2px solid white;
}

.atendimento .contact-status.atendimento .online {
  background: #28a745;
}

.atendimento .contact-status i {
  font-size: 12px;
  color: white;
}

.atendimento .contact-form h3 {
  color: #2A3D52;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.atendimento .form-group {
  margin-bottom: 20px;
}

.atendimento .form-label {
  display: block;
  color: #2A3D52;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.atendimento .contact-type-container {
  margin-bottom: 20px;
}

.atendimento .contact-type-options {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.atendimento .contact-type-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atendimento .contact-type-item input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.atendimento .contact-type-item label {
  color: #2A3D52;
  font-size: 14px;
  cursor: pointer;
}

.atendimento .contact-form {
  position: relative;
  padding-bottom: 80px;
  /* Add padding to prevent content from being hidden behind fixed buttons */
}

.atendimento .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 15px;
  border-top: 1px solid #eee;
  z-index: 100;
}

.atendimento .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.atendimento .3s ease;
  border: none;
}

.atendimento .btn i {
  font-size: 16px;
}

.atendimento .btn-cancel {
  background: #f8f9fa;
  color: #2A3D52;
  border: 1px solid #ddd;
}

.atendimento .btn-cancel:hover {
  background: #e9ecef;
}

.atendimento .btn-save {
  background: #2A3D52;
  color: white;
  flex: 1;
  justify-content: center;
}

.atendimento .btn-save:hover {
  background: #1e2a3a;
}

/* Botões de adição de novos itens */
.atendimento .btn-default {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #2A3D52;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.atendimento .3s ease;
  margin-top: 10px;
}

.atendimento .btn-default i {
  font-size: 16px;
}

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

/* Estilo para os divisores do formulário */
.atendimento .form-section {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.atendimento .form-section:last-child {
  border-bottom: none;
}

.atendimento .form-section-title {
  color: #2A3D52;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.atendimento .form-section:first-child {
  padding-top: 0;
}

/* Estilo para os botões de remoção */
.atendimento .btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #fff;
  border: 1px solid #dc3545;
  border-radius: 6px;
  color: #dc3545;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
  flex-shrink: 0;
}

.atendimento .btn-danger:hover {
  background: #dc3545;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.atendimento .2);
}

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

.atendimento .btn-danger i {
  font-size: 14px;
}

/* Ajuste para os containers de itens */
.atendimento .item-container {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.atendimento .2s ease;
}

.atendimento .item-container:hover {
  background: #f1f3f544;
}

.atendimento .item-container .atendimento .form-control {
  margin-bottom: 0;
}

.atendimento .item-container .atendimento .btn-danger {
  margin-top: 4px;
}

.atendimento .item-container-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atendimento .nav-tabs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.atendimento .nav-tabs-items {
  display: flex;
  gap: 20px;
}

.atendimento .nav-item {
  list-style: none;
}

.atendimento .nav-link {
  display: flex;
  align-items: center;
  padding: 15px 0;
  color: #666;
  text-decoration: none;
  position: relative;
  transition: all 0.atendimento .3s ease;
}

.atendimento .nav-link:hover {
  color: #2A3D52;
}

.atendimento .nav-link.atendimento .active {
  color: #2A3D52;
}

.atendimento .nav-link.atendimento .active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #2A3D52;
  border-radius: 3px 3px 0 0;
}

.atendimento .nav-link-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atendimento .nav-label {
  font-size: 14px;
  font-weight: 500;
}

.atendimento .nav-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #2A3D52;
  color: white;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.atendimento .nav-tabs-actions {
  position: relative;
}

.atendimento .settings-button {
  background: none;
  border: none;
  color: #2A3D52;
  font-size: 1.atendimento .5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.atendimento .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atendimento .settings-button:hover {
  background-color: #f8f9fa;
}

.atendimento .accounts-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.atendimento .2);
}

.atendimento .settings-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.atendimento .1);
  min-width: 200px;
  z-index: 1000;
  margin-top: 8px;
}

.atendimento .settings-current-account {
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: rgba(42, 61, 82, 0.atendimento .05);
}

.atendimento .current-account-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.atendimento .current-account-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #2A3D52;
}

.atendimento .current-account-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.atendimento .current-account-name {
  font-size: 14px;
  font-weight: 600;
  color: #2A3D52;
}

.atendimento .current-account-username {
  font-size: 12px;
  color: #666;
}

.atendimento .accounts-count-badge {
  margin-left: auto;
  background: rgba(42, 61, 82, 0.atendimento .1);
  color: #2A3D52;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}

.atendimento .settings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #2A3D52;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
}

.atendimento .settings-item:hover {
  background-color: #f8f9fa;
}

.atendimento .settings-item i {
  font-size: 1.atendimento .2rem;
}

/* Accounts Modal Styles */
.atendimento .accounts-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.atendimento .5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.atendimento .accounts-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalFadeIn 0.atendimento .3s ease;
}

.atendimento .accounts-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atendimento .accounts-modal-header h3 {
  margin: 0;
  color: #2A3D52;
  font-size: 20px;
  font-weight: 600;
}

.atendimento .accounts-modal-header button {
  background: none;
  border: none;
  font-size: 24px;
  color: #2A3D52;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.atendimento .2s;
}

.atendimento .accounts-modal-header button:hover {
  background-color: #f8f9fa;
}

.atendimento .accounts-modal-body {
  padding: 20px;
}

.atendimento .current-account-section,
.atendimento .connected-accounts-section,
.atendimento .add-account-section {
  margin-bottom: 30px;
}

.atendimento .current-account-section h4,
.atendimento .connected-accounts-section h4,
.atendimento .add-account-section h4 {
  color: #2A3D52;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #2A3D52;
  padding-bottom: 5px;
}

.atendimento .account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.atendimento .2s ease;
}

.atendimento .account-item:hover {
  background-color: #f8f9fa;
  border-color: #2A3D52;
}

.atendimento .account-item.atendimento .current-account {
  background: linear-gradient(135deg, #2A3D52, #3a4f6a);
  color: white;
  border: none;
}

.atendimento .account-item.atendimento .current-account:hover {
  background: linear-gradient(135deg, #1e2a3a, #2A3D52);
}

.atendimento .account-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.atendimento .account-info img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #2A3D52;
}

.atendimento .current-account .atendimento .account-info img {
  border-color: white;
}

.atendimento .account-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.atendimento .account-name {
  font-weight: 600;
  font-size: 14px;
}

.atendimento .account-username {
  font-size: 13px;
  opacity: 0.atendimento .8;
}

.atendimento .account-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  width: fit-content;
}

.atendimento .account-status.atendimento .active {
  background: rgba(40, 167, 69, 0.atendimento .1);
  color: #28a745;
}

.atendimento .account-status.atendimento .inactive {
  background: rgba(220, 53, 69, 0.atendimento .1);
  color: #dc3545;
}

.atendimento .current-account .atendimento .account-status {
  background: rgba(255, 255, 255, 0.atendimento .2);
  color: white;
}

.atendimento .account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.atendimento .btn-logout,
.atendimento .btn-switch,
.atendimento .btn-reconnect,
.atendimento .btn-remove {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atendimento .btn-logout {
  background: rgba(220, 53, 69, 0.atendimento .1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.atendimento .btn-logout:hover {
  background: #dc3545;
  color: white;
}

.atendimento .current-account .atendimento .btn-logout {
  background: rgba(255, 255, 255, 0.atendimento .2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.atendimento .current-account .atendimento .btn-logout:hover {
  background: rgba(220, 53, 69, 0.8);
}

.atendimento .btn-switch {
  background: rgba(42, 61, 82, 0.atendimento .1);
  color: #2A3D52;
  border: 1px solid rgba(42, 61, 82, 0.2);
}

.atendimento .btn-switch:hover {
  background: #2A3D52;
  color: white;
}

.atendimento .btn-reconnect {
  background: rgba(255, 193, 7, 0.atendimento .1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.atendimento .btn-reconnect:hover {
  background: #ffc107;
  color: #212529;
}

.atendimento .btn-remove {
  background: none;
  color: #dc3545;
  border: 1px solid transparent;
  padding: 8px;
  width: 32px;
  justify-content: center;
}

.atendimento .btn-remove:hover {
  background: rgba(220, 53, 69, 0.atendimento .1);
  border-color: rgba(220, 53, 69, 0.2);
}

.atendimento .add-account-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  transition: all 0.atendimento .2s ease;
}

.atendimento .add-account-container:hover {
  border-color: #2A3D52;
  background-color: #f8f9fa;
}

.atendimento .add-account-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.atendimento .add-account-info i {
  font-size: 32px;
  color: #2A3D52;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.atendimento .add-account-info div p {
  margin: 0;
  color: #2A3D52;
}

.atendimento .add-account-info div p:first-child {
  font-weight: 600;
  margin-bottom: 4px;
}

.atendimento .add-account-info div p:last-child {
  font-size: 14px;
  opacity: 0.atendimento .8;
}

.atendimento .btn-add-account {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.atendimento .3s ease;
  box-shadow: 0 4px 15px rgba(193, 53, 132, 0.atendimento .2);
}

.atendimento .btn-add-account:hover {
  box-shadow: 0 6px 20px rgba(193, 53, 132, 0.atendimento .3);
}

.atendimento .btn-add-account i {
  font-size: 16px;
}

.atendimento .accounts-help {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #2A3D52;
}

.atendimento .help-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #2A3D52;
}

.atendimento .help-item:last-child {
  margin-bottom: 0;
}

.atendimento .help-item i {
  font-size: 16px;
  flex-shrink: 0;
}

.atendimento .accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .atendimento .accounts-modal-content {
    width: 95%;
    margin: 10px;
  }

  .atendimento .account-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .atendimento .account-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .atendimento .add-account-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Responsive adjustments for chat header */
@media (max-width: 1024px) {
  .atendimento .current-account-indicator {
    display: none;
  }

  .atendimento .chat-header-actions {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .atendimento .chat-header {
    padding: 12px 15px;
  }

  .atendimento .chat-header-left-info .atendimento .name {
    font-size: 14px;
  }

  .atendimento .chat-header-actions button {
    font-size: 16px;
    padding: 4px;
  }
}

.atendimento .current-account .atendimento .account-status {
  background: rgba(255, 255, 255, 0.atendimento .2);
  color: white;
}

.atendimento .connection-status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: 500;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atendimento .connection-status.atendimento .online {
  background: rgba(40, 167, 69, 0.atendimento .1);
  color: #28a745;
}

.atendimento .connection-status.atendimento .error {
  background: rgba(255, 193, 7, 0.atendimento .1);
  color: #ffc107;
}

.atendimento .connection-status.atendimento .offline {
  background: rgba(220, 53, 69, 0.atendimento .1);
  color: #dc3545;
}

.atendimento .connection-status i {
  font-size: 8px;
}

/* Loading and Error States */
.atendimento .loading-accounts,
.atendimento .error-accounts {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 200px;
}

.atendimento .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: #2A3D52;
}

.atendimento .loading-spinner i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}

.atendimento .loading-spinner span {
  font-size: 14px;
  color: #666;
}

.atendimento .error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: #dc3545;
  text-align: center;
  max-width: 300px;
}

.atendimento .error-content i {
  font-size: 32px;
}

.atendimento .error-content span {
  font-size: 14px;
  line-height: 1.atendimento .5;
}

.atendimento .btn-retry {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.atendimento .3s ease;
}

.atendimento .btn-retry:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.atendimento .btn-retry i {
  font-size: 16px;
}

/* Section Headers */
.atendimento .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.atendimento .section-header h4 {
  margin: 0;
  color: #2A3D52;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #2A3D52;
  padding-bottom: 5px;
  flex: 1;
}

.atendimento .btn-refresh {
  background: none;
  border: 1px solid #2A3D52;
  color: #2A3D52;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.atendimento .3s ease;
  margin-left: 15px;
}

.atendimento .btn-refresh:hover {
  background: #2A3D52;
  color: white;
}

.atendimento .btn-refresh:disabled {
  opacity: 0.atendimento .6;
  cursor: not-allowed;
}

.atendimento .btn-refresh i {
  font-size: 14px;
}

.atendimento .btn-refresh i.atendimento .spinning {
  animation: spin 1s linear infinite;
}

/* Account Avatar with badges */
.atendimento .account-avatar {
  position: relative;
  display: inline-block;
}

.atendimento .account-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #2A3D52;
}

.atendimento .current-account .atendimento .account-avatar img {
  border-color: white;
}

.atendimento .verification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #1DA1F2;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid white;
}

.atendimento .account-type-badge {
  position: absolute;
  bottom: -2px;
  left: -2px;
  background: #2A3D52;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border: 2px solid white;
}

.atendimento .account-type-badge.atendimento .business {
  background: #E1306C;
}

.atendimento .account-type-badge.atendimento .personal {
  background: #405DE6;
}

.atendimento .current-account .atendimento .verification-badge,
.atendimento .current-account .atendimento .account-type-badge {
  border-color: #2A3D52;
}

/* Account Metadata */
.atendimento .account-metadata {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.atendimento .followers-count,
.atendimento .last-sync {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #666;
}

.atendimento .current-account .atendimento .followers-count,
.atendimento .current-account .atendimento .last-sync {
  color: rgba(255, 255, 255, 0.atendimento .8);
}

.atendimento .followers-count i,
.atendimento .last-sync i {
  font-size: 12px;
}

/* Enhanced button styles */
.atendimento .btn-switch-warning {
  background: rgba(255, 193, 7, 0.atendimento .1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.atendimento .2);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atendimento .btn-switch-warning:hover {
  background: #ffc107;
  color: #212529;
}

/* Animation keyframes */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced responsive design */
@media (max-width: 480px) {
  .atendimento .account-metadata {
    display: none;
  }

  .atendimento .account-avatar img {
    width: 40px;
    height: 40px;
  }

  .atendimento .verification-badge,
  .atendimento .account-type-badge {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  .atendimento .account-actions {
    flex-wrap: wrap;
  }

  .atendimento .btn-switch,
  .atendimento .btn-switch-warning,
  .atendimento .btn-reconnect {
    flex: 1;
    min-width: 80px;
  }
}

.atendimento .btn-logout {
  background: none;
  border: none;
  color: #2A3D52;
  font-size: 14px;
}

.atendimento .btn-logout:hover {
  background: #2A3D52;
  color: white;
}

.atendimento .btn-logout i {
  font-size: 16px;
}

.atendimento .btn-logout:hover {
  background: #2A3D52;
  color: white;
}


.atendimento .chat-message-attachment {
  margin-bottom: 8px;
}

.atendimento .chat-message-video {
  max-width: 100%;
  border-radius: 8px;
  background: #000;
}

.atendimento .chat-message.atendimento .sent .atendimento .chat-message-video {
  border: 1px solid rgba(255, 255, 255, 0.atendimento .2);
}

.atendimento .chat-message-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.atendimento .2s;
}

.atendimento .chat-message:hover .atendimento .chat-message-actions {
  opacity: 1;
}

.atendimento .chat-message-action-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.atendimento .2s;
}

.atendimento .chat-message-action-btn:hover {
  background: rgba(0, 0, 0, 0.atendimento .05);
  color: #2A3D52;
}

.atendimento .chat-message.atendimento .sent .atendimento .chat-message-action-btn {
  color: #2A3D52;
}

.atendimento .chat-message.atendimento .sent .atendimento .chat-message-action-btn:hover {
  background: rgba(255, 255, 255, 0.atendimento .1);
  color: #2A3D52;
}

.atendimento .chat-message-reactions {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.atendimento .15);
  padding: 8px;
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  z-index: 2;
}

.atendimento .reaction-btn {
  background: none;
  border: none;
  font-size: 20px;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.atendimento .2s;
}

.atendimento .reaction-btn:hover {
  background: rgba(0, 0, 0, 0.atendimento .05);
  transform: scale(1.atendimento .1);
}

.atendimento .message-reactions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.atendimento .reaction {
  background: rgba(0, 0, 0, 0.atendimento .05);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.atendimento .chat-message.atendimento .sent .atendimento .reaction {
  background: rgba(255, 255, 255, 0.atendimento .1);
  color: white;
}

.atendimento .reply-preview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.atendimento .reply-preview-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.atendimento .reply-preview-text {
  font-size: 13px;
  color: #666;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atendimento .reply-preview-close {
  background: none;
  border: none;
  color: #666;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.atendimento .2s;
}

.atendimento .reply-preview-close:hover {
  background: rgba(0, 0, 0, 0.atendimento .05);
  color: #2A3D52;
}

.atendimento .chat-message.atendimento .reply {
  margin-left: 20px;
}

.atendimento .chat-message.atendimento .reply::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.atendimento .chat-message.atendimento .reply .atendimento .reply-to {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.atendimento .chat-message.atendimento .sent .atendimento .reply-to {
  color: rgba(255, 255, 255, 0.atendimento .8);
}

/* Wallpaper Modal Styles */
.atendimento .wallpaper-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.atendimento .5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.atendimento .wallpaper-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.atendimento .3s ease;
}

.atendimento .wallpaper-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atendimento .wallpaper-modal-header h3 {
  margin: 0;
  color: #2A3D52;
  font-size: 20px;
  font-weight: 600;
}

.atendimento .wallpaper-modal-header button {
  background: none;
  border: none;
  font-size: 24px;
  color: #2A3D52;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.atendimento .2s;
}

.atendimento .wallpaper-modal-header button:hover {
  background-color: #f8f9fa;
}

.atendimento .wallpaper-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.atendimento .wallpaper-categories {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.atendimento .category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #2A3D52;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
}

.atendimento .category-btn:hover {
  background: #f8f9fa;
  border-color: #2A3D52;
}

.atendimento .category-btn.atendimento .active {
  background: #2A3D52;
  color: white;
  border-color: #2A3D52;
}

.atendimento .category-btn i {
  font-size: 18px;
}

.atendimento .wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.atendimento .wallpaper-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
}

.atendimento .wallpaper-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atendimento .wallpaper-item.atendimento .gradient {
  background-size: cover;
  background-position: center;
}

.atendimento .wallpaper-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.atendimento .3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.atendimento .2s ease;
}

.atendimento .wallpaper-item:hover .atendimento .wallpaper-overlay {
  opacity: 1;
}

.atendimento .wallpaper-overlay i {
  color: white;
  font-size: 24px;
}

.atendimento .wallpaper-upload {
  padding: 20px;
}

.atendimento .upload-area {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
}

.atendimento .upload-area:hover {
  border-color: #2A3D52;
  background: #f8f9fa;
}

.atendimento .upload-area.atendimento .dragover {
  border-color: #2A3D52;
  background: rgba(42, 61, 82, 0.atendimento .05);
}

.atendimento .upload-area i {
  font-size: 48px;
  color: #2A3D52;
  margin-bottom: 15px;
}

.atendimento .upload-area p {
  margin: 0 0 8px 0;
  color: #2A3D52;
  font-size: 16px;
}

.atendimento .upload-area span {
  color: #666;
  font-size: 14px;
}

.atendimento .upload-preview {
  margin-top: 20px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.atendimento .upload-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.atendimento .btn-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.atendimento .5);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
}

.atendimento .btn-remove:hover {
  background: rgba(220, 53, 69, 0.atendimento .8);
}

.atendimento .wallpaper-modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.atendimento .btn-cancel,
.atendimento .btn-apply {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
}

.atendimento .btn-cancel {
  background: #f8f9fa;
  color: #2A3D52;
  border: 1px solid #ddd;
}

.atendimento .btn-cancel:hover {
  background: #e9ecef;
}

.atendimento .btn-apply {
  background: #2A3D52;
  color: white;
  border: none;
}

.atendimento .btn-apply:hover {
  background: #1e2a3a;
}

.atendimento .btn-apply:disabled {
  opacity: 0.atendimento .6;
  cursor: not-allowed;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .atendimento .wallpaper-modal-content {
    width: 95%;
    margin: 10px;
  }

  .atendimento .wallpaper-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .atendimento .category-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .atendimento .upload-area {
    padding: 20px;
  }
}

/* No Chats Message Styles */
.atendimento .no-chats-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  padding: 20px;
}

.atendimento .no-chats-content {
  text-align: center;
  padding: 40px;
  max-width: 400px;
}

.atendimento .no-chats-content i {
  font-size: 64px;
  color: #2A3D52;
  margin-bottom: 20px;
  opacity: 0.atendimento .8;
}

.atendimento .no-chats-content h3 {
  color: #2A3D52;
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.atendimento .no-chats-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.atendimento .5;
  margin: 0;
}

/* animation scale */
@keyframes scale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.atendimento .1);
  }

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

.atendimento .chat-message.atendimento .highlight {
  animation: scale 1s cubic-bezier(0.atendimento .55, 0.atendimento .055, 0.atendimento .675, 0.atendimento .19);
  will-change: transform, background-color, box-shadow;
}

/* Reply Message Styles */
.atendimento .reply-to {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(42, 61, 82, 0.atendimento .05);
  cursor: pointer;
  transition: all 0.atendimento .2s ease;
}

.atendimento .reply-to:hover {
  background: rgba(42, 61, 82, 0.atendimento .1);
}

/* Different colors for replied messages from different users */
.atendimento .chat-message.atendimento .received .atendimento .reply-to {
  border-left: 3px solid #2A3D52;
}

.atendimento .chat-message.atendimento .sent .atendimento .reply-to {
  border-left: 3px solid #E1306C;
}

.atendimento .chat-message.atendimento .received .atendimento .reply-to:hover {
  background: #2A3D52;
  color: white;
}

.atendimento .chat-message.atendimento .sent .atendimento .reply-to:hover {
  background: #E1306C;
  color: white;
}

/* Smooth scroll behavior */
.atendimento .chat-body {
  scroll-behavior: smooth;
}

/* Service Actions Styles */
.atendimento .service-actions {
  position: relative;
}

.atendimento .service-actions-btn {
  background: none;
  border: none;
  color: #2A3D52;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.atendimento .2s;
  position: relative;
}

.atendimento .service-actions-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
}

.atendimento .service-actions-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.atendimento .15);
  min-width: 250px;
  z-index: 1000;
  margin-top: 8px;
  animation: dropdownFadeIn 0.atendimento .2s ease;
}

.atendimento .service-actions-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atendimento .service-actions-header h4 {
  margin: 0;
  color: #2A3D52;
  font-size: 16px;
  font-weight: 600;
}

.atendimento .service-actions-header button {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.atendimento .2s;
}

.atendimento .service-actions-header button:hover {
  background: #f8f9fa;
  color: #2A3D52;
}

.atendimento .service-actions-content {
  padding: 8px;
}

.atendimento .action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  background: none;
  color: #2A3D52;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.atendimento .2s;
}

.atendimento .action-item:hover {
  background: #f8f9fa;
}

.atendimento .action-item i {
  font-size: 18px;
  color: #2A3D52;
}

.atendimento .action-item:first-child i {
  color: #28a745;
}

.atendimento .action-item:nth-child(2) i {
  color: #dc3545;
}

.atendimento .action-item:last-child i {
  color: #ffc107;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .atendimento .service-actions-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 12px 12px 0 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .atendimento .service-actions-content {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Confirmation Modal Styles */
.atendimento .confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.atendimento .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.atendimento .confirmation-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.atendimento .1);
}

.atendimento .confirmation-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atendimento .confirmation-modal-header h3 {
  margin: 0;
  font-size: 1.atendimento .5rem;
  font-weight: 600;
}

.atendimento .confirmation-modal-header button {
  background: none;
  border: none;
  font-size: 1.atendimento .5rem;
  cursor: pointer;
  color: #666;
}

.atendimento .confirmation-modal-body {
  padding: 30px 20px;
  text-align: center;
}

.atendimento .confirmation-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.atendimento .confirmation-icon.atendimento .warning {
  color: #dc3545;
}

.atendimento .confirmation-icon.atendimento .success {
  color: #28a745;
}

.atendimento .confirmation-icon.atendimento .transfer {
  color: #007bff;
}

.atendimento .confirmation-icon.atendimento .reopen {
  color: #17a2b8;
}

.atendimento .confirmation-details {
  color: #666;
  margin-top: 10px;
  font-size: 0.atendimento .9rem;
}

.atendimento .confirmation-modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.atendimento .confirmation-modal-footer button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.atendimento .btn-cancel {
  background: #f8f9fa;
  color: #333;
}

.atendimento .btn-confirm {
  background: #007bff;
  color: white;
}

.atendimento .btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Transfer Modal Specific Styles */
.atendimento .transfer-options {
  margin-top: 20px;
  text-align: left;
}

.atendimento .transfer-options .atendimento .search-box {
  position: relative;
  margin-bottom: 15px;
}

.atendimento .transfer-options .atendimento .search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.atendimento .transfer-options .atendimento .search-box input {
  width: 100%;
  padding: 8px 8px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.atendimento .attendants-list {
  max-height: 300px;
  overflow-y: auto;
}

.atendimento .attendant-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.atendimento .2s;
}

.atendimento .attendant-item:hover {
  background-color: #f8f9fa;
}

.atendimento .attendant-item.atendimento .selected {
  background-color: #e3f2fd !important;
  border-color: #90caf9 !important;
}

.atendimento .attendant-avatar {
  position: relative;
  margin-right: 15px;
}

.atendimento .attendant-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.atendimento .status-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
}

.atendimento .status-badge.atendimento .online {
  background-color: #28a745;
}

.atendimento .status-badge.atendimento .offline {
  background-color: #dc3545;
}

.atendimento .status-badge.atendimento .busy {
  background-color: #ffc107;
}

.atendimento .attendant-info {
  flex: 1;
  min-width: 0;
}

.atendimento .attendant-name {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.atendimento .attendant-status {
  font-size: 0.atendimento .8rem;
  color: #666;
}

.atendimento .attendant-metrics {
  display: flex;
  gap: 15px;
}

.atendimento .metric {
  font-size: 0.atendimento .8rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.atendimento .metric i {
  font-size: 1rem;
}

.atendimento .conversation-item:hover {
  background-color: #F2F2F2;
}

.atendimento .conversation-item {
  transition: background-color 0.atendimento .2s ease;
  cursor: pointer;
}

.atendimento .conversation-item:hover {
  background-color: #F2F2F2;
}

.atendimento .conversation-item.atendimento .selected {
  background-color: #F2F2F2 !important;
  border-left: 3px solid #2A3D52 !important;
}

.atendimento .conversation-item.atendimento .selected:hover {
  background-color: #F2F2F2;
}

/* Emoji Picker Styles */
.atendimento .emoji-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow: hidden;
}

.atendimento .emoji-picker-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.atendimento .emoji-categories {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0;
}

.atendimento .emoji-categories button {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.atendimento .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atendimento .emoji-categories button:hover {
  background: #f5f5f5;
  color: #2A3D52;
}

.atendimento .emoji-categories button.atendimento .active {
  background: #2A3D52;
  color: white;
}

.atendimento .emoji-search {
  position: relative;
  padding: 0 8px;
}

.atendimento .emoji-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.atendimento .emoji-search input {
  width: 100%;
  padding: 8px 8px 8px 32px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 14px;
}

.atendimento .emoji-search input:focus {
  outline: none;
  border-color: #2A3D52;
}

.atendimento .emoji-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.atendimento .emoji-group {
  margin-bottom: 16px;
}

.atendimento .emoji-group-title {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  padding: 0 4px;
}

.atendimento .emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.atendimento .emoji-item {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  font-size: 20px;
  transition: all 0.atendimento .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atendimento .emoji-item:hover {
  background: #f5f5f5;
  transform: scale(1.atendimento .1);
}

.atendimento .emoji-picker-footer {
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.atendimento .recent-emojis {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.atendimento .footer-label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.atendimento .recent-emojis-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0;
}

.atendimento .recent-emojis-list .atendimento .emoji-item {
  font-size: 16px;
  padding: 4px;
}

/* Scrollbar Styles */
.atendimento .emoji-list::-webkit-scrollbar,
.atendimento .emoji-categories::-webkit-scrollbar,
.atendimento .recent-emojis-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.atendimento .emoji-list::-webkit-scrollbar-track,
.atendimento .emoji-categories::-webkit-scrollbar-track,
.atendimento .recent-emojis-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.atendimento .emoji-list::-webkit-scrollbar-thumb,
.atendimento .emoji-categories::-webkit-scrollbar-thumb,
.atendimento .recent-emojis-list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.atendimento .emoji-list::-webkit-scrollbar-thumb:hover,
.atendimento .emoji-categories::-webkit-scrollbar-thumb:hover,
.atendimento .recent-emojis-list::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

/* Account Management Bar */
.account-management-bar {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.atendimento .account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #2A3D52;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.atendimento .account-btn:hover {
  background: #1e2b3a;
}

/* Account Modal */
.atendimento.account-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.atendimento .account-modal-content {
  background: white;
  border-radius: 12px;
  width: 600px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.account-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atendimento .account-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.atendimento .account-modal-body {
  padding: 20px;
}

.atendimento .account-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.atendimento .account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.atendimento .account-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.atendimento .account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.atendimento .account-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.atendimento .account-name {
  font-weight: 600;
  font-size: 16px;
}

.atendimento .account-email {
  color: #666;
  font-size: 14px;
}

.atendimento .account-role {
  font-size: 12px;
  color: #2A3D52;
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.atendimento .account-actions {
  display: flex;
  gap: 8px;
}

.atendimento .btn-edit,
.atendimento .btn-delete {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.atendimento .btn-edit:hover {
  background: #e9ecef;
  color: #2A3D52;
}

.atendimento .btn-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.atendimento .btn-add-account {
  width: 100%;
  padding: 12px;
  background: #2A3D52;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.atendimento .btn-add-account:hover {
  background: #1e2b3a;
}

/* Account Form Modal */
.atendimento.account-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.atendimento .account-form-modal-content {
  background: white;
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  position: relative;
  overflow-y: auto;
}

.atendimento .account-form-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atendimento .account-form-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.account-form-modal-body {
  padding: 20px;
}

.atendimento .form-group {
  margin-bottom: 16px;
}

.atendimento .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.atendimento .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.atendimento .btn-cancel {
  padding: 8px 16px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.atendimento .btn-save {
  padding: 8px 16px;
  background: #2A3D52;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.atendimento .btn-save:hover {
  background: #1e2b3a;
}

.atendimento .active-status {
  background: #2A3D52;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.atendimento .account-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.atendimento .account-status-toggle {
  display: flex;
  align-items: center;
}

.atendimento .account-status-toggle .m-5 {
  margin: 0;
}

.atendimento .switch-label {
  font-size: 12px;
  color: #666;
  margin-left: 8px;
}

/* Material Design Switch Overrides */
.atendimento .md-switch {
  margin: 0;
}

.atendimento .md-switch.md-checked .md-switch-thumb {
  background-color: #22c55e;
}

.atendimento .md-switch.md-checked .md-switch-bar {
  background-color: rgba(34, 197, 94, 0.5);
}

.atendimento .md-switch .md-switch-bar {
  background-color: rgba(0, 0, 0, 0.38);
}

.md-switch .md-switch-thumb {
  background-color: #fafafa;
}

/* Active Status Styles */
.atendimento .active-status {
  background: #2A3D52;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 12px;
  cursor: pointer;
}

.atendimento .last-active {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.atendimento .btn-account-management {
  padding: 10px;
  background: #f2f2f2;
  border-radius: 100px;
}

.atendimento .btn-account-management:hover {
  background: #e0e0e0;
}

.atendimento .btn-account-management:active {
  background: #d0d0d0;
}

.atendimento .btn-account-management:focus {
  outline: none;
}

.atendimento .platform-selection {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.atendimento .platform-option {
  flex: 1;
}

.atendimento .platform-option input[type="radio"] {
  display: none;
}

.atendimento .platform-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.platform-option input[type="radio"]:checked+label {
  border-color: #2A3D52;
  background-color: #f8f9fa;
}

.atendimento .platform-option i {
  font-size: 24px;
  color: #2A3D52;
}

.atendimento .auth-section {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

.atendimento .auth-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.auth-message i {
  font-size: 20px;
  color: #2A3D52;
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background-color: #2A3D52;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-auth:hover {
  background-color: #1a2a3a;
}

.atendimento .profile-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.atendimento .profile-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.atendimento .profile-picture {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.atendimento .profile-details h4 {
  margin: 0;
  color: #2A3D52;
}

.atendimento .profile-details p {
  margin: 5px 0 0;
  color: #666;
}

.atendimento .btn-switch-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.atendimento .btn-switch-account:hover {
  background-color: #f8f9fa;
  border-color: #2A3D52;
}

.atendimento .form-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0 20px;
}

.atendimento .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
}

.atendimento .step.conta-active .step-number {
  background-color: #2A3D52;
  color: white;
}

.atendimento .step.completed .step-number {
  background-color: #28a745;
  color: white;
}

.atendimento .step-label {
  font-size: 14px;
  color: #666;
}

.atendimento .step.conta-active .step-label {
  color: #2A3D52;
  font-weight: 600;
}

.atendimento .step-line {
  flex: 1;
  height: 2px;
  background-color: #eee;
  margin: 0 10px;
  margin-bottom: 20px;
}

.atendimento .form-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.atendimento .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.atendimento .btn-prev,
.atendimento .btn-next {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.atendimento .btn-prev:hover,
.atendimento .btn-next:hover {
  background-color: #f8f9fa;
  border-color: #2A3D52;
}

.atendimento .btn-next {
  background-color: #2A3D52;
  color: white;
  border: none;
}

.atendimento .btn-next:hover {
  background-color: #1a2a3a;
}

.atendimento .active {
  border-bottom: 3px solid #2A3D52;
}

.atendimento .conversation-item:hover .chat-actions {
  opacity: 1;
}

.atendimento .chat-action-btn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.atendimento .chat-action-btn:hover {
  background-color: #f0f0f0;
}

.atendimento .chat-menu {
  margin-top: 5px;
}

.atendimento .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: 100%;
  border: none;
  background: transparent;
  color: #2A3D52;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}

.atendimento .menu-item:hover {
  background-color: #f8f9fa;
}

.atendimento .menu-item i {
  font-size: 16px;
}

.atendimento .attendants-list {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.atendimento .attendant-item {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #eee;
}

.atendimento .attendant-item:last-child {
  border-bottom: none;
}

.atendimento .attendant-item:hover {
  background-color: #f8f9fa;
}

.atendimento .attendant-item.selected {
  background-color: #47474717;
}

.atendimento .attendant-avatar {
  position: relative;
}

.attendant-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.atendimento .attendant-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #dc3545;
  border: 2px solid white;
}

.atendimento .attendant-status.online {
  background-color: #28a745;
}

.atendimento .attendant-info {
  flex: 1;
  min-width: 0;
}

.atendimento .attendant-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atendimento .attendant-name {
  font-weight: 600;
  color: #2A3D52;
}

.atendimento .attendant-status-text {
  font-size: 12px;
  color: #28a745;
  background-color: #28a74520;
  padding: 2px 8px;
  border-radius: 100px;
}

.atendimento .attendant-status-text.offline {
  color: #dc3545;
  background-color: #dc354520;
}

.atendimento .attendant-details {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.atendimento .attendant-role {
  font-size: 13px;
  color: #666;
}

.atendimento .attendant-chats {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atendimento .attendant-select {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2A3D52;
}

.atendimento .attendant-item.selected .attendant-select {
  background-color: #2A3D52;
  border-color: #2A3D52;
  color: white;
}

.atendimento .no-attendants {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.atendimento .no-attendants i {
  font-size: 32px;
  margin-bottom: 10px;
  color: #ddd;
}

.atendimento .btn-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atendimento .btn-confirm i {
  font-size: 16px;
}

.atendimento .btn-confirm i {
  margin-right: 8px;
}

/* Estilos para feedback de autenticação */
.atendimento .auth-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}

.atendimento .auth-feedback.auth-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.atendimento .auth-feedback.auth-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.atendimento .auth-feedback.auth-message-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.atendimento .auth-feedback i {
  font-size: 16px;
}

.atendimento .auth-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin-top: 12px;
  color: #2A3D52;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}

.atendimento .auth-loading i {
  font-size: 16px;
  animation: spin 1s linear infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.atendimento .auth-feedback i {
  font-size: 16px;
}

.atendimento .btn-retry-auth {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.atendimento .btn-retry-auth:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.atendimento .btn-retry-auth i {
  font-size: 12px;
}


/* Wallpaper Modal Styles */
.wallpaper-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.wallpaper-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wallpaper-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallpaper-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.wallpaper-modal-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.wallpaper-modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.wallpaper-modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Tabs */
.wallpaper-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.wallpaper-tab {
  padding: 10px 15px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.wallpaper-tab.active {
  background: #f8f9fa;
  color: #2A3D52;
}

.wallpaper-tab:hover {
  background: #f8f9fa;
}

/* Wallpaper Sections */
.wallpaper-section h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2A3D52;
}

/* Gradient Grid */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.wallpaper-item {
  aspect-ratio: 1;
  border-radius: 8px;
}


.wallpaper-item {
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.wallpaper-item:hover {
  border-color: #2A3D52;
  transform: scale(1.05);
}

.wallpaper-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 6px;
}

.wallpaper-item:hover .wallpaper-overlay,
.wallpaper-overlay i {
  opacity: 1;
}

.wallpaper-overlay i {
  color: white;
  font-size: 20px;
}

/* Custom Image Upload */
.custom-image-upload {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.2s;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-image-upload.dragging {
  border-color: #2A3D52;
  background: #f8f9fa;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.upload-area i {
  font-size: 40px;
  color: #ddd;
}

.upload-area p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.btn-upload {
  padding: 10px 20px;
  background: #2A3D52;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-upload:hover {
  background: #1a2a3a;
}

.image-preview {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.image-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 200px;
  object-fit: cover;
}

.image-actions {
  position: absolute;
  top: 10px;
  right: 10px;
}

.btn-remove {
  padding: 5px 10px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-remove:hover {
  background: rgba(220, 53, 69, 1);
}

/* Color Picker */
.color-picker-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.color-preview {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  border: 2px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.color-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-inputs label {
  font-size: 14px;
  font-weight: 500;
  color: #2A3D52;
}

.color-input {
  width: 60px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.color-text {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  width: 100px;
}

.preset-colors h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #2A3D52;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
  gap: 8px;
}

.preset-color {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.preset-color:hover {
  border-color: #2A3D52;
  transform: scale(1.1);
}

/* Buttons */
.btn-cancel,
.btn-apply {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-cancel {
  background: #f8f9fa;
  color: #666;
}

.btn-cancel:hover {
  background: #e9ecef;
}

.btn-apply {
  background: #2A3D52;
  color: white;
}

.btn-apply:hover:not(:disabled) {
  background: #1a2a3a;
}

.btn-apply:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Contact Info Styles */
.contact-header {
  background-color: white;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.contact-header-main {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px 0;
  padding-top: 0px;
}

.contact-avatar-large {
  position: relative;
  width: 60px;
  height: 60px;
  margin-top: 10px;
}

.contact-avatar-large img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-birthday-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #bb7c13;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid #fff;
}

.contact-header-info {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 0;
}

.contact-name {
  font-size: 2rem;
  line-height: 1.2;
  max-width: 320px;
  white-space: normal;
  /* permite quebra de linha */
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0;
}

.contact-name a {
  color: #555555;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-name a:hover {
  color: #2A3D52;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.contact-type-badge,
.contact-status-badge {
  padding: 0;
  max-width: 200px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .contact-header-info {
    max-width: 70vw;
  }

  .contact-name {
    max-width: 160px;
    font-size: 1rem;
  }

  .contact-type-badge,
  .contact-status-badge {
    font-size: 0.75rem;
    max-width: 80px;
  }
}

.status-ativo {
  background: #d4edda;
  color: #155724;
}

.status-inativo {
  background: #f8d7da;
  color: #721c24;
}

.status-prospecto {
  background: #fff3cd;
  color: #856404;
}

.contact-content {
  padding: 0;
}

.contact-section {
  margin-bottom: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: #555555;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.section-title i {
  font-size: 1.8rem;
  color: #555555;
}

.count-label {
  background: #009e9b;
  color: white;
  border-radius: 1000px;
  font-size: small;
  padding: 5px 10px;
  border: 1px solid #009e9b;
  display: flex;
  align-items: center;
  height: 20px;
  margin-left: auto;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-item label {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: bold;
}

.detail-item span {
  font-size: 14px;
  color: #555555;
  font-weight: 500;
}

.observations-text {
  font-style: italic;
  color: #666 !important;
  line-height: 1.4;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  cursor: pointer;
}

.contact-item-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.contact-type-badge {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 14px;
  color: #555555;
  font-weight: 500;
}

.contact-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #2A3D52;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s;
}

.address-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.address-street {
  font-size: 14px;
  color: #555555;
  font-weight: 500;
}

.address-city {
  font-size: 12px;
  color: #666;
}

.activities-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  transition: all 0.2s;
  border-radius: 0;
}

.activity-item.ia-summary {
  border-left: 4px solid #007bff;
  background: #f8f9ff;
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #2A3D52;
  color: white;
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: #555555;
  margin-bottom: 4px;
  line-height: 1.4;
}

.activity-title s {
  color: #666;

}

.activity-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-meta small {
  font-size: 9px;
  color: #666;
  line-height: 1.3;
}

.activity-date {
  margin-bottom: 4px;
}

.task-result {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* View More Activities */
.view-more-activities {
  display: flex;
  justify-content: center;
  padding: 15px 0;
  border-top: 1px solid #e9ecef;
  margin-top: 10px;
}

.btn-view-more {
  padding: 8px 16px;
  background: #2A3D52;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-view-more:hover {
  background: #1a2a3a;
  transform: translateY(-1px);
}

/* Empty Activities */
.empty-activities {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.empty-activities i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-activities p {
  margin: 0;
  font-size: 14px;
}

/* Contact Loading Styles */
.contact-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-spinner {
  margin-bottom: 20px;
}

.loading-spinner i {
  font-size: 40px;
  color: #2A3D52;
  animation: spin 1s linear infinite;
}

.contact-loading p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Contact Tabs Styles */
.contact-tabs {
  overflow: hidden;
  background: white;
}

.contact-tabs-header {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  gap: 10px;
}

.contact-tab-btn {
  flex: 1;
  padding: 10px 0px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  position: relative;
  transition: none !important;
}

.contact-tab-btn.active {
  background: white;
  color: #2A3D52;
}

.contact-tab-btn i {
  font-size: 16px;
}

.tab-count {
  background: #2A3D52;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.contact-tab-content {
  padding: 0px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
}

/* Tasks List Styles */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s;
}

.task-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #2A3D52;
  color: white;
  border-radius: 50%;
  font-size: 16px;
}

.task-content {
  flex: 1;
}

.task-title {
  font-size: 14px;
  font-weight: 500;
  color: #555555;
  margin-bottom: 4px;
}

.task-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.task-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.status-pendente {
  background: #fff3cd;
  color: #856404;
}

.status-em-andamento {
  background: #d1ecf1;
  color: #0c5460;
}

.status-concluida {
  background: #d4edda;
  color: #155724;
}

.task-date {
  font-size: 12px;
  color: #666;
}

/* Negotiations List Styles */
.negotiations-list {
  display: flex;
  flex-direction: column;
}

.negotiation-item {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 10px 0;
  transition: all 0.2s ease;
}

.negotiation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
  align-items: center;
}

.negotiation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #c4b425;
  color: white;
  border-radius: 8px;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 1000px;
}

.negotiation-icon svg {
  width: 20px;
  height: 20px;
}

.negotiation-title-section {
  flex: 1;
  min-width: 0;
}

.negotiation-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.negotiation-link {
  color: #2A3D52;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.negotiation-text-excluded {
  color: #6c757d;
  font-weight: 600;
  font-size: 14px;
  text-decoration: line-through;
}

.negotiation-status-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.negotiation-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.negotiation-value {
  font-size: 13px;
  font-weight: 600;
  color: #28a745;
  background: #d4edda;
  padding: 2px 8px;
  border-radius: 8px;
}

.negotiation-stage {
  font-size: 12px;
  color: #6c757d;
  background: #f8f9fa;
  padding: 2px 8px;
  border-radius: 8px;
}

.negotiation-actions {
  display: flex;
  gap: 8px;
}

.btn-negotiation-action {
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-negotiation-action i {
  font-size: 16px;
}

.btn-negotiation-action.btn-assign {
  color: #aaaaaa;
}

.btn-negotiation-action.btn-assign:hover {
  color: #1e7e34;
}

.negotiation-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.negotiation-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6c757d;
}

.info-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.info-item.excluded {
  color: #dc3545;
}

.negotiation-custom-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
}

.custom-field {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.field-label {
  font-weight: 600;
  color: #495057;
  min-width: 80px;
}

.field-value {
  color: #6c757d;
}

.negotiation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.negotiation-tag {
  font-size: 10px;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Status Labels for Negotiations */
.status-aberta {
  background: #c28b3c;
  color: #fff;
}

.status-fechada {
  background: #136f63;
  color: #fff;
}

.status-perdida {
  background: #f34213;
  color: #fff;
}

.status-cancelada {
  background: #f8d7da;
  color: #721c24;
}

.status-suspensa {
  background: #fff3cd;
  color: #856404;
}

/* Empty Tab Content */
.empty-tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.empty-tab-content i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-tab-content p {
  margin: 0;
  font-size: 14px;
}

/* Contact Actions */
.contact-actions {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-actions .action-btn {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
}

.contact-actions .action-btn.primary {
  background: #2A3D52;
  color: white;
}

.contact-actions .action-btn.primary:hover {
  background: #1a2a3a;
}

.contact-actions .action-btn.secondary {
  background: #6c757d;
  color: white;
}

.contact-actions .action-btn.secondary:hover {
  background: #5a6268;
}

/* Tags Styles */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-item {
  display: inline-block;
}

.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Contact Search Modal Styles */
.contact-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.contact-search-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-search-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-search-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2A3D52;
}

.contact-search-modal-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.contact-search-modal-header button:hover {
  background-color: #f8f9fa;
}

.contact-search-modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.search-section {
  margin-bottom: 20px;
}

.search-input-container {
  position: relative;
  margin-bottom: 10px;
}

.search-input-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 16px;
}

.contact-search-input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.contact-search-input:focus {
  outline: none;
  border-color: #2A3D52;
}

.search-loading {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.search-loading i {
  color: #2A3D52;
  font-size: 16px;
}

.search-hint {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.search-results h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2A3D52;
}

.contact-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-result-item:hover {
  border-color: #2A3D52;
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-result-avatar {
  flex-shrink: 0;
}

.contact-result-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.contact-result-info {
  flex: 1;
  min-width: 0;
}

.contact-result-name {
  font-size: 14px;
  font-weight: 600;
  color: #2A3D52;
  margin-bottom: 4px;
}

.contact-result-details {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.contact-cpf-cnpj {
  font-size: 11px;
  color: #666;
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
}

.contact-type {
  font-size: 11px;
  color: #666;
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 4px;
}

.contact-result-contacts {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #666;
}

.contact-phone,
.contact-email {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-phone i,
.contact-email i {
  font-size: 12px;
}

.contact-result-action {
  flex-shrink: 0;
}

.contact-result-action i {
  color: #28a745;
  font-size: 20px;
  transition: transform 0.2s;
}

.contact-result-item:hover .contact-result-action i {
  transform: scale(1.1);
}

.no-results,
.search-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.no-results i,
.search-instructions i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-results p,
.search-instructions p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.no-results small {
  font-size: 12px;
  color: #999;
}

/* Estilos para grupos de mensagens por data */
.message-group {
  margin-bottom: 20px;
}

.message-date-header {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  width: 15vw;
  margin: 0 auto;
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 10;
}

.message-date-header:hover {
  background: #e9ecef;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.date-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #6c757d;
  font-size: 13px;
}

.date-text {
  text-transform: capitalize;
  margin-right: 8px;
}

.message-count {
  color: #adb5bd;
  font-weight: 400;
  font-size: 12px;
}

.toggle-icon {
  color: #adb5bd;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.message-date-header:hover .toggle-icon {
  color: #6c757d;
}

.message-group-content {
  padding: 0 10px;
}

.message-group-content.collapsed {
  max-height: 0;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Estilo para quando o grupo está colapsado */
.message-date-header.collapsed {
  background: #f1f3f4;
  border-color: #dadce0;
}

.message-date-header.collapsed .toggle-icon {
  transform: rotate(180deg);
}

/* Estilos para paginação */
.loading-more-chats {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #666;
}

.loading-more-chats .skeleton-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 20%;
}

.loading-more-chats .skeleton-name {
  width: 120px;
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.loading-more-chats .skeleton-time {
  width: 60px;
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.loading-more-chats .skeleton-message {
  width: 180px;
  height: 14px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Facebook Accounts Styles */
.facebook-accounts-section {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.btn-facebook-action[title*="Detalhes"]:hover {
  background: #f8f9fa !important;
  border-color: #1877F2 !important;
  color: #1877F2 !important;
}

.facebook-account-category {
  text-transform: capitalize;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facebook-account-id {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-facebook-accounts {
  background: white;
  border-radius: 8px;
  border: 1px dashed #ddd;
}

.no-facebook-accounts:hover {
  border-color: #1877F2;
  background: #f8f9ff;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Sticker Styles */
.chat-message-sticker {
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border: none;
  display: block;
  margin: 5px 0;
}

.chat-message-sticker:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Reactivation QR Modal Styles */
.reactivation-qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.reactivation-qr-modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reactivation-qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.reactivation-qr-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.reactivation-qr-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactivation-qr-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.reactivation-qr-modal-body {
  margin-bottom: 20px;
}

.reactivation-qr-instructions {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.5;
}

.reactivation-qr-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 2px solid #eee;
  border-radius: 8px;
  margin: 0 auto 20px;
  display: block;
}

.reactivation-qr-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.reactivation-qr-loading i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

/* Separador de data */
.date-separator {
  display: flex;
  width: 100%;
  align-items: center;
  margin: 20px 0;
}

.date-separator-line {
  flex: 1;
  height: 1px;
  background-color: #e0e0e0;
}

.date-separator-text {
  margin: 0 15px;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.message-result-item {
  max-width: 80%;
  margin-left: 0;
}

/* Modal de Pesquisa de Mensagens */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.search-messages-modal {
  background-color: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

.search-messages-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.search-messages-modal .modal-header h5 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.search-messages-modal .close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.search-messages-modal .close-btn:hover {
  background-color: #f5f5f5;
}

.search-messages-modal .modal-body {
  padding: 16px;
  max-height: 80vh;
  overflow-y: auto;
}

.search-input-container {
  position: relative;
  margin-bottom: 16px;
}

.search-input-container i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.search-input-container input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.search-input-container input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-results {
  margin-top: 16px;
}

.search-status {
  text-align: center;
  color: #666;
  padding: 20px;
}

.no-results {
  text-align: center;
  color: #666;
  padding: 40px 20px;
}

.no-results i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #999;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.result-item:hover {
  background-color: #f8f9fa;
}

.message-preview {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.message-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.message-info .sender {
  font-weight: 500;
}

.message-result-item.message-sent {
  margin-left: auto;
  margin-right: 0;
  background-color: #DCF8C6 !important;
}

.chat-message:hover .reply-button,
.chat-message:hover .download-button {
  opacity: 1 !important;
}

.search-messages-results {
  height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Modal de pré-visualização de mídia */
.media-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.media-preview-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
  box-sizing: border-box;
  z-index: 100000;
}

.media-preview-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  z-index: 100001;
  pointer-events: all;
}

.media-preview-title {
  font-size: 16px;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-preview-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.media-preview-controls button {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 36px;
  justify-content: center;
}

.media-preview-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.media-preview-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.media-preview-controls button:disabled:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: none;
}

.media-preview-zoom-info {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-preview-image {
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.media-preview-document-container {
  width: min(90vw, 1200px);
  height: min(80vh, 800px);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: white;
}

.media-preview-document {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.pdf-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.pdf-fallback-content {
  text-align: center;
  padding: 32px;
  max-width: 400px;
}

.pdf-viewer {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f3f4f6;
}

.media-preview-close {
  position: fixed;
  top: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  z-index: 100002;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: all;
}

.media-preview-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.media-preview-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 768px) {
  .media-preview-content {
    padding: 70px 10px 10px;
  }

  .media-preview-header {
    padding: 0 15px;
    height: 50px;
  }

  .media-preview-title {
    font-size: 14px;
    max-width: 200px;
  }

  .media-preview-controls {
    gap: 6px;
  }

  .media-preview-controls button {
    padding: 6px 8px;
    font-size: 13px;
  }

  .media-preview-close {
    top: 12px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .media-preview-image {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 100px);
  }

  .media-preview-document {
    width: 95vw;
    height: 70vh;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.chat-message:hover .reply-button {
  opacity: 1 !important;
}

.highlight {
  animation: highlight-message 2s ease-in-out;
}

@keyframes highlight-message {
  0% {
    background-color: rgba(42, 61, 82, 0.1);
  }

  50% {
    background-color: rgba(42, 61, 82, 0.2);
  }

  100% {
    background-color: transparent;
  }
}

/* Estilos para Modal de Membros do Grupo */
.group-members-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-members-modal .members-list {
  max-height: 400px;
  overflow-y: auto;
}

.group-members-modal .members-list::-webkit-scrollbar {
  width: 6px;
}

.group-members-modal .members-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.group-members-modal .members-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.group-members-modal .members-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Estados dos membros */
.group-members-modal .member-status-online {
  color: #10b981;
}

.group-members-modal .member-status-away {
  color: #f59e0b;
}

.group-members-modal .member-status-offline {
  color: #6b7280;
}

/* Badges dos membros */
.group-members-modal .member-badge-admin {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.group-members-modal .member-badge-creator {
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .group-members-modal>div {
    width: 95% !important;
    max-width: none !important;
    margin: 10px;
  }

  .group-members-modal .members-list {
    max-height: 300px;
  }

  .group-members-modal .member-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }
}

/* Animação para hover nos membros */
.group-members-modal .member-item {
  transition: background-color 0.2s ease;
}

.group-members-modal .member-item:hover {
  background-color: #f9fafb !important;
}

/* Estilos para o campo de busca */
.group-members-modal .search-box input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.group-members-modal .search-box input:focus {
  border-color: #2A3D52;
  box-shadow: 0 0 0 2px rgba(42, 61, 82, 0.1);
  outline: none;
}

/* Estilos para avatares de membros do grupo nas mensagens */
.group-member-avatar {
  border: 2px solid #25D366 !important;
  background-color: #25D366 !important;
  color: white !important;
}

.group-member-avatar:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Estilos para Tags Triangulares */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.tag-triangular {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #e5e7eb;
  color: #374151;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px 4px 12px;
  border-radius: 0 4px 4px 0;
  margin-right: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.tag-triangular::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 8px;
  border-color: transparent transparent transparent #e5e7eb;
  transform: translateX(-8px);
}

.tag-triangular::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 8px;
  border-color: transparent transparent transparent #e5e7eb;
}

.tag-triangular:hover {
  background: #d1d5db;
  color: #1f2937;
}

.tag-triangular:hover::before {
  border-color: transparent transparent transparent #d1d5db;
}

.tag-triangular:hover::after {
  border-color: transparent transparent transparent #d1d5db;
}

/* Variações de cores para tags */
.tag-triangular.tag-primary {
  background: #3b82f6;
  color: white;
}

.tag-triangular.tag-primary::before {
  border-color: transparent transparent transparent #3b82f6;
}

.tag-triangular.tag-primary::after {
  border-color: transparent transparent transparent #3b82f6;
}

.tag-triangular.tag-success {
  background: #10b981;
  color: white;
}

.tag-triangular.tag-success::before {
  border-color: transparent transparent transparent #10b981;
}

.tag-triangular.tag-success::after {
  border-color: transparent transparent transparent #10b981;
}

.tag-triangular.tag-warning {
  background: #f59e0b;
  color: white;
}

.tag-triangular.tag-warning::before {
  border-color: transparent transparent transparent #f59e0b;
}

.tag-triangular.tag-warning::after {
  border-color: transparent transparent transparent #f59e0b;
}

.tag-triangular.tag-danger {
  background: #ef4444;
  color: white;
}

.tag-triangular.tag-danger::before {
  border-color: transparent transparent transparent #ef4444;
}

.tag-triangular.tag-danger::after {
  border-color: transparent transparent transparent #ef4444;
}

.tag-triangular.tag-info {
  background: #06b6d4;
  color: white;
}

.tag-triangular.tag-info::before {
  border-color: transparent transparent transparent #06b6d4;
}

.tag-triangular.tag-info::after {
  border-color: transparent transparent transparent #06b6d4;
}

.tag-triangular.tag-secondary {
  background: #6b7280;
  color: white;
}

.tag-triangular.tag-secondary::before {
  border-color: transparent transparent transparent #6b7280;
}

.tag-triangular.tag-secondary::after {
  border-color: transparent transparent transparent #6b7280;
}

/* Tag com ícone */
.tag-triangular .tag-icon {
  margin-right: 4px;
  font-size: 10px;
}

/* Tag removível */
.tag-triangular.removable {
  padding-right: 20px;
}

.tag-triangular .tag-remove {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  color: inherit;
  transition: all 0.2s ease;
}

.tag-triangular .tag-remove:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Tags em grupos conectados */
.tag-group {
  display: flex;
  align-items: center;
  margin: 2px 0;
}

.tag-group .tag-triangular {
  margin-right: 0;
  border-radius: 0;
}

.tag-group .tag-triangular:first-child {
  border-radius: 4px 0 0 4px;
}

.tag-group .tag-triangular:first-child::before {
  display: none;
}

.tag-group .tag-triangular:last-child {
  border-radius: 0 4px 4px 0;
}

.tag-group .tag-triangular:last-child::after {
  display: none;
}

/* Indicadores de Status da Conversa */
.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #fff;
  font-size: 10px;
  z-index: 10;
}

.status-indicator i {
  font-size: 10px;
  color: #fff;
}

/* Status Pendente - Amarelo/Laranja */
.status-pendente {
  background-color: #c28b3c;
}

/* Status Em Atendimento - Verde */
.status-em-atendimento {
  background-color: #28a745;
}

/* Status Concluído - Azul */
.status-concluido {
  background-color: #285ba7;
}

/* Status Rejeitada - Vermelho */
.status-rejeitada {
  background-color: #dc3545;
}

/* Animação sutil para os indicadores */
.status-indicator {
  transition: all 0.3s ease;
}

/* Tags pequenas para lista de conversas */
.conversation-tags {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tag-triangular.tag-small {
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px 2px 8px;
  border-radius: 0 3px 3px 0;
  margin-right: 2px;
  height: 18px;
  line-height: 14px;
}

.tag-triangular.tag-small::before {
  border-width: 9px 0 9px 6px;
  transform: translateX(-6px);
}

.tag-triangular.tag-small::after {
  right: -6px;
  border-width: 9px 0 9px 6px;
}

.tag-triangular.tag-small .tag-icon {
  font-size: 8px;
  margin-right: 2px;
}

/* Versão apenas com ícone - mais compacta */
.tag-triangular.tag-icon-only {
  padding: 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
  border-radius: 50%;
  position: relative;
}

.tag-triangular.tag-icon-only::before,
.tag-triangular.tag-icon-only::after {
  display: none;
}

.tag-triangular.tag-icon-only i {
  font-size: 8px;
  margin: 0;
  color: inherit;
}

/* Ajustes para hover das tags pequenas */
.tag-triangular.tag-small:hover::before {
  border-color: transparent transparent transparent #d1d5db;
}

.tag-triangular.tag-small:hover::after {
  border-color: transparent transparent transparent #d1d5db;
}

/* Cores específicas para tags pequenas */
.tag-triangular.tag-small.tag-primary {
  background: #3b82f6;
  color: white;
}

.tag-triangular.tag-small.tag-primary::before {
  border-color: transparent transparent transparent #3b82f6;
}

.tag-triangular.tag-small.tag-primary::after {
  border-color: transparent transparent transparent #3b82f6;
}

.tag-triangular.tag-small.tag-primary:hover {
  background: #2563eb;
}

.tag-triangular.tag-small.tag-primary:hover::before {
  border-color: transparent transparent transparent #2563eb;
}

.tag-triangular.tag-small.tag-primary:hover::after {
  border-color: transparent transparent transparent #2563eb;
}

/* Outras cores para tags pequenas */
.tag-triangular.tag-small.tag-success {
  background: #10b981;
  color: white;
}

.tag-triangular.tag-small.tag-success::before {
  border-color: transparent transparent transparent #10b981;
}

.tag-triangular.tag-small.tag-success::after {
  border-color: transparent transparent transparent #10b981;
}

.tag-triangular.tag-small.tag-warning {
  background: #f59e0b;
  color: white;
}

.tag-triangular.tag-small.tag-warning::before {
  border-color: transparent transparent transparent #f59e0b;
}

.tag-triangular.tag-small.tag-warning::after {
  border-color: transparent transparent transparent #f59e0b;
}

.tag-triangular.tag-small.tag-danger {
  background: #ef4444;
  color: white;
}

.tag-triangular.tag-small.tag-danger::before {
  border-color: transparent transparent transparent #ef4444;
}

.tag-triangular.tag-small.tag-danger::after {
  border-color: transparent transparent transparent #ef4444;
}

.tag-triangular.tag-small.tag-info {
  background: #06b6d4;
  color: white;
}

.tag-triangular.tag-small.tag-info::before {
  border-color: transparent transparent transparent #06b6d4;
}

.tag-triangular.tag-small.tag-info::after {
  border-color: transparent transparent transparent #06b6d4;
}

.tag-triangular.tag-small.tag-secondary {
  background: #6b7280;
  color: white;
}

.tag-triangular.tag-small.tag-secondary::before {
  border-color: transparent transparent transparent #6b7280;
}

.tag-triangular.tag-small.tag-secondary::after {
  border-color: transparent transparent transparent #6b7280;
}

/* Hover para tags apenas com ícone */
.tag-triangular.tag-icon-only:hover::before {
  border-color: transparent transparent transparent #d1d5db;
}

.tag-triangular.tag-icon-only:hover::after {
  border-color: transparent transparent transparent #d1d5db;
}

/* Cores específicas para tags apenas com ícone */
.tag-triangular.tag-icon-only.tag-primary:hover {
  background: #2563eb;
}

.tag-triangular.tag-icon-only.tag-primary:hover::before {
  border-color: transparent transparent transparent #2563eb;
}

.tag-triangular.tag-icon-only.tag-primary:hover::after {
  border-color: transparent transparent transparent #2563eb;
}

.tag-triangular.tag-icon-only.tag-success:hover {
  background: #059669;
}

.tag-triangular.tag-icon-only.tag-success:hover::before {
  border-color: transparent transparent transparent #059669;
}

.tag-triangular.tag-icon-only.tag-success:hover::after {
  border-color: transparent transparent transparent #059669;
}

.tag-triangular.tag-icon-only.tag-warning:hover {
  background: #d97706;
}

.tag-triangular.tag-icon-only.tag-warning:hover::before {
  border-color: transparent transparent transparent #d97706;
}

.tag-triangular.tag-icon-only.tag-warning:hover::after {
  border-color: transparent transparent transparent #d97706;
}

.tag-triangular.tag-icon-only.tag-danger:hover {
  background: #dc2626;
}

.tag-triangular.tag-icon-only.tag-danger:hover::before {
  border-color: transparent transparent transparent #dc2626;
}

.tag-triangular.tag-icon-only.tag-danger:hover::after {
  border-color: transparent transparent transparent #dc2626;
}

.tag-triangular.tag-icon-only.tag-info:hover {
  background: #0891b2;
}

.tag-triangular.tag-icon-only.tag-info:hover::before {
  border-color: transparent transparent transparent #0891b2;
}

.tag-triangular.tag-icon-only.tag-info:hover::after {
  border-color: transparent transparent transparent #0891b2;
}

.tag-triangular.tag-icon-only.tag-secondary:hover {
  background: #4b5563;
}

.tag-triangular.tag-icon-only.tag-secondary:hover::before {
  border-color: transparent transparent transparent #4b5563;
}

.tag-triangular.tag-icon-only.tag-secondary:hover::after {
  border-color: transparent transparent transparent #4b5563;
}

/* Tags dinâmicas com cores customizáveis */
.tag-triangular.tag-dynamic {
  position: relative;
  border-radius: 50%;
}

.tag-triangular.tag-dynamic::before,
.tag-triangular.tag-dynamic::after {
  display: none;
}

/* Hover para tags dinâmicas */
.tag-triangular.tag-dynamic:hover {
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.tag-triangular.tag-dynamic:hover::before,
.tag-triangular.tag-dynamic:hover::after {
  transition: all 0.2s ease;
}


/* Animação de gravação */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.recording-indicator {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.audio-preview {
  animation: slideUp 0.3s ease-out;
}

/* Hover effects */
.audio-record-btn:hover {
  background-color: rgba(42, 61, 82, 0.1) !important;
}

.audio-record-btn.recording:hover {
  background-color: #dc2626 !important;
}