@import url('https://fonts.googleapis.com/css2?family=Lexend+Giga:wght@100..900&display=swap');

.material-symbols-outlined {
    vertical-align: middle;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings:
      'FILL' 1,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24;
  }

span.material-symbols-outlined{
  font-size: inherit;
}

:root {
  --bg: #F3F4F6;
  --bgop: #F3F4F6c2;
  --bgsec: #ebe7ef;
  --text: #000000;
  --card: #c5cbd1;
  --btnclr: #ffffff;
  --accent: #7C3AED;
  --border: #d8d8d8;
  --seccolor: #e1e2e6;
  --overlay: #0000005b;
  --shadow: rgba(0, 0, 0, 0.049);
}

[data-theme="dark"] {
  --bg: #2A2A2D;
  --bgop: #2A2A2Db2;
  --bgsec: rgb(51, 51, 54);
  --text: #f9fafb;
  --btnclr: #000000;
  --card: #222222;
  --accent: #7C3AED;
  --border: #4e4e53;
  --seccolor: #222222;
  --overlay: #7171715f;
  --shadow: rgba(82, 82, 82, 0.053);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Lexend Giga", serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: 1rem;
  transition: background 0.3s, color 0.3s;
}

body.blockoverflow {
  overflow: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

button {
  display: flex;
  flex-direction: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease, opacity 0.2s ease;
}

button:hover {
  opacity: .8;
}

.secbtn{
  background: var(--seccolor);
  color: var(--text);
}

.flexbuttons{
  display: flex;
  flex-direction: wrap;
  flex-wrap: wrap;
  gap: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

input {
  padding: 8px 10px;
  border: var(--border) 2px solid;
  outline: none;
  font-size: 1rem;
  border-radius: 15px;
  background: var(--bg);
  color: var(--text);
}

select {
  padding: 5px 10px;
  border: var(--border) 2px solid;
  outline: none;
  border-radius: 15px;
  background: var(--border);
  color: var(--text);
}

.select-wrapper {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-wrapper select {
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: 15px;
  background-color: var(--border);
  color: var(--text);
  opacity: .7;
  font-size: .8rem;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border .2s ease, opacity .2s ease;
}

.select-wrapper select:focus {
  opacity: 1;
  border-color: var(--accent);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-family: sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  gap: 10px;
  overflow: hidden;

  p{
    font-size: 1.15rem;
  }
}

.pointer{
  cursor: pointer;
}

/* Esconde o checkbox nativo */
.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkbox {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: var(--border) 2px solid;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color .2s ease;
}

.checkbox span.icon{
  font-size: 1.5rem;
}

.big-ico{
  font-size: 4rem;
}

/* Ícones */
.icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Estado inicial - X visível */
.icon.unchecked {
  opacity: 1;
  transform: scale(1);
  color: var(--text);
}

/* Check invisível inicialmente */
.icon.checked {
  opacity: 0;
  transform:  translateX(-15px);
  color: var(--bg, #fff);
}

/* Quando marcado - check visível, x invisível */
.checkbox-wrapper input[type="checkbox"]:checked + .checkbox {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox .unchecked {
  opacity: 0;
  transform: translateX(15px);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox .checked {
  opacity: 1;
  transform: translateX(0);
}

.multiple-selector {
  position: relative;
  display: flex;
  justify-content: space-between;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: transparent;
  padding: 4px;
  gap: 4px; /* espaçamento entre labels */
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.multiple-selector input[type="radio"] {
  display: none;
}

.multiple-selector label {
  flex: 1;
  text-align: center;
  padding: 5px 8px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease;
  position: relative;
  font-size: 1rem;
  white-space: nowrap;
}

.multiple-selector .slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  background: var(--accent);
  border-radius: 8px;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Movimento do slider */
#tab-top:checked ~ .slider {
  transform: translateX(0%);
}
#tab-center:checked ~ .slider {
  transform: translateX(100%);
}
#tab-bottom:checked ~ .slider {
  transform: translateX(200%);
}

/* Texto ativo */
#tab-top:checked + label,
#tab-center:checked + label,
#tab-bottom:checked + label {
  color: var(--bg, #fff);
}

@media (max-width: 480px) {
  .multiple-selector label {
    font-size: 0.9rem;
    padding: 5px 4px;
  }
}

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.disabled{
  pointer-events: none;
  opacity: .5;
}

#confirmation-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* Quando visível */
#confirmation-popup.visible {
  opacity: 1;
  pointer-events: all;
}

/* Fundo escuro */
.popup-overlay {
  position: absolute;
  touch-action: none;
  inset: 0;
  background: var(--overlay);
}

.popup-buttons{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: wrap;
  gap: 10px;
}

.popup-cancel, .popup-confirm {
  max-width: 50%;
}

/* Caixa do popup */
.popup-box {
  user-select: none;
  position: relative;
  background: var(--bg, #fff);
  padding: 25px;
  border-radius: 1rem;
  margin: 0 20px;
  max-width: 600px;
  min-width: 300px;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup-title{
  font-weight: 700;
}

#templatesStatus{
  font-weight: 400;
}

#listaTemplates {
  column-width: 300px;
  column-gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
}

.templateCapa{
  width: 100%;
  border-radius: 20px 20px 0 0;
  margin: 0;
  padding: 0;
}

.templatebox{
  background: var(--bgsec);
  border-radius: 20px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  .title {
    font-weight: bold;
    font-size: clamp(0.7rem, 1vw + 0.5rem, 1rem);
  }

  .desc {
    font-size: clamp(0.5rem, 0.8vw + 0.3rem, 0.8rem);
    opacity: 0.5;
  }

  img{
    border-radius: 10px;
    box-shadow: 0 2px 15px #45365644;
    max-width: 50%;
  }

  .tboxcontent{
    display: flex;
    gap: 5px;
    flex-direction: column;
  }
}

#listaTemplates .templateDiv {
  display: inline-block;
  width: 100%;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: 25px;
  border: 2px solid var(--bgsec);
  box-shadow: 0 5px 10px var(--shadow);
  padding: 4px;
  break-inside: avoid;
  box-sizing: border-box;
}

.moreoptions{
  background: none;
  font-weight: normal;
  color: var(--accent);
  opacity: .5;
  margin-top: 10px;
  width: 100%;
  text-align: center;
}

#listaTemplates .templateDiv .templateContent{
  background: var(--bgsec);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 0 20px 20px;
  padding: 15px;
}

.templateContent .btn{
  background-color: var(--accent);
  color: white;
  padding: 8px 10px;
  border: none;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.templateContent .plataforma{
  font-size: .8rem;
  text-align: center;
}

.badge{
  background: var(--accent);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 10px;
}

.canva{
  background: #70b5ff !important;
  color: black;
}

.templateContent .desc{
  margin-bottom: 10px;
}

.templateContent .date{
  font-size: small;
}

.iconbtn{
  text-decoration: none;

  span{
    color: var(--accent);
    font-size: 1.25rem;
    margin: 5px;
    cursor: pointer;
  }
}

.templateDiv.expandido .extra-content {
  opacity: 1;
}

section {
  display: none;
}

section.active {
  display: block;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.opinfobox{
  margin: 40px 0;
  padding: 10px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  img{
    width: 100%;
    max-width: 400px;
  }

  button{
    margin-top: 10px;
  }
}

.searchWrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.searchBar {
  width: 100%;
  padding: 10px 40px 10px 15px; /* espaço extra para o botão */
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 3px 6px var(--shadow);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
  font-size: 16px;
}

.searchBar:focus {
  border-color: var(--accent);
  box-shadow: 0 5px 10px var(--shadow);
}

.clearBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  transform: translateX(40px) translateY(-50%);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.clearBtn.visible {
  opacity: 1;
  transform: translateX(0px) translateY(-50%);
  pointer-events: auto;
}

.opinfobox.infoboxborder{
  border: 2px solid var(--accent);
  padding: 20px;
  border-radius: 20px;
}

/* Estilos do modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: var(--overlay, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  overflow-y: auto;
  padding: 40px 15px; /* espaço para respirar */
}

.modal.mostrar {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg, #fff);
  color: var(--text, #000);
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 25px;
  margin: auto;
  width: 100%;
  max-width: 600px;
  transition: transform 0.2s ease;
  transform: translateY(-200px);
  animation: modalEnter 0.4s ease forwards;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}

@keyframes modalEnter {
  from {
    transform: translateY(-200px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-content textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  min-height: 150px;
  max-height: 50vh;
  border: 1px solid var(--seccolor, #ccc);
  border-radius: 8px;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
}

.modal-content label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsividade: layout adaptado no mobile */
@media (max-width: 600px) {
  .modal-content textarea {
    font-size: 1rem;
  }
}

.textmodal{
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10vh auto;
  border-radius: 20px;
  width: calc(100% - 20px);
  min-height: auto;
  color: var(--text);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  padding: 30px 25px;
  transform: translateY(100vh);
  transition: transform .3s ease-in-out;
}

.modal.mostrar .modal-content{
  transform: translateY(0);
}

.minitxt{
  opacity: .5;
  font-size: .7rem;
}

.txt-margin{
  margin: 5px;
  margin-top: 10px;
}

.titleborder{
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.notas{
  overflow-y: auto; 
  display: flex;
  flex-direction: column-reverse;
  gap: 10vh;
  border-left: 2px solid var(--text);
  padding: 40px 0;
  margin: 10px 0;

  li{
    border-radius: 0;
    padding: 0;
    margin: 0;
    border: none;
  }
}

.abtn{
  overflow: hidden;
  color: var(--accent);
  display: inline-block;
  padding: 8px 15px;
  border-radius: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid var(--accent);
}

.tinybtn{
  font-size: .8rem;
  padding: 5px 8px;
}

.tinylink{
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.reader-banner {
  background: linear-gradient(150deg, #7C3AED, #A855F7, #E9D5FF);
  color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  width: 100%;
  margin: 20px auto;
  text-align: left;
}

.reader-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.reader-subtitle {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 16px;
}

.reader-cta {
  background-color: white;
  color: black;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reader-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.box{
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  padding: 20px;
  margin: 30px 0;
  color: var(--bg);
  background: var(--text);
  transition: background ease-in-out .2s;
}

.sec-box{
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  padding: 20px;
  margin: 30px 0;
  background: var(--seccolor);
  transition: background ease-in-out .2s;
}

.borderbox{
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  padding: 20px;
  margin: 30px 0;
  border: 2px solid var(--text);
  transition: background ease-in-out .2s;
}

.sec-borderbox{
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  padding: 30px 40px;
  margin: 30px 0;
  border: 2px solid var(--seccolor);
  transition: background ease .2s, border .2s ease;
}

#toast-container {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 10px 15px;
  border-radius: 10px;
  font-size: .8rem;
  backdrop-filter: blur(20px);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: slideIn 0.4s forwards, fadeOut 0.5s 3.5s forwards;
}

.toast.success { background-color: #507351df; }
.toast.error { background-color: #a42d24e0; }
.toast.info { background-color: #165e98d9; }
.toast.warning { background-color: #c88218c8; }

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

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(100%); }
}

/* Navbar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--bgop);
  backdrop-filter: blur(20px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1001;
  transition: color .2s ease, background .2s ease, border .2s ease;
}

.navbar .logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  max-height: 40px;
}

.navbar-center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Sidebar fixa à esquerda */
.sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  height: 100vh;
  background: var(--bg);
  border: none;
  padding: 15px;
  display: flex;
  justify-content: top;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
  width: 200px;
  transition: width ease 0.2s;
}

.sidebar.collapsed{
  width: 76px;
}

.sidebar.collapsed .menu-item{
  i{
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.sidebar .menu-item{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.menu-item span{
  opacity: 0;
  color: var(--text);
  transition: opacity .3s ease;
}

.menu-item span.visible {
  opacity: 1;
}

.sidebar.collapsed .menu-item span {
  opacity: 0;
  overflow: hidden;
}

/* Botões do menu */
.menu-item {
  background: none;
  display: flex;
  align-items: center;
  color: var(--accent);
  border: none;
  font-size: 1rem;
  padding: 2px;
  font-weight: normal;
  border-radius: 50px;
  cursor: pointer;
  gap: 10px;
  transition: transform 0.15s ease-in-out,  
  background 0.15s ease-in-out,  
  color 0.15s ease-in-out, 
  border 0.15s ease-in-out,
  opacity 0.15s ease-in-out
}

.menu-item i{
  padding: 8px;
  background: transparent;
  border-radius: 50px;
  transition: transform 0.15s ease-in-out,  background 0.1s ease-in-out,  color 0.15s ease-in-out
}

.menu-item.active {
  opacity: 1;
  font-weight: bold;
  color: var(--accent);
}

.menu-item.active i{
  background: var(--accent);
  color: white;
}

.close-button {
  color: #555555;

  span{
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 1;
    transition: opacity .1s ease-in-out;
  }:hover{
    opacity: .5;
  }
}

.navbutton{
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #555555;
  i{
    font-size: 1.8rem;
  }
}

.navtop{
  display: flex;
  align-items: center;
  flex-direction: wrap;
  justify-content: space-between;
}

.menu-sec{
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.switch-option{
  display: flex;
  align-items: center;
  color: var(--border);
  i{
    background: none;
  }
}

.centrallogo{
  display: flex;
  align-items: center;
  justify-content: center;
}

.tinylogo{
  max-height: 50px;
}

.biglogo{
  max-width: 250px;
}

.bigtitle{
  font-weight: 800;
  font-size: 3rem;
}

.bigdiv{
  min-height: calc(100vh - 200px);
  margin-bottom: 20%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .bigtitle{
    font-weight: 800;
    font-size: 2.5rem;
  }
}

/* Conteúdo principal com espaço para a sidebar */
.content {
  margin-left: 100px;
  margin-top: 70px;
  padding: .5rem;
  border-radius: 20px;
  transition: margin-left .2s ease;
}

.content.expanded{
   margin-left: 220px;
}

.flexspacing{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}

form{
  margin-bottom: 0;
}

.action-buttons{
  margin: 10px 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.action-button {
  opacity: 1;
  width: 2rem;
  height: 2rem;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; /* melhora a usabilidade */
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.265, 1.55), background .2s ease, color .2s ease;
}

.action-button:hover {
  opacity: .8;
  transform: scale(1.1);
}

.action-button:active{
  transform: scale(.9);
}

.action-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.action-button.blue{
  color: rgb(45, 141, 201);
}

/* Responsivo: sidebar vira topo */
@media (max-width: 600px) {
  .sidebar {
    flex-direction: row;
    height: auto;
    width: 100%;
    position: fixed;
    top: auto;
    bottom: -1px;
    justify-content: space-around;
    background: var(--bgop);
    backdrop-filter: blur(20px);
    overflow-y: auto;
  }

  .sidebar.collapsed{
    width: 100%;
  }

  .menu-item {
    font-size: 0.9rem;
  }

  .menu-item span.visible{
    display: inline;
  }

  .menu-item span{
    display: none;
  }

  .content {
    margin-left: 0;
    margin-bottom: 80px;
  }
}

section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

section.show {
  display: block;
  opacity: 1;
}

/* GET4REAL */

.theme-toggle {
  width: 62px;
  height: 35px;
  background: none;
  border: 2px solid var(--overlay);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  padding: 0 5px;
  transition: border .2s ease;
}

.toggle-thumb {
  width: 25px;
  height: 25px;
  background: var(--text);
  border-radius: 30%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle.active .toggle-thumb {
  transform: translateX(27px);
}

span.activeTheme{
  color: var(--bg) !important;
}

.theme-toggle .icons {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin: auto 1px;
  color: var(--text);
  z-index: 1;
  
  span{
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
  }
}

.gridash {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.card {
  border: solid 2px var(--seccolor);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-weight: bold;
  transition: transform 0.3s, border 0.2s ease, background 0.2s ease, opacity .2s ease;
}

.card-aleft{
  align-items: flex-start;
  justify-content: flex-start;
}

.card100{
  grid-column: 1 / -1;
  width: 100%; 
  font-weight: bold; 
  padding-bottom: 25px;
}

.cardab{
  border: var(--accent) 2px solid;
  color: var(--accent);
}

.card1{
  border: none;
  color: var(--bg);
  background: var(--accent);
}

.card2{
  border: none;
  background: var(--seccolor);
}

.card1:hover {
  opacity: .8;
}

.card2:hover {
  opacity: .7;
}

.cardab:hover{
  opacity: .7;
}

.card:hover {
  transform: scale(1.01);
  border-color: var(--accent);
}

/* Tamanhos personalizados */
.card.wide {
  grid-column: span 2;
}

.card.tall {
  min-height: 250px;
}

@media (max-width: 600px) {
    .gridash {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card,
    .card.wide,
    .card.tall {
      grid-column: span 1 !important;
      min-height: 120px !important;
    }
  }

  .menu-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background: var(--overlay);
      z-index: 2000;
      opacity: 0;
      pointer-events: none;
      touch-action: none;
      transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .menu-panel {
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: fixed;
      background: var(--bgop);
      backdrop-filter: blur(20px);
      color: white;
      width: 300px;
      height: 100vh;
      top: 0;
      right: -300px;
      z-index: 2002;
      padding: 20px;
      transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    }

    .menu-panel.active {
      transform: translateX(-300px);
    }

    .menu-panel a{
      text-decoration: none;
    }

    .menu-panel button{
      font-weight: normal;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: wrap;
      padding: 10px;
      background: var(--accent);
      color: white;
    }

    .menu-panel button i{
      font-size: 1.5rem;
      margin-right: 5px;
      opacity: .5;
    }

    @media (max-width: 600px) {
      .menu-panel {
        width: 100vw;
        max-height: 65vh;
        bottom: 0;
        top: auto;
        left: 0;
        transform: translateY(100vh);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        overflow-y: auto;
      }
      .menu-panel.active {
        transform: translateY(0%);
      }
    }

    .menu-panel button{
      width: 100%;
    }

.option{
  border: 2px solid var(--border);
  display: flex;
  flex-direction: wrap;
  justify-content: center;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  p.optxt{
    text-align: right;
    margin-left: 10px;
    padding: 0 10px;
    border-right: 2px solid var(--border);
  }
}

.optionon{
  font-weight: bold;
  text-align: left;
  padding: 0 10px;
  color: var(--accent);
}

/* Loaders & Other Boxes*/
.loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  opacity: 1;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.3s ease;
}

.loader-overlay.hide{
  opacity: 0;
}

.loaderbox{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* ou 100% se for dentro de outro container */
  width: 100%;
}

.loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 0.15em solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.4em;
  opacity: 1;
}

.big-loader{
  width: 2em;
  height: 2em;
}

/* Mantém o tamanho relativo à fonte do elemento pai */
.loader {
  font-size: inherit;
}

/* Exemplo opcional: se quiser esconder o conteúdo e mostrar só o loader */
.loader.only-loader {
  color: transparent;
  position: relative;
}
.loader.only-loader .loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Animação de rotação */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.scroll-hint {
  cursor: pointer;
  opacity: 0;
  position: fixed;
  bottom: 20px;
  left: 50%;
  background-color: #1f1f1f8f;
  backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 10px;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-family: sans-serif;
  user-select: none;
  transition: bottom .4s ease, opacity .3s ease;
  z-index: 2;
}

.sh-show{
  bottom: 100px;
  opacity: 1;
}

.sh-show-desktop{
  bottom: 50px;
  opacity: 1;
}

.scroll-text {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  opacity: 0.9;
}

.scroll-arrow .material-symbols-outlined {
  font-size: 1.5rem;
  animation: bounce 1.5s infinite;
  display: inline-block;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.currentPlan, .temaStats{
  text-transform: capitalize;
}

.centralfw{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
}

.fwsectiontitle{
  font-weight: normal;
  margin: 15px 0;
  font-size: 1rem;
}

.fwsection{
  background: var(--bgsec);
  padding: 5px 20px;
  border-radius: 20px;
  transition: background .2s ease;
  width: 100%;
  max-width: 800px;
}

.fwbtn{
  cursor: pointer;
  transition: opacity .2s ease;
}

.fwbtn:hover{
  opacity: .8;
}

.fwico{
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--text);
  opacity: .2;
}

.flexwrapper{
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  border-top: 2px solid #55555515;
  padding-top: 20px;

  .fwinfo{
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 75%;

    .fwtitle{
      font-weight: bold;
      font-size: 1rem;
    }

    .fwdesc{
      font-size: 1rem;
      opacity: .5;
    }
  }
}

.flexwrappercolumn{
  display: flex;
  flex-direction: column;
  gap: 10px;
  
  margin: 20px 0;
  border-top: 2px solid #55555515;
  padding-top: 20px;

  .fwinfo{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 5px;

    .fwtitle{
      font-weight: bold;
      font-size: 1rem;
    }

    .fwdesc{
      font-size: 1rem;
      opacity: .5;
    }
  }
}

@media (max-width: 600px) {
  .desktoponly{
    display: none;
  }
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: var(--accent);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: normal;
  white-space: normal;
  max-width: 90vw;
  box-sizing: border-box;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-wrap: break-word;
  text-align: center;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tooltip:hover::before,
.tooltip:focus-visible::before {
  opacity: 1;
}

.simplelink{
  text-decoration: underline;
}

.usar-template {
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.usar-template:hover {
  opacity: 0.8;
}

/* Mensagem por cima no hover */
.usar-template::after {
  content: "Abrir template";
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: .8rem;
  transform: scale(1.2) translate(-50%, -50%);
  background: white;
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform .3s cubic-bezier(0.175, 0.885, 0.265, 1.55);
  z-index: 1;
}

.usar-template:hover::after {
  transform: scale(1) translate(-50%, -50%);
  opacity: 1;
}

.usar-template:active::after {
  transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
  opacity: 1;
}

#longTextOpen{
  overflow-wrap: break-word;
  word-break: break-word;
}

.disabled-div{
  opacity: .5;
  pointer-events: none;
  transition: opacity .2s ease;
}

:disabled{
  opacity: .5;
  pointer-events: none;
  transition: opacity .2s ease;
}

.utilinfo{
  display: flex;
  flex-direction: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nnotify{
  display: inline-block;
  background: var(--bgop);
  font-size: .9rem;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}
.nnotify.success { 
  color: #fff;
  background-color: var(--accent); 
  box-shadow: 0 4px 12px #7c3aed7b;
}
.nnotify.error { 
  color: #fff;
  background-color: #dd2d20;
  box-shadow: 0 4px 12px #a42d245c;
}
.nnotify.info { 
  color: #fff;
  background-color: #2392ee; 
  box-shadow: 0 4px 12px #165e986f;
}
.nnotify.warning { 
  color: #000;
  background-color: #ffa827; 
  box-shadow: 0 4px 12px #ffad315c;
}

.nnotify .material-symbols-outlined{
  font-size: 1.4rem;
}

.fixtop{
  position: fixed;
  top: 80px;
  left: auto;
  right: 10px;
  margin-left: 10px;
  z-index: 2000;
}

.flashloading {
  pointer-events: none;
  animation: flashloading 1.2s ease-in-out infinite;
}

@keyframes flashloading {
  0%   { opacity: .2; }
  50%  { opacity: 1; }
  100% { opacity: .2; }
}

.border-button{
  color: var(--accent) !important;
  background: transparent !important;
  border: 2px solid var(--accent);
}

.dev-note {
  background: var(--bgsec);
  color: var(--text);
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
  max-width: 800px;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

.dev-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5555552d;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.dev-note-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-note-header .material-symbols-outlined {
  font-size: 22px;
  color: var(--accent, #007bff);
}

.dev-note-date {
  font-size: 0.9rem;
  color: var(--muted, #777);
}

.dev-note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-note-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.dev-note-list .material-symbols-outlined {
  font-size: 20px;
  color: var(--accent, #007bff);
}

/* Responsivo */
@media (max-width: 600px) {
  .dev-note {
    padding: 15px;
  }

  .dev-note-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dev-note-header h3 {
    font-size: 1.1rem;
  }

  .dev-note-date {
    font-size: 0.8rem;
  }
}