/* PAINEL PROGRAMA */

#center-panel {
  width: 50vw;
  height: 50vh;

  background: rgb(244, 244, 244);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;

  display: flex;
  flex-direction: column;

  overflow-y: auto; /* ðŸ”¥ sÃ³ isto */
  overflow-x: hidden;

  min-height: 0;
}

#panel-label {
  display: flex;
  align-items: center;
  gap: 8px; /* espaÃ§o entre Ã­cone e texto */

  flex: 1;

  padding: 6px 16px;

  background: rgba(255, 255, 255, 0.8);
  color: black;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;

  font-size: 12px;
  letter-spacing: 1px;

  backdrop-filter: blur(8px);

  white-space: pre-line;
}

#panel-close {
  width: 28px;
  height: 28px;

  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);

  background: rgba(255,255,255,0.8);
  color: black;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  margin-left: 12px; /* espaÃ§o entre label e X */
}

#panel-header {
  width: 50vw; /* MESMA LARGURA DO PAINEL */

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

#center-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;    
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;
  z-index: 10000;

  opacity: 1;
  pointer-events: auto;
  transition: 0.25s ease;
}

#programa-panel {
  flex: 1;
  min-height: 0;
 
  padding: 12px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  min-height: 0; 
}

.programa-item {
  padding: 10px 12px;

  background: rgb(229, 229, 229);
  border-radius: 16px; /* mais redondo */

  cursor: default;

  transition: none; /* sem animação */
  white-space: pre-line !important;

  width: 80%;
  margin: 10px auto;
}

.programa-item:hover {
  background: rgb(229, 229, 229);
  transform: none; /* nada de hover */
}

/* FECHADO */
#center-wrapper.closed {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
}


@media (max-width: 768px) {

  #center-panel {
    width: 80vw;
    height: 60vh;
    border-radius: 16px;
  }

  #panel-header {
    width: 80vw;
  }

  #panel-label {
    font-size: 11px;
    padding: 6px 12px;
  }

  #panel-close {
    width: 34px;
    height: 34px;
  }

  .programa-item {
    width: 72%;
    margin: 8px auto;
    padding: 12px;
    font-size: 14px;
  }

  #center-wrapper {
    gap: 8px;
  }
}