:root {
  --cor-fundo: #0e0d0d7a;
  --cor-tecla: #00000085;
  --cor-borda: #69139b;
  --cor-texto: white;
}

/* Estilo para os vÃ­deos de fundo */
.background-video {
  position: fixed;
  inset-inline-end: 0;
  inset-block-end: 0;
  min-inline-size: 100%;
  min-block-size: 100%;
  inline-size: auto;
  block-size: auto;
  z-index: -1000; /* AtrÃ¡s de todos os outros elementos */
  object-fit: cover;
  filter: brightness(0.7); /* Opcional: escurecer um pouco o vÃ­deo */
}
@keyframes glow {
  0% {
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3), 0 0 20px rgba(255, 0, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3), 0 0 20px rgba(255, 0, 255, 0.2);
  }
}

.borda-neon {
  border: 2px solid transparent;
  border-radius: 16px;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)) padding-box,
    linear-gradient(135deg, #00f0ff, #ff00ff) border-box;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3), 0 0 20px rgba(255, 0, 255, 0.2);
  animation: glow 4s ease-in-out infinite;
}

body {
  margin: 0;
  block-size: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  /* Removido o background com a imagem estÃ¡tica */
}

/* Remove o cursor (setinha) dos campos de data e hora */
#event-form input[type="date"],
#event-form input[type="time"] {
  cursor: none;
}

/* Remove o cursor dos dias do calendÃ¡rio */
.dia, .calendar-day {
  cursor: none;
}
/* Painel do chat */
#painel-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-block-size: 100vh;
  background: transparent;
}

.info-wrapper {
  inset-block-start: 10px;
  inset-inline-end: 70px;
  margin-block-start:24px;
  margin-inline-start:812px;
  border-radius:25px;
  border: 2px solid transparent;
  background: 
    transparent padding-box,
    linear-gradient(135deg, #00f0ff3d, #ff00ff) border-box;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3), 0 0 20px rgba(255, 0, 255, 0.2);
  animation: glow 4s ease-in-out infinite;
  padding: 20px;
  color: var(--cor-texto);
  text-align: center;
  z-index: 999;
  inline-size: 378px;
  block-size: 295px;
}

#hora {
  margin-block-start: -10px!important;
  font-size: 8rem!important;
  font-weight: bold;
  letter-spacing: 6px;
  background:#0000006b;
  border:2px solid #9e01fa;
  border-radius:20px;
  color: #ffffff;
  text-shadow: 0  6px #02029a;
}

.info-wrapper p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #ffffffd1;
}


#data {
  font-size: 2.8rem;     /* Aumente este valor conforme desejar */
  color: #fff;
  margin-block-start: 90px;
  letter-spacing: 1px;
  opacity: 0.85;
  text-shadow: 0  3px #49029a;
  
}

.weather-info {
  align-items: center;
  gap: 6px;
}

.weather-icone-bloco {
  display: block;
  inline-size:390px;
  block-size:180px;
  margin-block-start:-100px;
  margin-inline-start:-5px;
  display: flex;
  background:#00000085;
  padding:0px 0px 0px 0px;
  align-items: center;
  justify-content: center;
  border-radius:20px;
    border:2px solid #9e01fa;

}

#weatherIcon {
  inline-size: 180px;
  block-size: 180px;
  margin-block-start:-68px;
  margin-inline-start:-268px;
}

#weatherTemp {
  font-size: 5rem;
  display:block;
  font-family:digital-7;
  font-weight: bold;
  color: #fff;
  text-shadow: 0  6px #49029a;
  margin-block-start: -150px;
  margin-inline-start:190px;
}

.weather-desc {
  font-size: 1.8rem;
  display:block;
  color: #fff;
  text-shadow: 0 0 4px #00f0ff80;
  margin-block-start:60px;
  margin-inline-start:-140px;
}


.weather-cidade {
  font-size: 1.9rem;
  display:block;
  color: #fff;
  opacity: 0.85;
  border:2px solid #9e01fa;
  border-radius:0px 0px 20px 20px;
  inline-size:200px;
  margin-block-start: -126px;
  margin-inline-start:100px;
}




/* BalÃµes de chat para perguntas e respostas */
.resposta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
  background: 
    linear-gradient(rgb(54 53 58 / 0%), rgba(54, 53, 58, 0.315)) padding-box,
    linear-gradient(135deg, #00f0ff29, #ff00ff17) border-box;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3), 0 0 20px rgba(255, 0, 255, 0.2);
  animation: glow 4s ease-in-out infinite;
  inline-size:750px; /* Corrigir inline-size */
  block-size: 303px; /* Corrigir block-size */
  max-block-size: 50%; /* Corrigir max-block-size */
  position: fixed;
  border-radius:27px;
  inset-block-start: 24px;
  inset-inline-start: 21px;
  z-index: 999;
  box-shadow: 0 10px 35px rgb(99 154 235 / 70%), 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.mensagem {
  max-inline-size: 70%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 1.1rem;
  
  word-break: break-word;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 1px 5px rgba(0, 0, 0, 0.15);
  margin-block-end: 2px;
  display: inline-block;
  border: 2px solid transparent;
  background: 
    linear-gradient(rgba(49, 48, 48, 0.514), rgba(49, 48, 48, 0.514)) padding-box,
    linear-gradient(135deg, #00f0ff1c, #ff00ff45) border-box;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.2), 0 0 12px rgba(255, 0, 255, 0.15);
  color: #ffffff !important; /* ForÃ§a a cor branca em todas as mensagens */
}

.mensagem:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.2);
}

.mensagem.usuario {
  align-self: flex-end;
  border-end-end-radius: 4px;
  text-align: end;
  box-shadow: 0 4px 15px rgba(162, 89, 230, 0.15), 0 1px 5px rgba(0, 0, 0, 0.1);
  color: #ffffff !important; /* Garante texto branco para mensagens do usuÃ¡rio */
}

.mensagem.assistente {
  align-self: flex-start;
  border-end-start-radius: 4px;
  text-align: start;
  box-shadow: 0 4px 15px rgba(110, 198, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.1);
  color: #ffffff !important; /* Garante texto branco para mensagens do assistente */
}

.teclado-wrapper {
  position: fixed;
  inset-inline-start:590px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0);
  border-radius: 20px;
  background: 
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;
  box-shadow: 0 0 12px rgb(0 255 255 / 0%), 0 0 20px rgb(255 0 255 / 0%);
  animation: glow 4s cubic-bezier(0, 1.31, 1, 1) infinite;
  padding: 10px;
  inline-size: 100%;
  max-inline-size: 879px;
  transform: translateX(-50%);
  block-size: 184px; /* Reduzido de 170px para 120px */
  padding-block-end: 105px; /* Reduzido de 110px para 60px */
  inset-block-start: 22px; /* Ajustado para posicionar melhor o teclado reduzido */
  margin-inline-start: 38px;
  inset-block-start: 402px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teclado-wrapper.visivel {
  inset-block-end: 100px;
  background: 
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;
}

.container-input {
  padding: 10px;
  background: rgba(0, 0, 0, 0.507);
  border-radius: 20px;
  inline-size: 98%;
  margin-block-end: 5px;
}

.campo-input {
  inline-size: 830px;
  block-size: 10px;
  padding: 10px;
  color: #fff !important;
  background: #0000005b;
  border: 2px solid var(--cor-borda);
  border-radius: 12px;
  font-size: 16px;
  text-align: start;
  transition: color 0.2s, background 0.2s, text-align 0.2s;
}

.teclado {
  background: 
    linear-gradient(135deg, #00f0ff00, #ff00ff00) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;
  padding: 15px;
  inline-size:800px;
  min-block-size:190px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  block-size: 100%;
  gap: 4px; /* Reduzido de 5px para 3px */
}

.linha {
  display: flex;
  gap: 3px; /* Reduzido de 5px para 3px */
  justify-content: center;
  inline-size: 100%;
  flex-wrap: wrap;
}

.tecla {
  background: var(--cor-tecla);
  color: var(--cor-texto);
  border: 2px solid #9941ff;;
  inline-size:60px!important;
  block-size:45px!important;
  border-radius: 10px;
  padding: 8px; /* Reduzido de 12px para 8px */
  min-inline-size: 70px;
  block-size:50px;
  min-block-size: 8px; /* Reduzido de 10px para 8px */
  text-align: center;
  cursor: pointer;
  font-size:1.4em;
  user-select: none;
  transition: background 0.2s, transform 0.1s;
}
.tecla:hover {
  background: rgba(76, 0, 130, 0.205);
  transform: scale(1.1);
}
.especial {
  min-inline-size: 50px!important;
  background: #3d3d3d96;
}
.espaco {
  min-inline-size: 120px;
}

/* Painel do calendÃ¡rio e eventos */
#calendarMain {
  display: none;
  inline-size: 1336px;
  min-block-size: 768px;
  background: #18181800;
  align-items: center;
  justify-content: center;
}

#painel-calendario {
  background: rgba(34,34,34,0);
  border-radius: 12px;
  padding: 24px 16px;
  margin: 24px auto;
  max-inline-size: 1336px;
  max-block-size:768px;
  box-shadow: 0 2px 12px #0005;
}

#main-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 7px;
  gap: 20px;
  inline-size: 100vw;
  block-size: 100vh;
}

#calendar-container {
  position: flex;
  margin-block-start: -60px;
  min-inline-size: 602px;
  block-size:615px!important;
  background: rgb(0 0 0 / 30%);
  border-radius: 17px;
  box-shadow: 2px 0 16px rgb(0 0 0 / 0%);
  padding: 32px 24px 24px 24px;
  block-size: auto;
  margin-inline-start: 8px;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 8px;
  
}
#month-year {
  color: #b35aff;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 12px;
}
.header button {
  background-color: #0c338d;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 28px;
  cursor: pointer;
  transition: 0.2s;
}
.header button:hover {
  background-color: #8901c7;
}

.days-header {
  margin-block-start:0px!important;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: bold;
  margin-block-end: 4px;
  text-align: center;
  color: #ffffff;
  font-size: 1.7rem;
}

.days-header span {
  inline-size: 60px;
  display: inline-block;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  min-inline-size: 430px;
  margin-block-start: 20px;
}

#calendar {
  min-block-size: 390px;   /* altura mÃ­nima, pode ajustar conforme seu layout */
  block-size: 370px;       /* altura fixa */
  max-block-size: 390px;   /* impede de crescer mais */
  box-sizing: border-box;
  
  /* Se usar grid: */
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dia, .calendar-day {
  inline-size: 80px;
  block-size: 80px;
  background: #00000054;
  color: var(--cor-texto);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none; /* Ou 'default' */
  user-select: none; /* Impede seleÃ§Ã£o de texto */
  border: 3px solid #a43dfc;
  box-sizing: border-box;
  font-size: 2.1rem;
  transition: background 0.2s, color 0.2s;
}



.dia:hover, .calendar-day:hover {
  background: #a43dfc;
  color: #ffffff;
  border:2px solid white;
}

/* Dia do calendário com evento: fundo azul e texto branco */
.dia.evento {
  background: #2196f3 !important;
  color: #fff !important;
  border: 2px solid #2196f3 !important;
}

.event-section {
  inline-size: 100%;
  margin-block-start: -65px!important; /* altura fixa */
  margin-block-start: -100px;
  margin-inline-start: 1.7%;
  margin-inline-end: 1%;
  box-sizing: border-box;
  border-radius: 16px;
  background: rgb(0 0 0 / 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
}

/* Quando for adicionar evento: margem de 10px nas laterais e altura automÃ¡tica */
.event-section.event-form-ativo {
  
  margin: 40px 10px 0 10px;
  block-size: auto;
  margin-block-start: -260px;
  margin-inline-start:100px;
  block-size:260px;
}

.event-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-block-end: 12px;
}

#event-list {
  block-size: 675px;   /* altura mÃ¡xima desejada */
  inline-size:532px!important;
  overflow-y: auto;    /* ativa a rolagem vertical se passar do limite */
  inline-size: 100%;
  padding: 0;
  background:#0000007a;
  list-style: none;
  box-sizing: border-box;
  margin-block-start:0px!important;
  margin-inline-start:-32px;
  border-radius:17px;
}

#event-list li {
  padding: 4px 0;
  border-block-end: 1px solid #4446;
}
#event-list li:last-child {
  border-block-end: none;
}

#add-event-btn {
  
  position: fixed;
  inset-inline-end: 32px;
  inset-block-end: 32px;
  z-index: 2000;
  inline-size: 60px;
  block-size: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #ff00ff) border-box;;
  color: #ffffff;
  font-size: 3.5rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: none; /* SÃ³ aparece via JS */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  inset-block-start:630px;
  margin-inline-end:px;
}
#add-event-btn:hover {
  background: #316c9a;
}

.event-create {
  background: rgb(254 197 197 / 13%);
  border-radius: 10px;
  padding: 12px;
  margin-block-start: 8px;
}

#event-form {
  position: fixed;
  inset-inline-start: -1px;
  inset-inline-end: 0px;
  margin-block-start: -206px!important;/* altura do teclado + espaÃ§amento */
  inline-size:970PX;
  block-size:278px;
  z-index: 1001;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius:25px!important;
background: 
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;  border-radius: 20px;
  padding: 24px 16px 16px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.btn-apagar-evento {
  background: #ff000078;
  block-size: 40px;
  inline-size: 150px;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 1.3em;
  color: white;
}
.btn-cancelar-evento {
  background: #5050507a;
  block-size: 40px;
  inline-size: 150px;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 1.3em;
  color: white;
  margin-inline-start: 10px;
  margin-block-start: 0;
}
.input-roleta {
  inline-size: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.input-roleta input[type="date"],
.input-roleta input[type="time"] {
  inline-size: 100%;
  block-size:60px;
  cursor: pointer;
  background: #00000085;
  color: #fff;
  border: 2px solid #1d207b80;
  border-radius: 6px;
  font-size: 1.7rem;
  padding: 8px;
  margin-block-end: 8px;
  box-sizing: border-box;
}

/* Ãcones do calendÃ¡rio e relÃ³gio brancos */
#event-form input[type="date"]::-webkit-calendar-picker-indicator,
#event-form input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Chromium: deixa o texto e fundo da Ã¡rea editÃ¡vel pretos/brancos */
#event-form input[type="date"]::-webkit-datetime-edit,
#event-form input[type="time"]::-webkit-datetime-edit {
  color: #fff;
  background: #00000000;
}
#event-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
#event-form input[type="time"]::-webkit-datetime-edit-fields-wrapper {
  background: #11111100;
}
#event-form input[type="date"]::-webkit-datetime-edit-text,
#event-form input[type="time"]::-webkit-datetime-edit-text {
  color: #fff;
}
#event-form input[type="date"]::-webkit-datetime-edit-month-field,
#event-form input[type="date"]::-webkit-datetime-edit-day-field,
#event-form input[type="date"]::-webkit-datetime-edit-year-field,
#event-form input[type="time"]::-webkit-datetime-edit-hour-field,
#event-form input[type="time"]::-webkit-datetime-edit-minute-field {
  color: #fff;
  background: #11111100;
}

/* Firefox: tema escuro */
#event-form input[type="date"],
#event-form input[type="time"] {
  color-scheme: dark;
}

#event-form input[type="text"] {
  background: rgb(0 0 0 / 33%);
  color: #fff;
  border: 2px solid #1d207b80;
  border-radius: 6px;
  font-size: 1.5rem;
  block-size:60px;
  padding: 8px;
  margin-block-end: 8px;
  box-sizing: border-box;
}

#save-event-btn {
  background: #721b8e59;
  color: #fff;
  border: 1px solid #7d06b6;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1.5rem;
  inline-size:150px;
  block-size:50px;
  cursor: pointer;
  transition: background 0.2s;
}

#event-form button#cancel-event-btn {
  background: #ff08082b;
  color: #fff;
  border: 1px solid #7d06b6;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1.5rem;
  inline-size:150px;
  block-size:50px;
  cursor: pointer;
  transition: background 0.2s;
}

#event-form button:hover {
  background: #4f00ff3d;
}
 

/* Remove o contorno azul de foco dos botÃµes e campos */
.tecla:focus,
.tecla:active,
button:focus,
button:active,
.campo-input:focus {
  outline: none;
  box-shadow: none;
}

/* Remove highlight azul de foco/active em todas as teclas, botões, inputs, cards, etc. */
button:focus,
button:active,
input:focus,
input:active,
select:focus,
select:active,
textarea:focus,
textarea:active,
.tecla:focus,
.tecla:active,
#keyboard .tecla:focus,
#keyboard .tecla:active,
#event-keyboard .tecla:focus,
#event-keyboard .tecla:active,
.iot-card:focus,
.iot-card:active,
.evento-card:focus,
.evento-card:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
  background: inherit !important;
}

/* Remove highlight azul do navegador ao clicar em links */
a:focus,
a:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
  background: inherit !important;
}

/* Remove highlight azul globalmente */
*:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
  background: inherit !important;
}

/* Remove background azul do botão pressionado no Chrome/Safari */
button::-moz-focus-inner,
.tecla::-moz-focus-inner {
  border: 0 !important;
}

/* Remove highlight azul do Webkit (Chrome/Safari) */
button::-webkit-focus-ring,
.tecla::-webkit-focus-ring {
  outline: none !important;
}

/* Teclas especiais do teclado do chat */
.teclado .tecla-espaco {
  min-inline-size: 160px !important;
  flex: 2 1 10px !important;
}
.teclado .tecla-enviar {
  color: green;
  min-inline-size: 80px !important;
  font-weight: bold;
}
.teclado .tecla-cancelar {
  color: #e71e1ed9;
  flex: 1.2 1 95px !important;
  font-weight: bold;
}
.teclado .tecla-c-cedilha,
.teclado .tecla-apagar {
  min-inline-size: 70px !important;
  max-inline-size: 54px !important;
  flex: 0.7 1 40px !important;
  font-size: 1.2em !important;
  padding-inline: 0 !important;
}

/* Teclas especiais do teclado IoT (igual ao chat) */
#iot-keyboard .tecla-espaco {
  min-inline-size: 150px !important;
  inline-size: 160px !important;
  flex: 2 1 10px !important;
  background: #00000096 !important;
  color: #fff !important;
  font-weight: bold;
}

#iot-keyboard .tecla-enviar {
  min-inline-size: 80px !important;
  inline-size: 80px !important;
  color: green !important;
  background: #00000096 !important;
  font-weight: bold;
  border: 2px solid #43a047 !important;
}

#iot-keyboard .tecla-cancelar {
  min-inline-size: 120px !important;
  inline-size: 80px !important;
  color: #e71e1ed9 !important;
  background: #00000096 !important;
  font-weight: bold;
  border: 2px solid #e71e1ed9 !important;
}

#iot-keyboard .tecla-c-cedilha,
#iot-keyboard .tecla-apagar {
  min-inline-size: 70px !important;
  inline-size: 54px !important;
  font-size: 1.2em !important;
  padding-inline: 0 !important;
  background: #00000096 !important;
  color: #fff !important;
  border: 2px solid #9941ff !important;
}

/* Fundo preto transparente para o wrapper do teclado dos eventos */
#eventKeyboardWrapper {
  position: fixed;
  inset-inline-start:600px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0);
  border-radius: 20px;
  background: 
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;
  box-shadow: 0 0 12px rgb(0 255 255 / 0%), 0 0 20px rgb(255 0 255 / 0%);
  animation: glow 4s cubic-bezier(0, 1.31, 1, 1) infinite;
  padding: 10px;
  inline-size: 100%;
  max-inline-size: 870px;
  transform: translateX(-50%);
  block-size: 164px; /* Reduzido de 170px para 120px */
  padding-block-end: 160px; /* Reduzido de 110px para 60px */
  inset-block-start: 2px; /* Ajustado para posicionar melhor o teclado reduzido */
  margin-inline-start: 38px;
  inset-block-start: 355px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Centraliza o teclado dentro do wrapper */
#event-keyboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center; 
  background: 
    linear-gradient(135deg, #00f0ff00, #ff00ff00) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;
  /* Centraliza as linhas do teclado */
  margin-block-start:20px;
  margin-inline-start:20px;
  block-size:250px!important;
}

#event-keyboard .linha {
  display: flex;
  justify-content: center;
  margin-block-start: 60px;
}
#event-keyboard .tecla {
  min-inline-size: 36px;
  min-block-size: 36px;
  margin: 2px;
  border-radius: 6px;
  border: none;
  background: #eee;
  font-size: 1.5em;
  cursor: pointer;
  transition: background 0.2s;
}
#event-keyboard .tecla:active {
  background: #cce;
}
#event-keyboard .tecla.espaco {
  min-inline-size: 80px;
}
#iotKeyboardWrapper {
  animation: teclado-slide-in 0.2s;
}
@keyframes teclado-slide-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

#event-name {
  font-size: 2rem;         
  padding: 18px 24px;      
  inline-size: 100%;            
  box-sizing: border-box;  
  border-radius: 8px;      
  border: 2px solid #55555573;  
}
/* Para todos os botões do teclado de eventos */
#event-keyboard button[type="button"] {
  min-inline-size: 70px;
  block-size: 50px!important;
  font-size: 1.4rem;
  align-content:center;
  padding: 16px 0;
  border-radius: 12px;
  background: #22222200;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #9941ff;
  transition: background 0.2s, transform 0.1s;
}





#event-day:focus,
#event-time:focus,
#event-name:focus {
  border: 2px solid rgb(183, 0, 255) !important;
  outline: none;
  box-shadow: 0 0 4px orange33;
}

.evento-card {
  background: #00000000;
  border: 2px solid #ff60f0;
  border-radius: 12px;
  margin-inline-start:10px!important;
  margin: 10px 0;
  padding: 12px 16px;
  box-shadow: 0 0 12px rgb(120 0 129 / 56%), 0 0 20px rgba(255, 0, 255, 0.2);
  animation: glow 4s ease-in-out infinite;  
  display: flex;
  block-size:100px!important;
  inline-size: 505px;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  block-size:100px!important;
}

.evento-card:hover {
  box-shadow: 0 4px 16px #ff121200;
  border-color: #051195;
}

.evento-hora {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  margin-block-end: 4px;
  margin-inline-start:5px;
  letter-spacing: 1px;
}

.evento-descricao {
  font-size: 1.5rem;
  word-break: break-word;
  color: #ffffff;
}

.evento-vazio {
  color: #ffffff;
  font-style: italic;
  text-align: center;
  margin: 16px 0;
}

.evento-botoes {
  display: flex;
  justify-content: space-between; /* separa os botões */
  gap: 8px;
  margin-block-start: 12px;
}

.btn-apagar-evento {
  background: #cc000073;
  color: #fff;
  border-radius: 10px;
  padding: 8px 8px;
  border: none;
  block-size:35px;
  font-size: 1.1em;
  cursor: pointer;
  border:2px solid white;
}

.btn-cancelar-evento {
  background: #3f3f3f94;
  color: #fff;
  border-radius: 10px;
  padding: 8px 8px;
  border: none;
  block-size:35px;
  font-size: 1.1em;
  cursor: pointer;
  border:2px solid white;
}

#server-status {
  position: fixed;
  inset-block-start: 1px;
  inset-inline-start: 1px;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: #f00; /* Vermelho por padrÃ£o */
  border: 2px solid #222;
  box-shadow: 0 0 6px #0006;
  z-index: 9999;
  transition: background 0.3s;
}
#server-status.online {
  background: #00ff00;
  box-shadow: 0 0 8px #0f06;
}
#server-status.offline {
  background: #f00;
  box-shadow: 0 0 8px #f006;
}

#voz-status {
  position: fixed;
  inset-block-start: 1px;
  inset-inline-start: -20px!important;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 50%;
  background: #f00; /* Vermelho padrÃ£o */
  border: 2px solid #222;
  box-shadow: 0 0 6px #0006;
  z-index: 9999;
  transition: background 0.3s;
}
#voz-status.online {
  background: #00ff00 !important;
  box-shadow: 0 0 8px #0f06;
}
#voz-status.offline {
  background: #f00 !important;
  box-shadow: 0 0 8px #f006;
}

.dia.feriado {
  color: red;
  border: 2px solid red;
}
.dia.evento {
  background-color: #a8d0ff;
}
.dia.vazio {
  visibility: hidden;
}

/* Para os cards de feriado */
.evento-card.feriado {
  background: #07060644 !important;
  color: #c00 !important;
  border-inline-start: 5px solid #c00 !important;
}

.calendario-evento {
  background: #2196f3 !important; /* azul */
  color: #fff !important;
  border-radius: 50%;
}

#iotMain {
  position: fixed;
  inset: 0;
  inline-size: 100vw;
  block-size: 100vh;
  background: rgb(0 0 0 / 0%); /* fundo preto translÃºcido */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#painel-iot {
  background: #22222200;
  color: #00000000;
  block-size:100%;
  inline-size:90%;
  border-radius: 30px;
  box-shadow: 0 4px 32px #00000000;
  padding: 32px 44px;
  min-inline-size: 30px;
  min-block-size: 30px;
  max-inline-size: 89vw;
  max-block-size: 85vh;
  overflow: fixed;
  position: fixed;
  margin-block-start:15px;
  margin-inline-start:14px;
  justify-content:center;
}

.iot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#iotContent {
  margin-inline-start: -10px!important;
}

.iot-device {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 12px;
  background: #524d4d;
  padding: 8px 12px;
  border-radius: 8px;
}

.iot-toggle {
  background: #0074d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  cursor: none; /* Desabilita o cursor */
  transition: background 0.2s;
}
.iot-toggle:hover {
  background: #005fa3;
}

/* Teclado virtual exclusivo do IoT */
.iot-teclado-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block-start: 10px;
}

.iot-teclado {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iot-teclado-linha {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.iot-tecla {
  background: #23272f00;
  color: #fff;
  border: 2px solid #9941ff;;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background 0.2s;
  min-inline-size: 38px;
  text-align: center;
}
.iot-tecla:hover {
  background: #0074d9;
  color: #fff;
}

/* Centraliza o teclado do IoT vertical e horizontalmente */
#iotKeyboardWrapper {
  inset-inline-start: 450px;
  inset-inline-end: 100px;
  inset-block-end: 10px;
  inset-block-start: 330px;
  z-index: 3000;
  margin-inline-start:100px;
  background: rgb(0 0 0 / 44%); /* fundo levemente escurecido */
  display: flex;
  justify-content: center;
  align-items: center; /* Alinha na parte de baixo */
  margin:10;
  border-radius:20px;
  padding:5px 0px 65px 10px;
   /* EspaÃ§o do teclado em relaÃ§Ã£o ao rodapÃ© */
   block-size: 200px;
   padding-inline-end: 10px;
   inline-size: 700px;
   border: 1px solid var(--cor-borda);
}

#iot-keyboard {
  box-shadow: 0 4px 32px #0000005c;
  border-radius: 18px 18px 18px 18px;
  background: #3d3c3c38;
  padding: 34px 52px 32px 52px;
  margin-block-start: 60px;
}

/* Grade dos dispositivos IoT */
#iotContent {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  justify-content: flex-start;
  margin-inline-start: 1px!important;
  margin-block-end: 8px;
  inline-size: 1000px;
  max-block-size: 650px; /* Aumenta a altura visível do painel IoT */
  overflow-y: auto;
  padding-inline-end: 28px;
}

/* Barra de rolagem personalizada para o painel IoT */
#iotContent::-webkit-scrollbar {
  inline-size: 28px;
  background: #222;
  border-radius: 14px;
}
#iotContent::-webkit-scrollbar-thumb {
  background: #00f0ff;
  border-radius: 14px;
  border: 3px solid #222;
}
#iotContent {
  scrollbar-width: thick;
  scrollbar-color: #00f0ff #222;
}
/* Card pequeno do dispositivo */
.iot-card {
  inline-size: 25px;
  block-size: 180px;
  background: #1a1b1d99;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0004;
  display: flex;
  flex-direction: column;    /* <-- Importante! */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  color: #fff;
  font-size: 1.1rem;
  border: 2px solid #ff06068f;
  user-select: none;
}

.iot-card-nome {
  font-weight: bold;
  font-size: 1.05rem;
  margin-block-end: 2px;
  text-align: center;
  inline-size: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iot-card-nome {
  font-size: 2rem!important;
  color: #ffffff!important;
  margin-block-end: 2px;
  text-align: center;
  inline-size: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iot-card-tipo {
  font-size: 1.5rem!important;
  color: #ffffff!important;
  margin-block-start: 2px;
  text-align: center;
  inline-size: 100%;
}

.iot-form {
  background: #00000000;
  border-radius: 20px;
  box-shadow: 0 4px 24px #9e2cff;
  padding: 32px 32px 24px 32px;
  max-inline-size: 638px;
  block-size:180px!important;
  margin-inline-start:90px;
  display: flex;
  flex-direction: column;
  margin-inline-start:30px;
  gap: 18px;
  color: #fff;
  position: f;
  inline-size:30px auto;
  block-size:20px;
  border:none;
  margin-block-start:30px!important;
  margin-inline-start:100px!important;
}

.iot-form-titulo {
  text-align: center;
  font-size: 1.3rem;
  margin-block-end: 8px;
  color: #ffffff;
  letter-spacing: 1px;
}

.iot-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
}
#iotNome.iot-input{
  block-size:40px;
  font-size:1.5em;

}
#iotId.iot-input{
  block-size:40px;
  font-size:1.5em;

}
#iotTipo.iot-input{
  block-size:60px;
  font-size:1.5em;

}
#iotObs.iot-input{
  block-size:80px;
  font-size:1.5em;
}

.iot-input {
  background: #10101099;
  color: #ffffff7d;
  border: 1.5px solid #444;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}
.iot-input:focus {
  border-color: #c400d9;
}

.iot-form-botoes {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-block-start: 8px;
  font-size:1.2em!important;
}

.iot-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.iot-btn-salvar {
  background: #71087b;
  color: #fff;
  border: 1px solid;
}
.iot-btn-salvar:hover {
  background: #131313;
}

.iot-btn-cancelar {
  background: #2d2d2d;
  color: #ffffff;
  border: 1px solid ;
}
.iot-btn-cancelar:hover {
  background: #ffffff;
}

#iotEnderecoStatus {
  transition: color 0.2s;
  pointer-events: none;
}
#iotEnderecoStatus.ok {
  color: #2ecc40;
}
#iotEnderecoStatus.err {
  color: #e74c3c;
}

/* Estilo futurista para controles de lÃ¢mpada */
#lampada-controls {
  background: linear-gradient(135deg, #23243a 60%, #3a3b5a 100%);
  border-radius: 18px;
  padding: 18px 24px;
  margin: 16px 0;
  box-shadow: 0 0 16px #00f2ff55;
  color: #fff;
  font-family: 'Digital-7', monospace;
}

.lampada-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 18px;
}
.switch {
  position: relative;
  display: inline-block;
  inline-size: 54px;
  block-size: 28px;
}
.switch input { display: none; }
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset-block-start: 0; inset-inline-start: 0; inset-inline-end: 0; inset-block-end: 0;
  background: #888;
  border-radius: 28px;
  transition: .4s;
}
.switch .slider:before {
  position: absolute;
  content: "";
  block-size: 22px; inline-size: 22px;
  inset-inline-start: 3px; inset-block-end: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .4s;
}
.switch input:checked + .slider {
  background: #00d900; /* verde quando ativo */
}
.switch input:checked + .slider:before {
  transform: translateX(26px);
}

/* ...existing code... */
.modo-btn {
  background: #23243a;
  border: 2px solid #00f2ff;
  color: #00f2ff;
  border-radius: 8px;
  padding: 6px 18px;
  font-size: 1em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modo-btn.active, .modo-btn:hover {
  background: #00f2ff;
  color: #23243a;
}

#rgb-picker input[type="color"] {
  inline-size: 48px; block-size: 48px;
  border: none;
  border-radius: 8px;
  background: #23243a;
  margin-block-end: 12px;
}

#brilho-slider {
  margin-block-start: 10px;
}
#brilho-slider input[type="range"] {
  inline-size: 100%;
  accent-color: #00f2ff;
}

#voz-status {
  position: fixed;
  inset-block-start: 1px;
  inset-inline-start: 10px;
  inline-size: 5px;
  block-size: 5px;
  border-radius: 50%;
  background: #f00; /* Vermelho padrÃ£o */
  border: 2px solid #222;
  box-shadow: 0 0 6px #0006;
  z-index: 9999;
  transition: background 0.3s;
}
#voz-status.online {
  background: #00ff00 !important;
  box-shadow: 0 0 8px #0f06;
}
#voz-status.offline {
  background: #f00 !important;
  box-shadow: 0 0 8px #f006;
}

.calendar-cell {
  transition: background 0.2s;
}
  /* CSS para os cards dos dispositivos IoT */
    .device {
      background: #00000030;
      padding: 18px 16px;
      border-radius: 10px;
      margin-block-start: -10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.10);
      border: 2px solid #c00; /* Vermelho: desligado inicialmente */
      cursor: pointer;
      transition: border 0.2s, box-shadow 0.2s;
      max-inline-size: 100px;
      min-inline-size:100px;
      block-size:120px;
      font-size: 1.1em;
      display: inline-block;
      margin-inline-end: 12px;
      position: relative;
      text-align: center;
}
    .device.selected {
      border: 2px solid #4e854f;
      box-shadow: 0 4px 16px rgb(39 255 0 / 71%);
    }
    .device .status {
      display: none; /* Esconde o texto de status */
    }
    .device .nome-dispositivo {
      color: #fff;
      font-weight: bold;
      font-size: 1.15em;
      text-align: center;
      margin: 0 auto 8px auto;
      display: block;
      letter-spacing: 0.5px;
    }
    .device .indicador-conexao {
      position: absolute;
      inset-block-start: 8px;
      inset-inline-start: 8px;
      inline-size: 4px;
      block-size: 4px;
      border-radius: 50%;
      background: #c00; /* Vermelho: desconectado por padrÃ£o */
      border: px solid #fff;
      box-shadow: 0 0 6px #c00a;
      transition: background 0.2s;
    }
    .device.conectado .indicador-conexao {
      background: #2ecc40; /* Verde: conectado */
      box-shadow: 0 0 8px #2ecc40a0;
      
    }
    #iotContent {
      margin-block-start: 18px;
      margin-block-end: 18px;
      flex-wrap: wrap;
      gap: 8px;
      inline-size:1000px;
      
    }

#iotForm.iot-form{
background: 
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;
margin-block-start:-20px!important;
display: block;
position: relative;
min-inline-size:940px;
block-size:255px!important;
inline-size:940px!important;
margin-inline-start:84px!important;
}
#iot-keyboard {
  background: #00000000 !important;
  gap: 6px;
  margin-inline-end:25px!important;
  margin-block-start:-0px;
  inline-size:800px!important;
  display: flex;
  flex-direction: column;
  align-items: center;      /* Centraliza as linhas do teclado */
  justify-content: center;  /* Centraliza horizontalmente */
}
#iotKeyboardWrapper {
  position: fixed;
  z-index: 1000;
  background: rgba(0, 0, 0, 0);
  border-radius: 20px;
  background: 
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) padding-box,
    linear-gradient(135deg, #00f0ff1a, #ff00ff1a) border-box;
  box-shadow: 0 0 12px rgb(0 255 255 / 0%), 0 0 20px rgb(255 0 255 / 0%);
  animation: glow 4s cubic-bezier(0, 1.31, 1, 1) infinite;
  padding: 0px;
  inline-size: 100%;
  max-inline-size: 886px;
  block-size:310px!important;
  block-size: 184px; /* Reduzido de 170px para 120px */
  padding-block-end: 160px; /* Reduzido de 110px para 60px */
  block-size: 334px; /* Ajustado para posicionar melhor o teclado reduzido */
  margin-inline-start: 185px;
  inset-block-start: 364px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#add-iot-btn {
  position: fixed;
  inset-inline-end: 32px;
  inset-block-end: 32px;
  z-index: 2100;
  font-size: 4em!important;
  inline-size: 76px!important;
  block-size: 76px!important;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff8a, #ff00ffad)!important;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

#respostaWrapper {
  overflow: auto;
  /* Permite scroll horizontal e vertical */
  scrollbar-width: thin;
  scrollbar-color: #6c018f #222;
}

#respostaWrapper::-webkit-scrollbar {
  inline-size: 12px;
  background: #222;
  border-radius: 12px;
}
#respostaWrapper::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 12px;
  border: 2px solid #222;
}
#config-modal-content{
  block-size:450px;
  inline-size:600px!important;
  border-radius:20px!important;
  background:#201f1fc2!important;
  border:2px solid #9218cd!important;;
  box-shadow: 0 0 24px #c100ff80!important;

  z-index: 1000;
}
#btn-config-chat{
  margin-block-start:65px;
  block-size:80px!important;
  inline-size:80px!important;
  font-size:4rem!important;
  background:transparent!important;
  display: flex; /* O JS vai usar display: none/flex para mostrar/esconder */
}
#config-text {
  color: #ffffff;
  font-size: 1.8em;
  text-align: center;
  margin-block-start:10px;
}
#fechar-config-chat {
  position: absolute;
  inset-block-start: 70px;
  inset-inline-end: 875px;
  margin: 0;
  z-index: 1001;
  /* Opcional: estilo visual */
  background: #ff000000!important;
  color: #fff;
  border: none;
  border-radius: 50%!important;
  padding: 8px 8px;
  font-size: 2em!important;
  cursor: pointer;
  block-size:40px;
  inline-size:40px;
  
}
#config-notif-chat{
  margin-block-start:40px;
  margin-inline-start:10px!important;
  font-size:2.5rem!important;
  
}
#texto-notif-chat {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
}

.slider-vertical {
  writing-mode: bt-lr;
  inline-size: 90px;   /* Aqui aumenta a largura do slider */
  block-size: 120px;
  background: #ffffff;    /* Opcional: cor de fundo para visualizar */
}
.config-sliders {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  inset-block-start: 120px;
  inset-inline-end: 120px;
  gap: 4px;
  background: #00000085;
  border-radius: 18px;
  box-shadow: 0 2px 12px #0004;
  padding: 2px 2px 2px 2px;
  border: 2px solid #ffffff80;
  min-inline-size: 230px;
}
.config-slider-bloco {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-block-end: 12px;
}
.slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 2px;
  margin-block-end: 2px;
}
.slider-label {
  font-size: 1.1em;
  color: #ffffff;
  margin-block-end: 2px;
  text-align: start;
  margin-inline-start: 2px;
}
.slider-sign {
  font-size: 1.5em;
  color: #ffffff;
  user-select: none;
  inline-size: 28px;
  text-align: center;
  font-weight: bold;
  opacity: 0.85;
}
input[type="range"].slider-vertical {
  block-size: 38px;
  inline-size: 140px;
  border-radius: 16px;
  background: linear-gradient(90deg, #8a21ff 0%, #0064b9 var(--percent, 100%), #444 var(--percent, 100%), #444 100%);
  accent-color: #ffffff;
  cursor: pointer;
  margin: 0 8px;
  appearance: none;
  transform: none;
  outline: none;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s;
}
input[type="range"].slider-vertical::-webkit-slider-thumb {
  appearance: none;
  inline-size: 0;
  block-size: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
input[type="range"].slider-vertical::-moz-range-thumb {
  inline-size: 0;
  block-size: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
input[type="range"].slider-vertical::-ms-thumb {
  inline-size: 0;
  block-size: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
input[type="range"].slider-vertical::-webkit-slider-runnable-track {
  background: transparent;
  border-radius: 16px;
  inline-size: 100%;
  block-size: 48px;
}
input[type="range"].slider-vertical::-ms-fill-lower,
input[type="range"].slider-vertical::-ms-fill-upper {
  background: transparent;
  border-radius: 16px;
}
/* Adicione no seu CSS */
#calendar-video.background-video {
  object-position: center center;
}


#confirm-delete-event-modal-content{
background:#000000c7!important;
  border:2px solid #c539ff;
  box-shadow: 0 0 12px rgb(4 255 255);
  inline-size:600px;
  block-size:150px;
  font-size:1.4em;
}
#confirm-delete-event-modal-message{
color:white;

}
#confirm-delete-event-modal-warning{
 color:#ff2a2a!important;
}
#confirm-delete-event-btn{
border:2px solid #dedede!important;
  inline-size:120px;
  padding:8px 8px !important;

}
#cancel-delete-event-btn{
  background:#8a008c!important;
  border:2px solid #ffffffe8!important;
  inline-size:120px;
  padding:8px 8px !important;
}
#confirm-delete-event-modal {
  z-index: 5001 !important;


  justify-content: center;
  align-items: center;
  margin-block-end: 18px;
}
.iot-detalhes-id,
.iot-detalhes-tipo {
  font-size: 2em;
  color: #fff;
  background: #00000040;
  border-radius: 10px;
  padding: 8px 24px;
  min-inline-size: 120px;
  text-align: center;
  font-weight: bold;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.iot-detalhes-id b,
.iot-detalhes-tipo b {
  color: #ffffff;
  font-weight: bold;
  margin-inline-end: 8px;
}
.iot-detalhes-tipo b {
  color: #ffffff;
  font-weight: bold;
  margin-inline-end: 8px;

  margin-inline-end: 8px;
}
#deletarIotBtn{
  margin-inline-start:1200px!important;

  
}.iot-card {
  border: 1px solid #ccc;
  padding: 16px;
  margin: 8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-inline-size: 180px;
  position: center;
}




.iot-card.ligado .iot-btn-ligar {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 8px #fff, 0 0 2px #2ecc40;
  font-weight: bolder;
  align-content:center;
  border: 2px solid green;
}

.iot-card.ligado .iot-btn-desligar {
  opacity: 0.3;
  color: #fff;
  align-content:center;
}

.iot-card.desligado .iot-btn-desligar {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 8px #fff, 0 0 2px #c00;
  font-weight: bolder;
  align-content:center;
}

.iot-card.desligado .iot-btn-ligar {
  opacity: 0.3;
  color: #fff;
  align-content:center;
}

/* Switch customizado com texto */
.iot-switch {
  display: flex;
  align-items: center;
  /* centraliza verticalmente */
  justify-content: center;
  /* centraliza horizontalmente */
  margin-block-end: 10px;
  border-radius: 2px!important;
  inline-size: 100%; /* ocupa toda a largura do card */
  flex: 1; /* ocupa espaÃ§o vertical disponÃ­vel no card */
  margin-inline-start:-130px;
}

/* Slider do switch IoT */
.iot-switch .slider {
  display: block;
  margin-inline-start: auto;
  margin-inline-end: auto;
  position: absolute;
  inset-inline-start: 0; inset-inline-end: 0;
  inline-size: 170px;
  block-size: 32px;
  border-radius: 8px;
}

/* Bolinha branca: largura dinÃ¢mica e alinhamento */
.iot-switch .slider:before {
  position: absolute;
  content: "";
  block-size: 28px;
  inline-size: 60px;
  inset-block-start: 2px;
  background: rgb(255 255 255 / 64%);
  border-radius: 4px;
  transition: .5s cubic-bezier(.4,1.4,.6,1), inline-size .3s;
  inset-inline-start: 0;
}

/* Ajuste o .switch-label para garantir alinhamento das palavras */
.iot-switch .switch-label {
  position: absolute;
  inset-block-start: 3px;
  block-size: 100%;
  inline-size: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  font-size: 1em;
  font-weight: bold;
  padding: 0 12px; /* EspaÃ§o interno para nÃ£o colar nas bordas */
  gap: 10px;
}

/* Quando ligado: bolinha cobre "Ligado" */
.iot-switch input[type="checkbox"]:checked + .slider:before {
  inline-size: 74px;
  transform: translateX(4px);
}
.iot-switch input[type="checkbox"]:checked + .slider {
  background: #2ecc40 !important; /* verde */
}
/* Quando desligado: bolinha cobre "Desligado" */
.iot-switch input[type="checkbox"]:not(:checked) + .slider:before {
  inline-size: 90px;
  transform: translateX(76px);
}

/* Remove o cursor (setinha) dos campos de data e hora */
#event-form input[type="date"],
#event-form input[type="time"] {
  cursor: none;
}

/* Remove o cursor dos dias do calendÃ¡rio */
.dia, .calendar-day {
  cursor: none;
}

.iot-card.ligado {
  border: 2px solid #2ecc40 !important;
}

.iot-card.desligado {
  border: 2px solid #c00 !important;
}
.iot-card-nome {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00ffff;
  text-align: center;
}

.iot-card-id {
  font-size: 0.9rem;
  color: #ccc;
  display: none !important;
}

.iot-card-tipo {
  font-size: 0.9rem;
  color: #ffcc00;
}

.iot-card-obs {
  font-size: 0.8rem;
  color: #bbbbbb;
  font-style: italic;
  display: none !important;
}

#iotDetalhesModal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgb(0 0 0 / 45%);
  display: none;
  align-items: center;
  justify-content: center;
}
#iotDetalhesModal .iot-detalhes-content {
  background: #0000007d;
  color: #fff;
    border:7px solid white;
  inline-size:760px;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 24px #0003;
  min-inline-size: 740px;
  block-size:350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#iotDetalhesModal .iot-detalhes-info {
  font-size: 2em;
  margin-block-end: 8px;
}
#iotDetalhesModal .iot-detalhes-obs {
  font-size: 1.1em;
  background:#00000080;
  inline-size:700px;
  margin-block-start:20px;
  block-size:260px;
  border:2px solid;
  border-radius:20px;
  margin-block-end: 18px;
}

#iotDetalhesModal .iot-detalhes-nome {
  font-size: 2em;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  align-self: center;
  margin-block-end: 18px;
  margin-block-start: 0;
  margin-inline: auto;
  inline-size: 200px;
  border:2px solid white;
  margin-block-start:-34px;
  border-radius:0px 2px 15px 15px;
}
#iotDetalhesModal .iot-detalhes-obs {
          margin-inline-start: 10px !important;
      margin-inline-end: 10px !important;
          padding-inline-start: 10px !important;
          padding-inline-end: 10px !important;
          word-break: break-word;
          white-space: pre-line;
          box-sizing: border-box;
          text-align: start;
          max-inline-size: calc(100% - 20px);
          overflow-wrap: break-word;
        }

#fecharIotDetalhesBtn {
  background: #c00;
  color: #fff;
  border: none;
  block-size:50px;
  inline-size:50px;
  margin-block-start:-370px!important;
  margin-inline-start:-740px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  margin-block-start: 8px;
}
#fecharIotDetalhesBtn:hover {
  background: #a00;
}

.iot-detalhes-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
#delete-iot{
  color:#ffffff!important;
  background:#34343494!important;
  border:2px solid #3f3fca;
}
#confirm-delete-iot-btn{
  font-size:1.5em!important;
  border:2px solid black!important;
  background:#ff000061!important;
  border-radius:10px!important;
  block-size:50px!important;
  inline-size:150px!important;
}
#cancel-delete-iot-btn{
  font-size:1.5em!important;
  border:2px solid black!important;
  background:#56565661!important;
  border-radius:10px!important;
  block-size:50px!important;
  inline-size:150px!important;
}

/* Dias de outros meses na grade do calendário */
.calendar-day-outro-mes {
  opacity: 0.35 !important;
  pointer-events: none !important;
  background: transparent !important;
  color: #fff !important;
}

/* Campo select do tipo de dispositivo IoT no formulário: fundo preto e texto branco */


#iotTipo.iot-input {
  background: #000 !important;
  color: #fff !important;
  border: 1.5px solid #444;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1.5em;
}

/* Fundo preto ao selecionar/focar */
#iotTipo.iot-input:focus, #iotTipo.iot-input:active, #iotTipo.iot-input:checked, #iotTipo.iot-input:visited, #iotTipo.iot-input:enabled {
  background: #00000000 !important;
  color: #fff !important;
  outline: none !important;
  border-color: #9cd1ff !important;
}

#btn-config-geral {
  position: fixed;
  inset-block-end: 100px;
  inset-inline-end: 18px;
  z-index: 2200;
  background: transparent !important;
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  inline-size: 60px;
  block-size: 60px;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}
#btn-config-geral:hover {
  transform: scale(1.06);
  background: transparent !important;
}

/* Box que envolve o botão de Redes Wi‑Fi no modal de configurações gerais */
.wifi-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-block-start: 12px;
  inline-size: 100%;
}

/* Botão de abrir redes Wi‑Fi */
#btn-abrir-wifi {
  background: linear-gradient(135deg,#0074d9,#005fa3);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1.05em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.16s, transform 0.08s;
}
#btn-abrir-wifi:hover {
  background: linear-gradient(135deg,#005fa3,#003e80);
  transform: translateY(-2px);
}
#btn-abrir-wifi:active {
  transform: translateY(0);
}

#reconhecendo-indicador {
  display: none !important;
}

/* Botão do microfone no teclado virtual */
.teclado .tecla-microfone {
  background: linear-gradient(135deg, #0a1a7d 60%, #00f0ff 100%) !important;
  color: #fff !important;
  border: 2px solid #00f0ff !important;
  font-weight: bold !important;
  box-shadow: 0 0 16px #00f0ff80, 0 0 32px #0a1a7d80 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

/* Quando gravando, mantém destaque magenta */
.teclado .tecla-microfone.gravando {
  background: linear-gradient(135deg, #ff0055 60%, #ff00ff 100%) !important;
  border-color: #ff0055 !important;
  box-shadow: 0 0 18px #ff005580, 0 0 32px #ff00ff80 !important;
}}