/**
 * Estilos do painel de atalhos
 */

/* Estilos específicos para o container do painel de atalhos */
#uenf-shortcut-panel-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99999;
  width: 300px;
  height: 100vh;
  overflow: visible;
}
#uenf-shortcut-panel-container i.fas, #uenf-shortcut-panel-container i.far, #uenf-shortcut-panel-container i.fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
  font-weight: 900 !important;
}

/* Reset de estilos para os elementos dentro do container */
#uenf-shortcut-panel-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    line-height: 1.5;
    color: #fff;
}

/* Estilos para o ícone do painel */
#uenf-shortcut-panel-container .shortcut-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #1D3771;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: none;
    outline: none;
}

/* Efeito de hover no ícone */
#uenf-shortcut-panel-container .shortcut-icon:hover {
    background-color: #142a55;
    transform: translateY(-50%) scale(1.1);
    border: none;
}

/* Posicionamento do ícone quando o painel está aberto */
#uenf-shortcut-panel-container .shortcut-panel.active + .shortcut-icon {
    right: 320px; /* Largura do painel (300px) + margem (20px) */
}

/* Estilos para o painel */
#uenf-shortcut-panel-container .shortcut-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #1d3771;
    color: white;
    box-shadow: -2px 0 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    overflow-y: auto;
    pointer-events: auto;
    padding: 0;
    margin: 0;
}

#uenf-shortcut-panel-container .shortcut-panel.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Cabeçalho do painel */
#uenf-shortcut-panel-container .shortcut-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#uenf-shortcut-panel-container .shortcut-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

#uenf-shortcut-panel-container .close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#uenf-shortcut-panel-container .close-panel:hover {
    opacity: 1;
}

/* Conteúdo do painel */
#uenf-shortcut-panel-container .shortcut-panel-content {
    padding: 15px;
}

/* Itens de atalho */
#uenf-shortcut-panel-container .shortcut-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.2s ease;
}

#uenf-shortcut-panel-container .shortcut-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

#uenf-shortcut-panel-container .shortcut-item i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

#uenf-shortcut-panel-container .shortcut-item span {
    font-size: 0.95em;
    font-weight: 400;
}

/* Responsivo */
@media (max-width: 768px) {
    #uenf-shortcut-panel-container .shortcut-panel {
        width: 100%;
        right: -100%;
    }
    
    #uenf-shortcut-panel-container .shortcut-icon {
        bottom: 80px;
        right: 15px;
        top: auto;
        transform: none;
    }
    
    #uenf-shortcut-panel-container .shortcut-icon.active {
        right: 15px;
        bottom: 80px;
        transform: none;
    }
}

/* Painel de atalhos */
.shortcut-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: #1d3771;
  color: white;
    #uenf-shortcut-panel-container .shortcut-item i {
      width: 24px;
      text-align: center;
      margin-right: 12px;
      font-size: 1.4em;
      color: #fff;
      font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
      font-weight: 900 !important;
      display: inline-block;
      vertical-align: middle;
      line-height: 1;
      transition: color 0.2s;
    }
  display: block !important;
  outline: none !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Painel ativo */
.shortcut-panel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Ícone ativo */
.shortcut-icon.active {
  right: 320px; /* Posição ajustada quando o painel está aberto */
  background-color: var(--bs-uenf-blue-dark, #142a55);
  transform: translateY(-50%) scale(1.1);
}

/* Cabeçalho do painel */
.shortcut-panel-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Conteúdo do painel */
.shortcut-panel-content {
  padding: 15px;
}

/* Itens de atalho */
.shortcut-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

/* Efeito de hover nos itens */
.shortcut-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
  border-left-color: #fff;
}

/* Ícones dentro dos itens */
.shortcut-item i {
  width: 24px;
  text-align: center;
  margin-right: 12px;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Texto dentro dos itens */
.shortcut-item span {
  font-size: 0.95em;
  font-weight: 400;
}

/* Botão de fechar */
.close-panel {
  background: none;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

/* Responsividade */
@media (max-width: 768px) {
  .shortcut-panel {
    width: 100%;
    right: -100%;
  }
  
  .shortcut-icon {
    bottom: 80px;
    right: 15px;
  }
}

/* Painel de atalhos ativado */
.shortcut-panel {
  display: block !important;
}

.shortcut-icon {
  display: flex !important;
}
