body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
  }
  
  #login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
  }
  
  #login-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 300px;
    max-width: 90%;
  }
  
  #login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  #login-container button {
    width: 100%;
    padding: 10px;
    background-color: #39B6FE;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  #login-container button:hover {
    background-color: #2980b9;
  }
  
  #softphone-container {
    display: none;
  }
  
  #softphone-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #2c3e50;
    color: white;
    padding: 5px 10px;
    height: auto;
    min-height: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    position: relative;
  }
  
  #hamburger-menu {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #fff;
    color: rgb(5, 5, 5);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 0 0 8px 0;
  }
  
  .hamburger-item {
    padding: 10px 15px;
    cursor: pointer;
  }
  
  .hamburger-item:hover {
    background-color: #e9ecef;
  }
  
  /* Estilo específico para o item de administração */
  #admin-link {
    border-top: 1px solid #dee2e6;
    font-weight: 500;
    color: #000000;
  }
  
  #admin-link:hover {
    background-color: #e9ecef;
    color: #000000;
  }
  
  #hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    margin-right: 10px;
  }
  
  #call-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    flex-grow: 1;
    justify-content: flex-end;
  }
  
  #softphone-topbar input, #softphone-topbar button {
    margin: 3px;
    padding: 2px 5px;
    height: auto;
    min-height: 24px;
  }
  
  #numero-discagem {
    width: 150px;
    height: 24px;
  }
  
  .softphone-btn {
    background-color: #3498db;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
  }
  
  .softphone-btn:hover {
    background-color: #2980b9;
  }
  
  .softphone-btn.btn-danger {
    background-color: #e74c3c;
  }
  
  .softphone-btn.btn-danger:hover {
    background-color: #c0392b;
  }
  
  .softphone-btn.btn-success {
    background-color: #2ecc71;
  }
  
  .softphone-btn.btn-success:hover {
    background-color: #27ae60;
  }
  
  .softphone-btn.btn-warning {
    background-color: #f39c12;
  }
  
  .softphone-btn.btn-muted {
    background-color: #7f8c8d;
  }
  
  .softphone-btn.btn-conversa {
    background-color: #9b59b6;
  }
  
  .softphone-btn.btn-conversa:hover {
    background-color: #8e44ad;
  }
  
  #site-frame {
    width: 100%;
    height: calc(100vh - 50px);
    border: none;
  }
  
  #call-log-modal {
    display: none;
    position: absolute;
    top: 100%;
    right: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    max-height: 70%;
    overflow-y: auto;
    z-index: 1000;
    font-size: 12px;
    margin-top: 5px;
  }
  
  #call-log-modal::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    z-index: 1001;
  }
  
  #call-log-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
  }
  
  .call-log-entry {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
  }
  
  #btn-log {
    background-color: #7f8c8d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

  
  .softphone-btn.btn-log {
    width: auto;
  }

  #remote-audio {
    display: none;
  }
  
  #status-info {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
  }

  #user-name{
    display:none;
  }

  #user-extension{
    display:none;
  }
  
  .queue-info {
    font-size: 0.8em;
    margin: 3px 0;
    padding: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    border-left: 3px solid #39B6FE;
}

  #status-info {
      font-weight: bold;
      margin: 5px 0;
  }

  .status-container {
    position: relative; /* Adicionado para ser referência de posicionamento */
    display: flex;
    align-items: center;
    gap: 10px;
}

  #status-info {
      margin: 0; /* Remove margens padrão */
  }

  #btn-filas-espera {
      margin: 0; /* Remove margens padrão */
      white-space: nowrap; /* Impede que o texto do botão quebre */
  }

  #fila-detalhada {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 12px 0;
    margin-top: 5px;
  }

#fila-detalhada::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    z-index: 1001;
}

/* Itens individuais da fila */
#fila-detalhada div {
    padding: 10px 15px;
    color: rgb(0, 0, 0);
    font-size: 15px; /* Tamanho mais adequado */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

/* Efeito hover nos itens */
#fila-detalhada div:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Nome da fila */
#fila-detalhada div strong {
    font-weight: 600;
    /*color: #002d8d;*/
    margin-right: 10px;
}

/* Número de chamadas */
#fila-detalhada div span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

/* Scrollbar personalizada */
#fila-detalhada::-webkit-scrollbar {
    width: 6px;
}

#fila-detalhada::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

#fila-detalhada::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Estilos para o painel de seleção */
#painel-selecao-contatos {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 350px;
  max-width: 90%;
}

#lista-contatos {
  max-height: 200px;
  overflow-y: auto;
  margin: 10px 0;
}

.painel-selecao-botao {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.painel-selecao-botao:hover {
  background-color: #e9e9e9;
}

#secao-novo-contato {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

#secao-novo-contato h4 {
  margin-bottom: 10px;
}

#nome-novo-contato {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn-criar-contato {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.btn-criar-contato:hover {
  background-color: #27ae60;
}

.btn-criar-contato:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

#btn-cancelar-selecao {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

#btn-cancelar-selecao:hover {
  background-color: #c0392b;
}

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

.campo-form label {
  display: block;
  margin-bottom: 5px;
}

.campo-form input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.campo-invalido {
  border-color: #ff3333 !important;
  background-color: #fff8f8;
}

.mensagem-erro {
  color: #ff3333;
  font-size: 12px;
  margin-top: 5px;
}

#form-novo-contato {
  margin-bottom: 15px;
}

/* Estilos para o painel de transferência */
#painel-transferencia {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 300px;
  margin-top: 5px;
}

#painel-transferencia h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  text-align: center;
  font-size: 16px;
}

.botoes-transferencia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.botoes-transferencia button {
  width: 100%;
  padding: 8px;
  font-size: 13px;
}

/* Seta indicativa */
#painel-transferencia::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  z-index: 1001;
}

.inbox-selection-dialog {
  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: 1000;
}

.inbox-selection-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  width: 300px;
}

.inbox-select {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
}

.inbox-selection-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.inbox-selection-buttons button {
  padding: 8px 15px;
  cursor: pointer;
}

/* Media Queries para responsividade */
@media (max-width: 900px) {
  #softphone-topbar {
    padding: 8px;
  }
  
  .softphone-btn {
    min-width: 70px;
    font-size: 11px;
    padding: 4px 6px;
  }
}

@media (max-width: 768px) {
  #call-controls {
    justify-content: center;
    width: 100%;
  }
  
  #numero-discagem {
    width: 120px;
  }
  
  #site-frame {
    height: calc(100vh - 80px);
  }
}

@media (max-width: 600px) {
  .softphone-btn {
    min-width: 60px;
    font-size: 10px;
    padding: 3px 5px;
  }
  
  #call-log-modal {
    max-width: 90%;
    left: 5%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  #softphone-topbar {
    flex-direction: column;
    height: auto;
    padding: 5px;
  }
  
  #hamburger-btn {
    margin-bottom: 5px;
    align-self: flex-start;
  }
  
  #call-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .softphone-btn {
    min-width: 70px;
    margin: 2px;
  }
  
  #site-frame {
    height: calc(100vh - 110px);
  }
}

/* Painel de Pausa */
.painel-pausa {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 250px;
    z-index: 1000;
    margin-top: 5px;
}

.painel-pausa::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    z-index: 1001;
}

.painel-pausa-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.painel-pausa-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.painel-pausa-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.painel-pausa-botao {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.painel-pausa-botao:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.painel-pausa-botao:active {
    background: #dee2e6;
    border-color: #ced4da;
}

/* Estilos para destinos pré-definidos de transferência */
#destinos-predefinidos {
    margin: 10px 0;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#destinos-predefinidos h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.select-destinos {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
}

.select-destinos:focus {
    outline: none;
    border-color: #39B6FE;
}

.container-botoes-destinos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.btn-destino-predefinido {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.btn-destino-predefinido:hover {
    background-color: #e9e9e9;
    border-color: #39B6FE;
}

.btn-destino-predefinido:active {
    background-color: #39B6FE;
    color: white;
}

/* Estilo específico para transferência imediata */
.btn-destino-predefinido[title*="Imediata"] {
    background: linear-gradient(135deg, #fff3cd 0%, #f8f9fa 100%);
    border-color: #ffc107;
    border-left: 3px solid #ff9800;
}

.btn-destino-predefinido[title*="Imediata"]:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #e9ecef 100%);
    border-color: #ff9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

/* Estilo específico para transferência assistida */
.btn-destino-predefinido[title*="Assistida"] {
    background: linear-gradient(135deg, #d1ecf1 0%, #f8f9fa 100%);
    border-color: #17a2b8;
    border-left: 3px solid #17a2b8;
}

.btn-destino-predefinido[title*="Assistida"]:hover {
    background: linear-gradient(135deg, #d1ecf1 0%, #e9ecef 100%);
    border-color: #138496;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

/* Estilos para o modal de administração */
#admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

/* Estilos para o modal de perfil do usuário */
#user-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

#extension-change-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
    background-color: #e9ecef;
    border-radius: 50%;
}

.modal-body {
    padding: 20px;
}

.admin-option {
    padding: 12px 15px;
    margin: 8px 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.admin-option:hover {
    background-color: #e7f3ff;
    border-color: #0066cc;
    color: #004499;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);
}

.admin-option:active {
    transform: translateY(0);
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    .modal-content {
        margin: 20px;
        min-width: auto;
        max-height: calc(100vh - 40px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
        padding: 12px 15px;
        flex-shrink: 0;
    }
    
    .modal-body {
        padding: 15px;
        overflow-y: auto;
        flex: 1;
    }
    
    .admin-option {
        padding: 10px 12px;
    }
}

/* Estilos para o formulário de perfil do usuário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #39B6FE;
    box-shadow: 0 0 0 2px rgba(57, 182, 254, 0.2);
}

.form-group input:readonly {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-primary {
    background-color: #39B6FE;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Estilo específico para o item de perfil de usuário no menu hambúrguer */
.user-profile-item {
    font-weight: 500;
    color: #000000;
    border-bottom: 1px solid #dee2e6;
}

.user-profile-item:hover {
    background-color: #e9ecef;
    color: #000000;
}

/* Responsividade para formulário de perfil */
@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}


