/* animação de entrada */
/* ---------- PRELOADER - animação ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* fundo semi-transparente para o efeito vidro */
  background-color: rgba(255, 255, 255, 0.2); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* suporte Safari */
  
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* acima de tudo */
  animation: fadeOut 1s ease forwards;
  animation-delay: 2s; /* tempo antes de sumir */
}

/* Logo animada */
.logo {
  filter: drop-shadow(3px 3px 5px rgba(0, 0, 255, 0.678));
  width: 140px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

/* Efeito "crescendo e diminuindo" */
@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.1); opacity: 1; }
}

/* Animação de saída */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/*// ESTILO BOTÃO DE DARK //*/
/* Container da chavinha */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* Esconde o checkbox padrão */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* O slider da chavinha */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

/* O círculo que se move */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Quando o checkbox está marcado */
input:checked + .slider {
  background-color: #2563EB; /* azul */
}

/* Move o círculo para direita quando ligado */
input:checked + .slider:before {
  transform: translateX(24px);
}
/* fim */

/* Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease-out forwards;
}

/* Esconde o modal */
.modal.hidden {
  display: none;
}

/* Modal content box */
.modal-content {
  background: #fff;
  padding: 2em;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: slideIn 0.3s ease-out forwards;
}

/* Input */
.modal-content input {
  width: 100%;
  padding: 0.8em;
  margin-top: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

/* Buttons */
.modal-buttons {
  margin-top: 1.5em;
  display: flex;
  gap: 1em;
  justify-content: center;
}

.modal-buttons button {
  padding: 0.6em 1.2em;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#btn-confirmar {
  background-color: #4CAF50;
  color: white;
}

#btn-cancelar {
  background-color: #f44336;
  color: white;
}

#btn-confirmar:hover {
  background-color: #45a049;
}

#btn-cancelar:hover {
  background-color: #e53935;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/*/// menu sanduíche ///*/

.navbar {
  position: absolute; 
  top: 10px;
  right: 20px;
  width: auto;
  z-index: 300;
}

.menu-icon img {
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.menu-items {
  width: 250px;
  background-color: #f3f4f6;
  border: solid 2px orangered;
  display: none;
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
  position: absolute;
  top: 40px;
  right: 5px;
  z-index: 200; /* acima do overlay */
  list-style: none;
}

.menu-items li {
  margin: 5px 0;
}

/* overlay (fundo escuro) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 150; /* abaixo do menu, acima do conteúdo */
  cursor: pointer;
}

/* toggle */
.menu-toggle {
  display: none;
}

#check:checked ~ .menu-items {
  display: block;
}

#check:checked ~ .overlay {
  display: block;
}

/* fim */


/* ESTILOS PARA NOTÍCIA */
.system-notice{
  margin: 16px auto 20px;
  padding: 16px 18px;
  padding-left: 56px;
  border-radius: 12px;

  background: linear-gradient(
    135deg,
    #eff6ff,
    #dbeafe
  );

  border: 1px solid #b2c2f7;

  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;

  position: relative;

  /* pulso contínuo e suave */
  animation: noticePulseSoft 3.6s ease-in-out infinite;
}
/* animação do pulse*/
@keyframes noticePulseSoft {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(30, 64, 175, 0.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.25);
  }
}

/* Ícone automático */
.system-notice::before{
  content: "🔔";
  font-size: 20px;
}

/* Espaço para o texto não colar no ícone */
.system-notice{
  padding-left: 46px;
}

/* FIM */

/* Responsivo */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5em;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons button {
    width: 100%;
  }
}

/*/////////////////////// TEMA BLACK ////////////////////////*/
/* ---------- TEMA BLACK (ativado com body.tema-black) ---------- */

body.tema-black {
  background-color: rgb(18, 18, 18) !important;
  color: white !important;
}

body.tema-black h1,
body.tema-black h2 {
  color: white;
}

body.tema-black #horarios {
  background-color: #121212;
}

body.tema-black #horarios div {
  background-color: rgb(29, 29, 29) !important;
}

body.tema-black select {
  background-color: rgb(18, 18, 18) !important;
}

body.tema-black .modal-content {
  background-color: rgb(29, 29, 29);
}

body.tema-black .modal input {
  color: black;
}

/* menu flutuante do powerpoint  e logo preta*/
body.tema-black .menu-items { 
    background-color: #121212;
}

body.tema-black .menu-icon img {
  filter: invert(1);
}

/* notícia área black */
body.tema-black .system-notice{
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148,163,184,.25);
  color: #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
