/*----- VARIÁVEIS E ESTILOS GERAIS -----*/
:root {
  --primary-color: #8a63d2;
  --secondary-color: #6c757d;
  --danger-color: #dc3545;
  --text-color: #222;
  --border-color: #0000001a;
  --box-shadow-color: #0000000a;
  --background-color: #f8f9fa;
}
html button:not(footer button) {
  text-transform: uppercase;
  white-space: nowrap;
}

body {
  font-family: "Poppins", sans-serif; /* Fallback adicionado */
  background-color: var(--primary-color);
  color: var(--text-color);
  margin: 0;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] body {
  background-color: rgb(17, 17, 17);
}

.hidden {
  display: none !important;
}

/*----- LAYOUT PRINCIPAL -----*/
aside {
  display: flex;
  position: fixed;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 256px;
  /*overflow: hidden;*/
  z-index: 20;
  transition: width 0.3s ease-in-out; /* Transição focada na largura */
}

/* REMOVER DEPOIS QUE CONSTRUIR */
.ebook {
  display: none !important;
}

header {
  display: flex;
  align-items: center;
  position: fixed;
  top: 8px; /* Mantido fixo no topo */
  /*left: calc(250px + 8px + 8px); */
  right: 8px;
  justify-content: space-between;
  height: 40px; /* Altura original */
  z-index: 11;
  transition: left 0.3s ease-in-out;
  border-radius: 8px;
  box-sizing: border-box;
}

.container {
  position: fixed;
  top: 56px; /* Top original */
  /*left: calc(250px + 8px + 8px);*/
  right: 8px;
  bottom: 8px;
  background-color: var(--background-color);
  overflow-y: scroll;
  box-shadow: inset 0px 2px 4px #0000006b;
  border-radius: 16px;
  transition: left 0.3s ease-in-out; /* Transição acompanha o aside */
  z-index: 9;
}

html[data-theme="dark"] .container {
    /*background: linear-gradient(to bottom, var(--background-color), rgb(17, 17, 17));*/
    background-color: #212121;
    box-shadow: 0px 0px 0px 1px #ffffff2a;
}

.container::-webkit-scrollbar {
  display: none;
}
.container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr minmax(auto, 800px) 1fr;
  gap: 10px;
  margin: 0 10px;
  justify-content: center;
}

.content-section {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.content-section.active-content {
  display: flex;
}

.main-content {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px 10px;
  /* overflow: hidden; -> Removido para scroll do container funcionar */
}

.main-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 4px 4px var(--primary-color);
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
}

html[data-theme="dark"] .main-title {
  background-color: rgb(17, 17, 17);
}

.main-title::after {
    content: "";
    position: absolute;
    top: calc(0 * var(--borderWidth));
    left: calc(0 * var(--borderWidth));
    height: calc(100% + var(--borderWidth) * 1);
    width: calc(100% + var(--borderWidth) * 1);
    background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
    border-radius: calc(4 * var(--borderWidth));
    z-index: -1;
    animation: animatedgradient 3s ease alternate infinite;
    background-size: 300% 300%;
}

/*----- LÓGICA DO MENU LATERAL (SIDEBAR) -----*/

/* Estado Recolhido - CORRIGIDO */
aside.recolhido {
  width: 56px;
}

aside.recolhido .bar {
  padding: 8px;
  align-items: center;
}

aside.recolhido .menu {
  flex-direction: column;
  align-items: center;
  gap: 10px; /* Ajustado gap */
}

/* --- Lógica de Toggle dos Ícones do Menu --- */

/* 1. Por padrão (menu expandido), esconde o ícone 'recolhido' (outline) */
.toggle-menu-btn .icon-recolhido {
  display: none;
}

/* 2. E mostra o ícone 'expandido' (filled) */
.toggle-menu-btn .icon-expandido {
  display: block;
}

/* 3. Quando o <aside> tiver a classe .recolhido */
aside.recolhido .toggle-menu-btn .icon-recolhido {
  display: block; /* Mostra o ícone 'recolhido' (outline) */
}

aside.recolhido .toggle-menu-btn .icon-expandido {
  display: none; /* Esconde o ícone 'expandido' (filled) */
}

aside.recolhido .logo {
  display: none;
}

aside.recolhido .ad-sidebar.ad-sidebar-aside,
aside.recolhido .sidebar-card-gradient {
  /* sidebar-card-gradient incluído aqui */
  display: none;
  opacity: 0;
  pointer-events: none;
}

.tools::-webkit-scrollbar {
  display: none;
}

.tools {
  display: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

aside.recolhido .tools {
  display: flex; /* Muda para flexbox */
  flex-direction: column; /* Empilha verticalmente */
  align-items: center; /* Centraliza */
  justify-content: end; /* Alinha no topo */
  gap: 8px; /* Espaçamento entre botões */
  width: 100%; /* Largura total do .bar */

  position: absolute;
  bottom: 8px;
  left: 0px;
}

aside.recolhido .menu_list {
  display: flex; /* Muda para flexbox */
  flex-direction: column; /* Empilha verticalmente */
  /*align-items: center;*/
  justify-content: flex-start; /* Alinha no topo */
  gap: 8px; /* Espaçamento entre botões */
  width: 100%; /* Largura total do .bar */
  height: auto; /* Altura automática */
  overflow-y: auto; /* Scroll se necessário */
}

aside.recolhido .menu_list::-webkit-scrollbar {
  display: none;
}

aside.recolhido .menu_list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

aside.recolhido .menu_list .toggle-calendar-popup-btn,
aside.recolhido .menu_list .toggle-calc-popup-btn {
  display: none;
}

aside.recolhido .tools button {
  /* Estilo unificado para botões recolhidos */
  height: 40px; /* Tamanho fixo */
  width: 40px;
  min-height: 40px;
  padding: 0; /* Remove padding */
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1; /* Garante quadrado */
}

aside.recolhido .menu_list button {
  /* Estilo unificado para botões recolhidos */
  height: 40px; /* Tamanho fixo */
  width: 40px;
  min-height: 40px;
  padding: 0; /* Remove padding */
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1; /* Garante quadrado */
}

aside.recolhido .menu_list button svg {
  height: 24px;
  width: 24px;
}

aside.recolhido .menu_list #toggle-calc-popup-btn,
aside.recolhido .menu_list #toggle-calendar-popup-btn {
  display: none;
}

/* (Fim das correções do Aside Recolhido) */

/*----- HEADER -----*/
header .logo_0 {
  color: white;
  display: flex;
  align-items: center;
  height: 100%;
}

/* --- ESTILO DOS LOGOS DINÂMICOS --- */
.logo_0 svg,
.logo svg {
  display: none; /* Esconde todos os logos por padrão */
  height: 32px; /* <-- AJUSTADO PARA A ALTURA DO SEU NOVO SVG */
  width: 192px; /* Deixa a largura se ajustar à altura */
  max-width: 100%; /* Garante que não vai transbordar */
  
  transition: opacity 0.3s ease;
  color: currentColor;
}

/* Mostra o logo de orçamento por padrão (antes do JS rodar) */
.logo_0 .logo-orcamento,
.logo .logo-orcamento {
  display: block;
}

.menu svg {
  width: 192px;
}

@media (min-width: 1199.98px) {
  header .logo_0 svg {
    opacity: 0;
    transition: opacity 0.3s ease;
  }
}

/* Generaliza as regras de opacidade do header */
/*header .logo_0 svg {
     opacity: 0; 
     transition: opacity 0.3s ease;
}*/

.header-actions {
  display: none;
}
.more {
  display: flex;
  align-items: center;
  gap: 10px;
}
#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  display: flex;
  color: white;
}
#theme-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}
#theme-toggle:hover svg {
  transform: scale(1.1) rotate(15deg);
}

/*----- ASIDE (MENU LATERAL) - GERAL -----*/
.bar {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--background-color);
  box-shadow: inset 0px 0px 4px #0000006b;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  gap: 8px;
  transition: padding 0.3s ease-in-out;
  border-radius: 16px;
}

html[data-theme="dark"] .bar {
    background-color: rgb(17, 17, 17);
    /*border: 1px solid var(--border-color);*/
    box-shadow: 0px 0px 0px 1px #ffffff2a;
}
.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  
}
.toggle-menu-btn {
  cursor: pointer;
  color: var(--primary-color);
  background: none;
  border: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  display: flex;
  
}
.toggle-menu-btn .icon {
  height: 32px;
  width: 32px;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: start;
  color: var(--primary-color);
  height: 100%;
  
  overflow: hidden;
}
/*.logo-orcamento { height: 18px;  transition: opacity 0.3s ease; }*/
.menu-holder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  
}

/* --- LÓGICA DE EXIBIÇÃO DO DOWNBAR E ÍCONES --- */

/* 1. Estado Padrão (Menu visível) */
/* Esconde o ícone 'up' por padrão */
.downbar .toggle-downbar-btn .icon-tabler-chevron-compact-up {
  display: none;
}
/* Mostra o ícone 'down' por padrão */
.downbar .toggle-downbar-btn .icon-tabler-chevron-compact-down {
  display: block;
}

/* Mostra o ícone 'up' */
.downbar.menu-oculto .toggle-downbar-btn .icon-tabler-chevron-compact-up {
  display: block;
}

/* Esconde o ícone 'down' */
.downbar.menu-oculto .toggle-downbar-btn .icon-tabler-chevron-compact-down {
  display: none;
}

/* (Opcional) Ajusta o layout do downbar quando o menu está oculto */

.downbar.menu-oculto .menu_list {
  transition: ease-in-out 0.3s;
  height: 0;
}

.arrow svg {
  height: 32px;
  width: 32px;
  color: var(--primary-color);
  display: inline-block;
  transition: transform 0.2s ease;
}

html[data-theme="dark"] .arrow svg {
  color: var(--primary-color);
}

/* animação */
@keyframes bounceY {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(5px);
  }
}

/* efeito no hover */
.arrow svg {
  animation: bounceY 0.6s ease-in-out infinite;
}

@media (min-width: 1200px) {
  .downbar {
    display: none;
  }
}

@media (min-width: 1199.98px) {
  .downbar {
    display: none !important;
  }
}

@media (max-width: 1199.98px) {
  .container {
    border-radius: 8px 8px 24px 24px;
  }
  .downbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background-color: var(--background-color);
    box-shadow: 0px 0px 12px rgb(0 0 0 / 27%);
    transition: transform ease-in-out 0.3s;
    z-index: 1000;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid var(--border-color);
  }

  .downbar .menu_list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
    overflow-y: auto;
    
    height: 80px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
  }

  .downbar .menu_list button {
    padding: 0;
  }

  .downbar .menu_list svg {
    height: 24px;
    width: 24px;
  }
}

#chat-widget-container {
  transition: bottom ease-in-out 0.3s;
}

@media (max-width: 768px) {
  .menu_list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
    overflow-y: auto;
    
    height: 80px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
  }

  .downbar .menu_list button {
    padding: 0;
  }

  .downbar .menu_list svg {
    height: 24px;
    width: 24px;
  }

  #chat-widget-container {
    bottom: 156px;
    left: 8px;
  }

  body.menu-oculto-ativo #chat-widget-container {
    bottom: 80px !important;
    transition: bottom ease-in-out 0.3s !important;
  }

  html[data-theme="dark"] .container::before {
    content: "";
    content: "";
    position: fixed;
    background: linear-gradient(to top, black, rgb(0 0 0 / 35%), transparent);
    height: 300px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    border-radius: 0 0 24px 24px;
    z-index: 1000000;
    pointer-events: none;
  }

  .container::before {
    content: "";
    content: "";
    position: fixed;
    background: linear-gradient(to top, #f8f9fa, transparent 80%);
    height: 300px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    border-radius: 0 0 24px 24px;
    z-index: 1000000;
    pointer-events: none;
  }
}

.menu_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 8px;
  overflow-y: auto;
  
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.menu_list::-webkit-scrollbar {
  display: none;
} /* Scrollbar original oculta */
.menu_list {
  scrollbar-width: none;
  -ms-overflow-style: none;
} /* Scrollbar original oculta */

/* Botões link/calc no menu superior (estado recolhido) */
.menu a,
.menu .calc {
  height: 32px;
  width: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
  
}
.menu a svg,
.menu .calc svg {
  height: 80%;
  width: 80%;
}
.menu a:hover,
.menu .calc:hover {
  background-color: #6f42c142;
}
aside.recolhido .menu a,
aside.recolhido .menu .calc {
  display: flex;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
  
  margin-top: auto;
}
.contact a {
  text-decoration: none;
  color: var(--primary-color);
}

/* --- SEU CSS ORIGINAL RESTAURADO --- */
.ad-sidebar-aside {
  display: flex;
  align-items: center;
  position: absolute;
  justify-content: center;
  height: 100px !important;
  width: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  
  background-color: #e9ecef;
  border: 1px dashed #ced4da;
  border-radius: 8px;
  color: #6c757d;
  text-align: center;
}
/* --- FIM DA RESTAURAÇÃO --- */

/* Card de Anúncio Aside - SEUS ESTILOS ORIGINAIS RESTAURADOS */
.sidebar-card-gradient {
  --borderWidth: 3px;
  /*position: relative;*/
  border: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-color);
  padding: 16px 8px;
  background-color: transparent !important; /* Seu original */
  transition: ease-in-out 0.3s;
  /*z-index: 999999;*/
  overflow: clip;
  box-sizing: border-box;
  border-radius: 8px; /* Adicionado p/ consistência */
  margin-top: auto; /* Empurra para baixo */
  
}
.sidebar-card-gradient:hover .money-hold {
  transform: scale(1.2); /* Seu original */
}
.sidebar-card-gradient .money_1 {
  font-size: 0.9em;
  opacity: 0.9;
  text-align: center;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  transition: ease-in-out 0.3s;
}
.sidebar-card-gradient .money_1 svg {
  color: currentColor;
  max-width: 100%;
  height: auto;
}
.sidebar-card-gradient .money_2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.95em;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 4px 0;
  border-radius: 8px;
  transition: ease-in-out 0.3s;
}
.sidebar-card-gradient .money_2:hover {
  border: 1px solid var(--border-color); /* Seu original */
}
.sidebar-card-gradient .money_2 svg {
  color: currentColor;
}
.sidebar-card-gradient .money-hold {
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
}
/* FIM DOS ESTILOS ORIGINAIS DO CARD */

/*----- BLOCOS DE ANÚNCIO (ADS) -----*/
.ad-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  background-color: #e9ecef;
  border: 1px dashed #ced4da;
  border-radius: 8px;
  color: #6c757d;
}
/*.ad-block-top { position: sticky; top: 0; z-index: 5; }*/ /* Restaurado .ad-block-top */
.ad-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: calc(100vh - 148px);
  position: sticky;
  top: 40px;
  bottom: 40px;
  background-color: #e9ecef;
  border: 1px dashed #ced4da;
  border-radius: 8px;
  color: #6c757d;
  text-align: center;
}
.ad-sidebar-left {
  grid-column: 1 / 2;
  justify-self: end;
}
.ad-sidebar-right {
  grid-column: 3 / 4;
  justify-self: start;
}

/*----- CONTEÚDO PRINCIPAL E CARDS -----*/
.card, .section-card {
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 4px 4px var(--primary-color);
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.section-card:focus-within {
  box-shadow: 0 0 0 3px var(--primary-color);
  border-color: #a166ab;
}

.has-focus .section-card:not(:focus-within):not(.announcement) {
  box-shadow: 4px 4px rgba(111, 66, 193, 0.4);
}

.item-block:focus-within {
  box-shadow: 0 0 8px var(--primary-color);
  /*border-color: #a166ab;*/
}

.announcement {
  text-align: center;
  box-shadow: none;
}

.announcement h1 {
  margin-top: 0;
  font-size: 1.5em;
  margin-bottom: 0.5em;
}
.announcement p {
  margin-bottom: 0.5em;
  font-size: 0.9em;
}
.form-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.announcement {
    border-radius: 16px !important;
}
.gradient-border {
  --borderWidth: 5px;
  position: relative;
  border-radius: var(--borderWidth);
}
.gradient-border:after {
    content: "";
    position: absolute;
    top: calc(0 * var(--borderWidth));
    left: calc(0 * var(--borderWidth));
    height: calc(100% + var(--borderWidth) * 1);
    width: calc(100% + var(--borderWidth) * 1);
    /*top: calc(-1 * var(--borderWidth));
    left: calc(-1 * var(--borderWidth));
    height: calc(100% + var(--borderWidth) * 2);
    width: calc(100% + var(--borderWidth) * 2);*/
    background: linear-gradient(
        60deg,
        #f79533,
        #f37055,
        #ef4e7b,
        #a166ab,
        #5073b8,
        #1098ad,
        #07b39b,
        #6fba82
    );

    border-radius: calc(4 * var(--borderWidth));
    z-index: -1;
    animation: animatedgradient 3s ease alternate infinite;
    background-size: 300% 300%;
}

@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/*----- COMPONENTES DO FORMULÁRIO -----*/
fieldset {
  /*border: 1px solid var(--border-color);*/
  border: none;
  border-radius: 6px;
  margin: 0;
  padding: 72px 12px 16px 12px; /* Reduziu padding lateral de 16px para 12px */
  overflow: hidden; /* Impede overflow dos filhos */
  position: relative;
}

fieldset .input-group:first-of-type,
fieldset .input-group:nth-of-type(2) {
  margin-top: 8px;
}

fieldset .item-block:first-of-type {
  margin-top: 8px;
}

legend {
    /* padding: 0 10px; */
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    background-color: #6f42c142;
    border-radius: 8px;
    padding: 8px;
    /* width: 100%; */
    /* align-self: center; */
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* position: absolute; */
    /* right: 0; */
    /* margin-top: 24px; */
    position: absolute;
    top: 16px;
}

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

label {
  font-size: 0.9em;
  font-weight: 500;
  /*color: var(--primary-color);*/
  margin-bottom: 2px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1em;
  background-color: #fff;
  color: var(--text-color);
  width: 100%;
}
input[type="color"] {
    padding: 8px;
    height: 46px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  cursor: pointer;
  background-color: transparent;
  overflow: hidden;
}
input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}
input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
}

/* Estilos do Input com Select (para desconto) */
.input-with-select {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.input-with-select input[type="text"] {
  flex: 1;
  min-width: 60px;
}

.input-with-select select.discount-type-select {
  padding: 10px 5px;

  
  border: 1px solid var(--border-color);
  font-size: 1em;
  background-color: #f8f9fa;
  box-sizing: border-box;
}
html[data-theme="dark"] .input-with-select select.discount-type-select {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--border-color);
}

textarea {
  resize: vertical;
  min-height: 60px;
}
.phone-input-wrapper {
  display: flex;
  gap: 5px;
}

.select-group {
  display: flex;
  gap: .5rem;
}

.phone-ddi {
  min-width: 6rem;
  width: auto;
  
  padding: 10px 5px;
}
.phone-number {
  
}
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 8px 0;
  width: 100%;
}

/* --- SEU CSS ORIGINAL RESTAURADO --- */
.pdf-options-grid {
  display: flex;
  /*flex-direction: column;*/
  flex-wrap: wrap;
  align-items: start;
  justify-content: start;
}
.pdf-options-grid .input-group {
  
  min-width: 200px;
}

.pdf-options-grid input#sua-assinatura {
  color: transparent;
}

.pdf-options-grid input#seu-logo {
  color: transparent;
}

/* --- FIM DA RESTAURAÇÃO --- */

/* Input file */
input[type="file"] {
  color: transparent;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
}

.custom-file-wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: start;
}

#cv-foto {
  display: none; /* 👈 esconde o input real */
}

input[type="file"] {
  display: none; /* 👈 esconde o input real */
}

/*.custom-file-label {
  background: #eee;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.custom-file-label:hover {
  background: #ddd;
}*/

.custom-file-label {
    position: relative;
    cursor: pointer;
}

.custom-file-label button {
    background-color: var(--primary-color);
    color: white;
    width: auto;
    max-width: 150px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    pointer-events: none;
    text-align: center;
    transition: all 0.2s;
    margin-right: 8px;
    box-shadow: 4px 4px rgba(111, 66, 193, 0.2);
    font-weight: 600;
}

.custom-file-label:hover button {
  background-color: #5a2d9c;
  transform: translate(3px, 3px);
  box-shadow: none;
}

.file-name-display {
  font-size: 0.9em;
  color: #666;
}
input[type="file"]::before {
  content: "Escolher Arquivo";
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  transition: all 0.2s;
}
input[type="file"]:hover::before {
  background-color: #5a2d9c;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
}
.file-name-display {
  color: var(--secondary-color);
  font-size: 0.85em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1.5px dashed var(--primary-color);
  padding: 4px 6px;
  border-radius: 4px;
}

.divider {
  border: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--border-color), transparent);
  border-image-slice: 1; /* necessário para aplicar o gradiente */
  margin: 20px 0;
}

/* =================================================== */
/* ========== NOVO LAYOUT DO ITEM (Duas Linhas) ========== */
/* =================================================== */

.item-block {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  position: relative; /* Para o 'X' */
  transition: ease-in-out .3s;

  max-width: 100%; /* Garante que não exceda o pai */
  overflow: hidden; /* Oculta qualquer excesso interno */
  margin-bottom: 16px;
}

/* Linha 1: Nome e Botão Remover */
.item-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-nome {
    margin-right: 32px;
}

.item-row-top .remover-item-btn {
    position: absolute;
    top: 8px;
    right: 2px;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
}

.remover-item-btn svg {
    box-shadow: 2px 2px rgb(193 66 66 / 40%);
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.remover-item-btn svg:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px transparent;
}

/* Linha 2: Detalhes (Qtd, Valor, Desconto, Subtotal) */
.item-row-bottom {
  display: flex;

  flex-wrap: wrap;
  gap: 8px 12px; /* Gap menor para caber mais */
  max-width: 100%;
}

.item-row-bottom .item-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 80px; /* Reduziu de 100px para telas pequenas */

  flex: 1 1 80px; /* Flex mais controlado: grow, shrink, basis */
}

.item-row-bottom .item-detail label {
  font-size: 0.8em;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 0;
}

.item-row-bottom .item-qtd {
  width: 100%;
  text-align: right;
  padding: 8px;
}

.item-row-bottom .item-valor {
  width: 100%;
  text-align: right;
  padding: 8px;
}

.item-row-bottom .item-desconto-wrapper {
  min-width: 100px; /* Reduziu de 120px */
  flex: 1 1 100px;
  align-items: start;
}

.item-row-bottom .item-desconto-wrapper .input-with-select input {
  text-align: right;
  padding: 8px;
}

.item-row-bottom .input-with-select select {
  padding: 10px 5px;
  width: 100%;
  flex: 1;
  border: 1px solid var(--border-color);
  font-size: 1em;
  background-color: #f8f9fa;
  box-sizing: border-box;
}

/* Wrapper do Subtotal */
.item-subtotal-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: auto;
  text-align: right;
  padding-left: 10px;

  min-width: 90px; /* Garante espaço fixo pro subtotal */
   /* Não encolhe */
}

.item-subtotal-wrapper label {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0;
}

.item-subtotal-wrapper .item-subtotal {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--primary-color);
  white-space: nowrap; /* Garante que o R$ 0,00 não quebre */
}

html[data-theme="dark"] .item-subtotal-wrapper .item-subtotal {
  color: #fff;
}

/* Linha 3: Opções Adicionais (Cor, Tamanho, etc.) - Estilos Originais */
.item-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--border-color), transparent);
  border-image-slice: 1; /* necessário para aplicar o gradiente */
}
/* Linha 4: Textarea - Estilo Original */
.item-info-adicional {
  width: 100%;
  margin-top: 0;
  font-size: 0.9em;
}

/* Estilos de .input-group-inline e filhos (mantidos do seu original) */
.input-group-inline {
  display: flex;
  gap: 5px;
}
.input-group-inline label {
  white-space: nowrap;
  font-size: 0.9em;
  margin-bottom: 0;
  font-weight: 400;
  color: var(--secondary-color);
}
.input-group-inline select {
  width: auto;
  padding: 5px;
  font-size: 0.9em;
  height: 30px;
}
.input-group-inline input[type="color"] {
  width: 100%;
  min-width: 4rem;
  flex: 1;
  height: 30px;
  padding: 4px 6px;
}
.ou-text {
  font-size: 0.9em;
  color: #6c757d;
}

/* =================================================== */
/* ========== FIM DO NOVO LAYOUT DO ITEM ========== */
/* =================================================== */

/* Estilos do Desconto Global */
.desconto-global-container {
    display: flex;
    align-items: center !important;
    justify-content: end;
  margin-top: 16px;
  align-items: end;
}

.desconto-global-container label {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 600;
}

.desconto-global-container .input-group {
  max-width: 300px;
  justify-self: start;
}
.desconto-global-container .input-with-select input#desconto-global {
  text-align: right;
  min-width: 100px;
}
.desconto-global-container .input-with-select select#desconto-global-tipo {
  width: 100%;
}

.total-container strong {
    font-size: 1.4em;
    padding: 4px 16px;
    border: 4px solid #6f42c142;
    border-radius: 12px;
    display: block;
    margin-top: 16px;
}

.total-container {
  text-align: right;
  margin-top: 20px;
  font-size: 1.2em;
  color: var(--primary-color);
}

.btn-primary,
.btn-secondary {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 4px 4px rgba(111, 66, 193, 0.4);
}

.btn-tool {
  box-shadow: 4px 4px rgba(111, 66, 193, 0.4);
}

.btn-tool:hover, .btn-primary:hover, .btn-secondary:hover {
    transform: translate(3px, 3px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  font-size: 1.1em;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.btn-primary:hover {
  background-color: #5a2d9c;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-secondary:hover, .btn-tool:hover {
  background-color: #5a2d9c;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
}

.preview-img {
  max-width: 200px;
  max-height: 200px;
  margin-top: 10px;
  display: none;
  border: 1px dashed var(--border-color);
  padding: 5px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .preview-img {
    max-width: 100%;
    max-height: 100%;
  }
}

/* Input date - Estilo original mantido */
input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.removedor-opcoes label {
    font-size: 1em;
    max-width: 248px;
}

input[type="date"] {
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0px 12px;
  font-size: 1.2em;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  filter: invert(0.5) sepia(1) saturate(5) hue-rotate(230deg);
  transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.8;
  color: white;
}

html[data-theme="dark"]
  input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

html[data-theme="dark"]
  input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
}

@media (max-width: 480px) {
  fieldset {
    padding: 72px 8px 16px 8px;
  }

  .input-with-select {
    flex-direction: column;
    align-items: start;
  }

  .item-row-bottom {
    flex-direction: column;
  }
  
  .item-row-bottom {
    gap: 6px 8px;
  }
  
  .item-row-bottom .item-detail {
    min-width: 70px;
  }
}

/*----- ESTILOS PARA CALCULADORA E CALENDÁRIO POPUP (DENTRO DO CONTAINER) -----*/

/* Esconde os containers por padrão */
#calculator-popup-container,
#calendar-popup-container {
  position: fixed; /* Posicionamento relativo ao .container */
  bottom: 16px;
  right: 16px; /* Ou left: 8px; */

  z-index: 1000;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transform-origin: center; /* Ou bottom left */
  pointer-events: none; /* Não interage quando escondido */
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  box-sizing: border-box;
}

.calendar-widget-total,
.dica {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0px 2px 4px var(--box-shadow-color);
  overflow: hidden; /* Para garantir bordas arredondadas */
  padding: 8px;
  box-sizing: border-box;

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

.calendar-tip {
    padding: 8px;
}

html[data-theme="dark"] .calendar-widget-total, html[data-theme="dark"] .dica {
    background-color:rgb(17, 17, 17);
}

/* Mostra o popup quando a classe .visible é adicionada via JS */
#calculator-popup-container.visible,
#calendar-popup-container.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto; /* Permite interação quando visível */
}

/* Ajustes específicos para o modo escuro, se necessário */
/*html[data-theme="dark"] #calculator-popup-container,
html[data-theme="dark"] #calendar-popup-container {
    background-color: #252a33;
    border-color: var(--border-color);
}*/

/*html[data-theme="dark"] #calculator-popup-container {
    background-color: #252a33;
    border-color: var(--border-color);
}*/

/* Adaptações internas (opcional, dependendo do conteúdo) */

#calendar-popup-container.sidebar-calendar-widget {
  /* Se precisar de estilos específicos para o calendário DENTRO do popup */
  /* width: 100%;*/
  /*padding: 0;*/
}

/* Ajusta o tamanho da fonte do dia atual dentro do popup */
#calendar-popup-container .large-day {
  font-size: 3.5em; /* Um pouco menor para caber melhor */
}
#calendar-popup-container .day-counter {
  font-size: 0.75em;
}
#calendar-popup-container .day-count #day-count-display {
  font-size: 1.6em;
}

.hoje {
    display: flex;
    flex-direction: column;
    width: 30%;
    padding: 4px 16px;
    border: 4px solid #6f42c142;
    border-radius: 12px;
}

.hoje .today {
    font-size: 0.7em;
    color: var(--secondary-color);
    margin-top: 4px;
    font-weight: 600;
}
/*----- COMPONENTE: CALCULADORA -----*/
.calculator-container {
  padding: 10px 0;
  margin: 16px 0;
  border-top: 1px solid #6f42c142;
  border-bottom: 1px solid #6f42c142;
  
}
.calculator {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0px 2px 4px var(--box-shadow-color);
  width: 100%;;
}
.calculator-display {
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: 1.7em;
  padding: 10px;
  text-align: right;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  min-height: 1.5em;
}
.calculator-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-gap: 4px;
  padding: 8px;
  background-color: var(--background-color);
}
.calculator-keys button {
  padding: 8px;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  background-color: #6f42c142;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: "Poppins", sans-serif;
  min-height: 40px;
}
.calculator-keys button:hover {
  background-color: #f0f0f0;
}
.key--operator {
  background-color: #f1f1f1;
  color: var(--primary-color);
  font-weight: 500;
}
.key--equal {
  grid-row: span 2;
  background-color: var(--primary-color);
  color: var(--primary-color);
}
.key--equal:hover {
  background-color: #5a2d9c;
}
.key--zero {
  grid-column: span 2;
}


/*----- TEMA DARK MODE -----*/
html[data-theme="dark"] {
  --primary-color: #8a63d2;
  --secondary-color: #8c9299;
  --text-color: #e2e2e2;
  --border-color: #ffffff2a;
  --box-shadow-color: #0000002a;
  /*--background-color: #1a1d24;*/
  /*--background-color: rgb(17, 17, 17);*/
  --background-color: rgb(17, 17, 17);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .section-card {
  /*background: #252a33;*/
  background: rgb(17, 17, 17);
  border-color: var(--border-color);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background-color: transparent;
  border-color: var(--border-color);
  color: white;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #8c9299;
}
html[data-theme="dark"] legend {
  color: var(--primary-color);
}
html[data-theme="dark"] .item-block {
  border-color: var(--border-color);
}
html[data-theme="dark"] .item-subtotal-wrapper .item-subtotal {
  color: #fff;
} /* Corrigido para novo layout */
html[data-theme="dark"] .ad-block,
html[data-theme="dark"] .ad-sidebar {
  background-color: rgb(17, 17, 17);
  border-color: var(--border-color);
  color: #6c757d;
}
html[data-theme="dark"] .calculator-container {
  border-top-color: var(--border-color);
  border-bottom-color: var(--border-color);
}
html[data-theme="dark"] .calculator-display {
  background-color: rgb(17, 17, 17);
  color: #fff;
}
html[data-theme="dark"] .calculator-keys {
  background-color: rgb(17, 17, 17);
}
html[data-theme="dark"] .calculator-keys button {
  background-color: #6f42c142;
  color: var(--text-color);
}
html[data-theme="dark"] .calculator-keys button:hover {
  background-color: var(--primary-color);
}
html[data-theme="dark"] .key--operator {
  background-color: #252a33;
  color: var(--primary-color);
}
html[data-theme="dark"] .key--equal {
  background-color: var(--primary-color);
  color: white;
}
html[data-theme="dark"] .key--equal:hover {
  background-color: #5a2d9c;
}
html[data-theme="dark"] .downbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background-color: rgb(17, 17, 17);
  box-shadow: 0px 0px 12px rgb(0 0 0 / 27%);
  border: 1px solid var(--border-color);
}

.arrow {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 32px;
}

.toggle-downbar-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

html[data-theme="dark"] .downbar-btn {
  color: var(--secondary-color);
}
html[data-theme="dark"] .downbar-btn.active-tool-btn {
  color: var(--primary-color);
}
html[data-theme="dark"] .modal-content {
  background-color: #252a33;
}
html[data-theme="dark"] .custom-file-wrapper input[type="file"]::before {
  background-color: var(--primary-color);
  color: white;
}
html[data-theme="dark"] .custom-file-wrapper input[type="file"]:hover::before {
  background-color: #5a2d9c;
}
html[data-theme="dark"] .file-name-display {
  color: #adb5bd;
}
html[data-theme="dark"] .btn-primary {
  background-color: var(--primary-color);
}
html[data-theme="dark"] .btn-primary:hover {
  background-color: #5a2d9c;
}
html[data-theme="dark"] .btn-secondary {
  background-color: var(--primary-color);
}
html[data-theme="dark"] .btn-secondary:hover {
  background-color: #5a2d9c;
}
html[data-theme="dark"] select {
  color: var(--text-color);
  border-color: var(--border-color);
}
html[data-theme="dark"] .sidebar-card-gradient {
  background-color: #4b317b96;
} /* Seu original restaurado */
html[data-theme="dark"] .item-row-bottom .item-detail label {
  color: var(--secondary-color);
} /* Garante cor da label no dark mode */

/* --- ESTILOS DO VISUALIZADOR DE PDF --- */
#pdf-embed-container {
  width: 100%;
  height: 600px; /* Altura do visualizador */
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Para conter o embed */
}
#pdf-embed-container embed,
#pdf-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
html[data-theme="dark"] #pdf-embed-container {
  background-color: rgb(17, 17, 17);
}
.actions-container-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
.actions-container-preview.top {
  justify-content: flex-start; /* Alinha "Voltar" à esquerda */
  margin-top: 0;
  margin-bottom: 16px;
}
.actions-container-preview.bottom {
  justify-content: flex-end; /* Alinha "Baixar/Imprimir" à direita */
}
/* Botão Voltar */
#voltar-para-edicao-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color) !important;
  width: auto; /* Largura automática */
  max-width: 250px; /* Largura máxima */
}
#voltar-para-edicao-btn:hover {
  background-color: var(--primary-color);
}
/* Botões Baixar/Imprimir */
#baixar-pdf-preview-btn,
#imprimir-pdf-preview-btn {
  max-width: 100% !important;
  width: 100% !important; /* Largura automática */
}

/* Ajuste mobile */
@media (max-width: 768px) {
  #pdf-embed-container {
    height: 500px;
  }
  .actions-container-preview.bottom {
    flex-direction: column;
    align-items: stretch;
  }
  #voltar-para-edicao-btn,
  #baixar-pdf-preview-btn,
  #imprimir-pdf-preview-btn {
    max-width: 100%;
  }

  aside {
    display: none !important;
  }

  input[type="date"] {
    min-height: 48px;
  }
}

/*----- MEDIA QUERIES (RESPONSIVIDADE) -----*/
@media (max-width: 1199.98px) {
    aside {
        display: none !important;
    }

    header {
        left: 8px;
        right: 8px;
        width: auto;
        height: 40px;
    }

    header .logo_0 .logo-orcamento {
        opacity: 1;
    }
    
    .header-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .container {
        left: 8px;
        right: 8px;
        top: 56px;
    }

    html[data-theme="dark"] .container::before {
        content: "";
        content: "";
        position: fixed;
        background: linear-gradient(to top, black, rgb(0 0 0 / 35%), transparent);
        height: 150px;
        bottom: 8px;
        left: 8px;
        right: 8px;
        border-radius: 0 0 24px 24px;
        z-index: 1000000;
        pointer-events: none;
    }

    .container::before {
        content: "";
        content: "";
        position: fixed;
        background: linear-gradient(to top, #f8f9fa, transparent 80%);
        height: 300px;
        bottom: 8px;
        left: 8px;
        right: 8px;
        border-radius: 0 0 24px 24px;
        z-index: 1000000;
        pointer-events: none;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 5px 136px 5px;
    }
    .ad-sidebar {
        display: none;
    }
    .main-content {
        grid-column: 1 / -1;
        padding: 16px 5px;
    }
}

/* Desktop (>= 1200px) */
/* Desktop (>= 1200px) */
@media (min-width: 1200px) {

  /* 1. Define o layout PADRÃO (expandido) em desktop */
  header,
  .container {
    left: 272px; /* 250px + 8px + 8px */
  }

  /* 2. Define o layout RECOLHIDO (para o clique E para o load) */
  html.aside-recolhido header,
  aside.recolhido + header,
  html.aside-recolhido .container,
  aside.recolhido ~ .container {
    left: 72px; /* 56px + 8px + 8px */
  }

  /* O resto das suas regras originais desta media query */
  body:has(aside.recolhido) header .logo_0 svg {
    opacity: 1;
  }
  .cat {
    display: none;
  }
  body:has(aside.recolhido) .sidebar-card-gradient {
    display: none;
  }
  aside:not(.recolhido) #toggle-calendar-popup-btn {
    display: none !important;
  }
  aside:not(.recolhido) #toggle-calc-popup-btn {
    display: none !important;
  }
} 
/* Mobile (<= 768px) */
@media (max-width: 767.98px) {
  #calendar-popup-container,
  #calculator-popup-container {
    bottom: 120px;
    top: 120px;
    right: 120px;
    left: 120px;
  }

  .cat,
  .outer {
    display: none !important;
  }
  .container {
    bottom: 8px;
    top: 56px;
    border-radius: 8px 8px 24px 24px;
  } /* Top ajustado para 56px header */
  .main-content {
    padding: 16px;
    gap: 20px;
  }
  .ad-block-top {
    position: static;
  }
  /* Downbar */
  .downbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background-color: var(--background-color);
    box-shadow: 0px 0px 12px rgb(0 0 0 / 27%);
    transition: transform ease-in-out 0.3s;
    z-index: 1000;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 16px;
  }
  .downbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 0.7em;
    cursor: pointer;
    padding: 5px;
    flex: 1;
    text-align: center;
  }
  .downbar-btn svg {
    width: 24px;
    height: 24px;
  }
  .downbar-btn.active-tool-btn {
    color: var(--primary-color);
  }
  /* Ajustes Formulário */
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* LAYOUT DO ITEM EM MOBILE (Layout de 2 linhas adaptado) */
  .item-row-top {
    position: relative;
  }

  .remover-item-btn {
    top: -2px !important;
    right: -8px !important;
  }
  .item-row-bottom {
    gap: 10px; /* Espaçamento mais simples para mobile */
  }
  .item-row-bottom .item-detail {
    min-width: 120px;
    flex-basis: 45%; /* Tenta colocar 2 por linha */
  }
  .item-subtotal-wrapper {
    flex: 1; /* Subtotal ocupa a própria linha no final */
    margin-left: 0;
    padding-top: 5px;
  }
  /* Fim do layout mobile do item */

  .item-options-row {
    gap: 8px 10px;
  }
  .input-group-inline select,
  .input-group-inline input[type="color"] {
    padding: 4px 6px;
    height: 28px;
  }

  .btn-primary {
    max-width: 100%;
    font-size: 1em;
  }
  .actions-container {
    gap: 20px;
  }
  .share-buttons {
    justify-content: center;
  }
  .btn-share {
    padding: 8px 12px;
    font-size: 0.8em;
  }
  .btn-share .icon {
    width: 16px;
    height: 16px;
  }
  /* Modal */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-content {
    background-color: var(--background-color);
    padding: 8px;
    border-radius: 8px;
    width: 90%;
    max-width: 300px;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }
  .modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
  }
  /* Ferramentas */
  .tool-card {
    padding: 12px;
  }
  .conversor-botoes {
    gap: 5px;
  }
  .btn-tool {
    padding: 6px 10px;
    font-size: 0.8em;
  }
  .tempo-container {
    flex-direction: column;
    gap: 16px;
  }
  .tempo-bloco {
    min-width: 0;
    padding: 10px;
  }
  .tempo-display {
    font-size: 1.6em;
  }
  .galeria-simbolos {
    gap: 5px;
    padding: 8px;
  }
  .simbolo-copiavel {
    font-size: 1.3em;
    padding: 4px 6px;
  }

  /* Desconto global no mobile */
  .desconto-global-container .input-group {
    max-width: 100%;
  }

  #chat-widget-container {
    bottom: 156px !important;
    left: 8px !important;
  }

  body.menu-oculto-ativo #chat-widget-container {
    bottom: 80px !important;
  }
}

/* Modal Geral (Tablet+) */
@media (min-width: 768px) {
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-content {
    background-color: var(--background-color);
    padding: 8px;
    border-radius: 8px;
    width: auto;
    min-width: 280px;
    max-width: 300px;
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }
  .modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
  }
}

/*----- Estilos para o Container de Ações de Envio -----*/
.actions-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9em;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  background-color: var(--primary-color);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 4px 4px rgba(111, 66, 193, 0.4);
}

.btn-share .icon {
  width: 18px;
  height: 18px;
}
.btn-share:hover {
  background-color: #5a2d9c;
  color: white;
  transform: translate(3px, 3px);
  box-shadow: 0px 0px rgba(111, 66, 193, 0.4);
}
html[data-theme="dark"] .btn-share {
  color: var(--text-color);
  border-color: var(--text-color);
}
html[data-theme="dark"] .btn-share:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

@media (max-width: 1199.98px) {
  #toggle-calc-popup-btn,
  #toggle-calendar-popup-btn {
    display: none;
  }

  #chat-widget-container {
    bottom: 156px !important;
    left: 8px !important;
  }

  body.menu-oculto-ativo #chat-widget-container {
    bottom: 80px !important;
  }
}

@media (min-width: 1200px) {
    body:has(aside:not(.recolhido)) #chat-widget-container {
        left: 272px !important;
        transition: left 0.3s ease-in-out, bottom 0.3s ease-in-out;
    }

    body:has(aside.recolhido) #chat-widget-container {
        left: 80px !important;
        transition: left 0.3s ease-in-out, bottom 0.3s ease-in-out;
    }
}

body #chat-widget-container .lc-wacpfd .edvz03i2 {
    border: 1px solid #ffffff2a !important; 
}


/* =========================================================================
   =================== ESTILOS DAS NOVAS FERRAMENTAS =======================
   ========================================================================= */
.tool-card fieldset {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contador-resultados {
  display: flex;
  justify-content: space-around;
  background-color: var(--background-color);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 0.9em;
}
.contador-resultados p {
  margin: 0;
  color: var(--secondary-color);
}
.contador-resultados span {
  font-weight: 500;
  color: var(--text-color);
}

html[data-theme="dark"] .contador-resultados span {
  color: var(--text-color);
}
.conversor-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.btn-tool {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-family: inherit;
  font-size: 0.9em;
  border: none;
}

html[data-theme="dark"] .btn-tool:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
.btn-copy {
  margin-top: 10px;
  align-self: flex-end;
  width: 100%;
}
.btn-copy-color {
  margin-top: 5px;
  font-size: 0.8em;
  padding: 5px 10px;
}
#lorem-ipsum-output {
  font-style: italic;
  color: var(--secondary-color);
}
html[data-theme="dark"] #lorem-ipsum-output {
  color: #a0a8b1;
}
.removedor-opcoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9em;
  margin-bottom: 10px;
}
.removedor-opcoes label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-color);
  font-weight: normal;
  cursor: pointer;
}
html[data-theme="dark"] .removedor-opcoes label {
  color: var(--text-color);
}
.comparador-output {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  min-height: 100px;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 8px;
  background-color: var(--background-color);
  font-family: monospace;
  white-space: pre-wrap;
  overflow-x: auto;
}

.comparador-output span {
  display: inline;
}
.comparador-output span[style*="lightgreen"] {
  background-color: rgba(144, 238, 144, 0.5);
}
.comparador-output span[style*="#ffc0cb"] {
  background-color: rgba(255, 192, 203, 0.5);
  text-decoration: line-through;
}
html[data-theme="dark"] .comparador-output span[style*="lightgreen"] {
  background-color: rgba(0, 100, 0, 0.7);
  color: #c8ffc8;
}
html[data-theme="dark"] .comparador-output span[style*="#ffc0cb"] {
  background-color: rgba(139, 0, 0, 0.7);
  color: #ffdddd;
}
.conversor-unidade-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.conversor-unidade-linha input[type="number"] {
  flex: 1;
  min-width: 80px;
}
.conversor-unidade-linha select {
  flex-basis: 150px;
}
.conversor-unidade-linha span {
  font-weight: bold;
  font-size: 1.2em;
}
#unit-output-value {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1em;
  min-width: 100px;
  text-align: right;
  padding-right: 5px;
}
.gerador-senha-opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  font-size: 0.9em;
  margin: 10px 0;
}
.gerador-senha-opcoes div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gerador-senha-opcoes input[type="number"] {
  width: 60px;
  padding: 5px;
}
.gerador-senha-opcoes label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-color);
  font-weight: normal;
  cursor: pointer;
}
html[data-theme="dark"] .gerador-senha-opcoes label {
  color: var(--text-color);
}
#senha-gerada {
  font-family: monospace;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 5px;
}
.qrcode-container {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 190px;
  padding: 8px;
  border: 1px solid var(--border-color);
  background-color: white;
  border-radius: 8px;
}
.qrcode-container canvas,
.qrcode-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.qrcode-container canvas {
    border-radius: 16px;
}

#download-qrcode-link {
  display: flex;
  align-items: center;
  justify-content: center;
}
.seletor-cores-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#color-picker-input {
  width: 100px;
  height: 100px;
  border: none;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  background-color: transparent;
  overflow: hidden;
}
#color-picker-input::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}
#color-picker-input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}
.cores-resultados {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.color-pick-type {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.color-pick-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.cores-resultados .input-group, .cores-resultados button {
  gap: 2px;
  margin-top: 0 !important;
  width: 100%;
}


.cores-resultados input {
  font-family: monospace;
  font-size: 0.9em;
  padding: 8px;
}
.tempo-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}
.tempo-bloco {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  gap: 10px;
}
.tempo-bloco h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-weight: 500;
}
.tempo-display {
  font-family: monospace;
  font-size: 2em;
  font-weight: bold;
  color: var(--text-color);
  background-color: var(--background-color);
  padding: 5px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);

  text-align: center;
}

.tempo-botoes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.tempo-input input {
  text-align: center;
}

.galeria-simbolos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  justify-content: center;
}

.simbolo-copiavel {
  font-size: 1.5em;
  padding: 5px 8px;
  border-radius: px;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;
  border: 1px solid transparent;
}
.simbolo-copiavel:hover {
  background-color: #e9ecef;
}
.simbolo-copiavel.copiado-feedback {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

html[data-theme="dark"] .simbolo-copiavel:hover {
  background-color: #3a414e;
}
html[data-theme="dark"] .simbolo-copiavel.copiado-feedback {
  background-color: var(--primary-color);
  color: white;
}

/* --- Estilos para Spans Informativos --- */
.hover-info-span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: none;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
}
.hover-info-span.visible {
  display: block;
  opacity: 1;
}
html[data-theme="dark"] .hover-info-span {
  background-color: rgba(255, 255, 255, 0.8);
  color: #1a1d24;
}

/* --- Estilos UNIFICADOS para Botões Sidebar (Estado Expandido e Base) --- */
.menu_list button, .tools button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  border-radius: 12px;
  background-color: #6f42c142;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}
.menu_list button:hover {
  background-color: var(--primary-color);
  color: white;
}

.tools button:hover {
  background-color: var(--primary-color);
  color: white;
}

.menu_list button svg {
  height: 32px;
  width: 32px;
  color: var(--primary-color);
  transition: transform 0.3s ease-in-out;
}
.menu_list button:hover svg {
  transform: scale(1.1) rotate(-10deg);
  color: white;
}

.tools button svg {
  transition: transform 0.3s ease-in-out;
}
.tools button:hover svg {
  transform: scale(1.1) rotate(-10deg);
}

.menu_list button.active-tool-btn {
  background-color: var(--primary-color);
  color: white;
}
.menu_list button.active-tool-btn svg {
  color: white;
}

/*----- ESTILOS PARA CALCULADORA E CALENDÁRIO POPUP (DENTRO DO CONTAINER) -----*/

/*----- COMPONENTE: CALENDÁRIO SIDEBAR -----*/
.sidebar-calendar-widget {
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  
}

@media (min-width: 1200px) {
    .sidebar-calendar-widget, .calculator-popup {
        width: 328px;
    }
}

@media (max-width: 1199.98px) {
    .sidebar-calendar-widget {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        padding-top: 164px !important;
        padding-bottom: 252px !important;
        padding-inline: 16px;
        background-color: transparent;
        backdrop-filter: blur(50px);
    }

    .calculator-popup {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        padding-top: 164px !important;
        padding-bottom: 252px !important;
        padding-inline: 16px;
        background-color: transparent;
        backdrop-filter: blur(50px);
    }
    .calendar-widget-total {
        height: 100%;
    }

    .calendar-grid .day-cell {
        height: 100% !important;
    }
    /*.dica {
        height: 30%;
    }*/

    .calendar-grid {
        height: 100%;
    }

    .hoje {
        display: flex;
        flex-direction: row;
        gap: 16px;
        align-items: center;
        justify-content: space-between;
    }

    .hoje .today {
        font-size: 1.5em;
    }

    .calculator {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .calculator-keys {
            height: 100%;
        }
    }

    .popup-close-btn {
        top: 120px !important;
        right: 16px !important;
    }
}

@media (max-width: 768px) {
    .sidebar-calendar-widget {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        padding-top: 164px !important;
        padding-bottom: 252px !important;
        padding-inline: 16px;
        background-color: transparent;
        backdrop-filter: blur(50px);
    }

    .calculator-popup {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        padding-top: 164px !important;
        padding-bottom: 252px !important;
        padding-inline: 16px;
        background-color: transparent;
        backdrop-filter: blur(50px);
    }

    .hoje {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .hoje .today {
        font-size: 1em;
    }

    .dica {
        height: 30%;
    }

    .calendar-grid {
        height: 100%;
    }

    .calculator {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .calculator-keys {
            height: 100%;
        }
    }

    .popup-close-btn {
        top: 120px !important;
        right: 16px !important;
    }
}

@media (max-height: 550px) {
    .calculator-popup, sidebar-calendar-widget {
        display: none !important;
    }
    
    .downbar .menu_list {
        grid-template-columns: repeat(6, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
    }

    .downbar .toggle-calc-popup-btn, .downbar .toggle-calendar-popup-btn {
        display: none !important;
    }
}

@media (max-width: 1199px), (max-height: 550px) {
    .calculator-popup {
        display: none;
    }

    .sidebar-calendar-widget {
        display: none;
    }
    
    .downbar .menu_list {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .downbar .toggle-calc-popup-btn, .downbar .toggle-calendar-popup-btn {
        display: none;
    }
}



@media (min-width: 493px), (max-height: 946px) {
    .calculator-popup, .sidebar-calendar-widget {
        display: flex;
    }
    .downbar .menu_list {
        grid-template-columns: repeat(7, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .downbar .toggle-calc-popup-btn, .downbar .toggle-calendar-popup-btn {
        display: block;
    }
}

@media (min-width: 1199.98px), (min-height: 746px) {
    .sidebar-calendar-widget {
        padding-top: 120px !important;
        padding-bottom: 252px !important;
        padding-inline: 16px;
    }

    .calendar-grid {
        overflow-y: scroll !important;
    }

    .day-cell {
        height: 32px !important;
    }

    .calendar-grid::-webkit-scrollbar {
        display: none;
    }

    .calendar-grid {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .calculator-popup {
        padding-top: 120px !important;
        padding-bottom: 252px !important;
        padding-inline: 16px;
    }

    .popup-close-btn {
        top: 80px !important;
        right: 16px !important;
    }
}

@media (min-width: 1203px) {
    .sidebar-calendar-widget {
        padding-top: 120px !important;
        padding-bottom: 0px !important;
        padding-inline: 0px !important;
    }

    .calculator-popup {
        padding-top: 120px !important;
        padding-bottom: 0px !important;
        padding-inline: 0px;
    }

    .popup-close-btn {
        top: 80px !important;
        right: 16px;
    }
}

@media (min-width: 1203px) {
    .popup-close-btn {
        top: 80px !important;
        right: 0px !important;
    }
}

.calendar-display {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px;
  gap: 16px;
}

.large-day {
  font-size: 5em;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  font-family: "Poppins", sans-serif;
}

.day-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.8em;
    color: var(--secondary-color);
    height: -webkit-fill-available;
    justify-content: space-between;
    width: 60%
}

.day-count {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
#day-count-display {
  font-size: 3em !important;
  font-weight: 500;
  color: var(--text-color);
}
.display-text-count {
  display: flex;
  flex-direction: column;
  align-items: start;
}
html[data-theme="dark"] #day-count-display {
  color: white;
}
.counter-label {
  font-size: 1em;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 600;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calendar-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: var(--primary-color);

  border-radius: 4px;
}
.calendar-header button:hover {
  background-color: #6f42c142;
}
#month-year-display {
  font-weight: 500;
  font-size: 0.9em;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7em;
  color: white;
  background-color: #6f42c142;
  font-weight:  500;
  padding: 2px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0 2px;
}
.calendar-grid .day-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: clamp(0.5rem, 5vw, 1.5rem);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
  box-sizing: border-box;
}
.calendar-grid .day-cell:hover {
  background-color: #e9ecef;
}
html[data-theme="dark"] .calendar-grid .day-cell:hover {
  background-color: var(--primary-color);
}
.calendar-grid .other-month {
  color: #adb5bd;
  cursor: default;
  pointer-events: none;
}
html[data-theme="dark"] .calendar-grid .other-month {
  color: #495057;
}
.calendar-grid .today {
  font-weight: 700;
  border: 1px solid var(--primary-color);
}
.calendar-grid .selected {
  background-color: var(--primary-color);
  color: white !important;
  font-weight: 700;
}
.calendar-grid .in-range {
  background-color: #daceef;
  color: #333;
}
html[data-theme="dark"] .calendar-grid .in-range {
  background-color: #4e3a75;
  color: white;
}
.calendar-grid .range-start {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.calendar-grid .range-end {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.calendar-grid .selected.range-start.range-end {
  border-radius: 4px;
}

.info-text {
  font-size: 1em;
  color: black;
  margin: 0;
  text-transform: uppercase
}

html[data-theme="dark"] .info-text {
  color: var(--primary-color);
}


.btn-clear-calendar {
    background-color: #6f42c142;
    border: none;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%; 
    display: block;
    transition: all 0.2s;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
}
.btn-clear-calendar:hover {
  background-color: var(--primary-color);
  color: white;
}
html[data-theme="dark"] .btn-clear-calendar {
  color: var(--primary-color);
}
html[data-theme="dark"] .btn-clear-calendar:hover {
  background-color: var(--primary-color);
  color: white;
}

.holder {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}
.info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 24px;
    padding: 16px;
    border: 1px dashed #6f42c142;
    border-radius: 16px;
    text-align: center;
    background-color: var(--primary-color);
    box-shadow: 4px 4px rgba(111, 66, 193, 0.4);
}

.info-box .info-text {
    color: white;
    text-transform: none;
}

html[data-theme="dark"] .info-box .info-text {
    color: white;
}

html[data-theme="dark"] .info-box {
    border: 1px dashed #6f42c142;
}

body.loading aside,
body.loading header,
body.loading .container {
  transition: none !important;
}

/* Estilos para os blocos dinâmicos do formulário de CV */

/* ============================================================= */
/* == CSS Específico para Habilidades e Idiomas (Corrige Bug) == */
/* ============================================================= */

/* --- Correção para Datalist Bug (Habilidades/Idiomas) --- */

.cv-item-block .cv-course-end,
.cv-item-block .cv-course-start,
.cv-item-block .cv-employment-start,
.cv-item-block .cv-employment-end,
.cv-item-block .cv-education-start,
.cv-item-block .cv-education-end {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 10px;
  font-size: 1em;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  width: 100%;
}

.cv-test {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 16px;
}

/* 1. Altera o layout do card SÓ para Habilidades/Idiomas */
.cv-item-block.cv-item-block-rating {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

/* 2. Define o layout do wrapper interno (que só existe em Habilidades/Idiomas) */
.cv-item-block-rating .cv-item-content-wrapper {
   /* Ocupa o espaço */
  display: flex;
  flex-direction: column;
  gap: 10px; /* Gap vertical entre os inputs */
}

/* 3. Tira o botão 'X' do 'position: absolute' SÓ aqui */
.cv-item-block.cv-item-block-rating .cv-remove-btn {
  
  line-height: 1;
}

.cv-rating-bar {
  display: flex;
  height: 16px;
  gap: 5px;
  align-items: center;
  width: 100%;
  /*margin-top: 5px;*/
}

.cv-rating-bar .rating-dot {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cv-rating-bar:hover .rating-dot {
  background-color: #6f42c142; /* Sua cor de hover */
}

html[data-theme="dark"] .cv-rating-bar:hover .rating-dot {
  background-color: var(--primary-color); /* Sua cor de hover */
}

.cv-rating-bar .rating-dot:hover ~ .rating-dot {
  background-color: #e0e0e0; /* Cor padrão (light mode) */
}

html[data-theme="dark"] .cv-rating-bar .rating-dot:hover ~ .rating-dot {
  background-color: #444; /* Cor padrão (light mode) */
}


/*-----*/

.cv-skill-name-group {
  
}

.cv-skill-rating-group {
  min-width: 150px;
  flex-grow: 0;
}

/*------*/

#cv-employment-container .input-group {

  justify-content: space-between;
}

/*----*/

.cv-item-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

.cv-item-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.cv-item-row .input-group {
  flex: 1;
}

.cv-remove-btn {
  position: absolute;
  background-color: transparent;
  border: 0.5px solid var(--border-color);
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  font-size: 1.2em;
  line-height: 1;
  padding: 5px;
  right: 2.5px;
  top: 2.5px;
}

.cv-remove-btn svg {
    box-shadow: 2px 2px rgb(193 66 66 / 40%);
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.cv-remove-btn svg:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px transparent;
}

/* Estilos para a barra de 5 pontos (formulário) */

html[data-theme="dark"] .cv-rating-bar .rating-dot {
  background-color: #444;
}

.cv-rating-bar.rating-1 .rating-dot:nth-child(-n + 1),
.cv-rating-bar.rating-2 .rating-dot:nth-child(-n + 2),
.cv-rating-bar.rating-3 .rating-dot:nth-child(-n + 3),
.cv-rating-bar.rating-4 .rating-dot:nth-child(-n + 4),
.cv-rating-bar.rating-5 .rating-dot:nth-child(-n + 5) {
  background-color: var(--primary-color);
}

/*------*/

/* --- Estilos do Verificador de Senha (CORRIGIDO) --- */

.senha-forca-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.senha-forca-bar-container {
  
  /* CORREÇÃO 1: Permite que o container da barra encolha */
  min-width: 0;
  height: 8px;
  background-color: #e9ecef; /* Cor de fundo (cinza claro) */
  border-radius: 4px;
  overflow: hidden;
}

.senha-forca-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

#senha-forca-texto {
  font-weight: 700;
  font-size: 0.9rem;
  
}

/* CORREÇÃO 2: Cores da Barra e do Texto (com valores fixos) */
.senha-forca-bar.fraca {
  background-color: #dc3545;
}
#senha-forca-texto.fraca {
  color: #dc3545;
}

.senha-forca-bar.media {
  background-color: #fd7e14;
}
#senha-forca-texto.media {
  color: #fd7e14;
}

.senha-forca-bar.forte {
  background-color: #0d6efd;
}
#senha-forca-texto.forte {
  color: #0d6efd;
}

.senha-forca-bar.muito-forte {
  background-color: #198754;
}
#senha-forca-texto.muito-forte {
  color: #198754;
}

/* CORREÇÃO 3: Lista de Sugestões com ícones SVG */
.senha-forca-sugestoes {
  list-style: none;
  padding-left: 24px; /* Aumenta o espaço para o ícone */
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-color-secondary);
}

.senha-forca-sugestoes li {
  position: relative;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Ícone Padrão (X) */
.senha-forca-sugestoes li::before {
  content: "";
  position: absolute;
  left: -24px; /* Alinha com o novo padding */
  top: 2px;
  width: 16px;
  height: 16px;
  background-color: #dc3545; /* Vermelho (cor do X) */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;

  /* SVG do "X" */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6l-12 12'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6l-12 12'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
}

/* Ícone de Sucesso (✓) */
.senha-forca-sugestoes li.sugestao-ok {
  color: #198754; /* Verde */
}

.senha-forca-sugestoes li.sugestao-ok::before {
  background-color: #198754; /* Verde */

  /* SVG do "Check" */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E");
}


/* Transição suave para a mudança de estilo */
.section-card {
  transition: box-shadow 0.3s ease-in-out;
}

/* Estilo do card quando um campo DENTRO dele está em foco */

/* scroll: */
.container {
  scroll-behavior: smooth;
  /*scroll-snap-type: y mandatory;*/
  scroll-padding: 24px 0;
}

/*.section-card, .announcement {
  scroll-snap-align: center;
}*/

/* ======================================== */
/* === CSS DO BOTÃO DE FECHAR POPUP === */
/* ======================================== */

.popup-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  z-index: 10;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  width: 32px;
  height: 32px;
  padding: 0;
  
  background-color: transparent;
  border: none;
  border-radius: 50%;
  color: var(--danger-color);
  
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-close-btn:hover {
  background-color: rgba(220, 53, 69, 0.1); /* Fundo vermelho fraco */
  transform: scale(1.1);
}

.popup-close-btn svg {
  width: 20px;
  height: 20px;
}

/*----*/

/* Estilos base (inalterados) */
.clock-holder {
    position: fixed;
    right: 16px;
    top: 64px;
    z-index: 99999;
    
}

@media (max-width: 1200px) {
    .clock-holder {
        display: none;
    }
}

#app {
  align-items: center;
  display: flex;
  justify-content: center;
  
}

#app #timer {
  background: linear-gradient(to bottom right, #6f42c142, var(--primary-color));
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
    box-shadow: 0px 0px 12px #6f42c142;
}

#app #timer #timer-text {
  align-items: center;
  background-color: var(--background-color); /* Fundo dinâmico */
  border-radius: 14px;
  display: flex;
  box-sizing: border-box;
  padding: 0 8px;
  justify-content: center;
  overflow: clip;

}

#app #timer #timer-text .timer-char {
  height: 60px;
  position: relative;
  text-align: center;
  width: 36px;
  box-sizing: border-box;
}

#app #timer #timer-text .timer-char.colon {
  color: var(--text-color); /* Cor dinâmica */
  font-size: 2.3em;
  line-height: 60px;
}

#app #timer #timer-text .timer-char .timer-char-slider {
  display: flex;
  flex-direction: column;
  left: 0;
  position: absolute;
  top: 0;
  transition: top 200ms;
  width: 100%;
  height: 60px;
}

#app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option {
  color: var(--text-color); /* Cor dinâmica */
  font-size: 1.2em;
  height: 60px;
  line-height: 60px;
  opacity: 0; /* Opacidade para números inativos */
  transition: opacity 400ms, font-size 400ms, color 400ms;
  width: 100%;
  box-sizing: border-box;
  filter: blur(0.5px);
}

#app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option.active {
  font-size: 2em;
  opacity: 1;
  color: var(--primary-color); /* Cor de destaque para light-mode */
  font-weight: bold;
}

/* Regras do Dark Mode (inalteradas) */
html[data-theme="dark"] #app #timer #timer-text {
  background-color: rgb(17, 17, 17); /* Fundo escuro original */
}

html[data-theme="dark"] #app #timer #timer-text .timer-char.colon {
  color: #fff; /* Garante que os ":" sejam brancos */
}

html[data-theme="dark"] #app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option.active {
  color: #fff; /* Cor de destaque para dark-mode */
}

html[data-theme="dark"] #app #timer {
  box-shadow: 0px 0px 12px  rgb(0 0 0 / 35%);
  background: linear-gradient(to bottom right, rgba(2, 99, 225, 1), rgba(235, 24, 54, 1));
}


/* Estilização das Novas Seções de Conteúdo */
.text-content {
    padding: 1.5rem;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

.text-content h2 {
    font-family: 'Poppins', sans-serif;
    color: #6F42C1; /* Cor padrão do seu DocFácil */
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.text-content h3 {
    font-family: 'Poppins', sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.text-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

.text-content ul {
    margin-bottom: 1rem;
    list-style-type: none; /* Mantendo o estilo limpo do seu site */
}

.text-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

/* Pequeno detalhe visual na lista para combinar com o tema */
.text-content ul li::before {
    content: "•";
    color: #6F42C1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Ajuste para as seções respeitarem a lógica de exibição do seu script.js */
.content-section {
    display: none; /* Escondido por padrão */
}

.content-section.active-content {
    display: flex; /* Só mostra a que tiver a classe ativa */
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo para links dentro do texto, caso você adicione algum futuramente */
.text-content a {
    color: #6F42C1;
    text-decoration: underline;
    font-weight: 500;
}

/* Responsividade para telas menores */
@media (max-width: 600px) {
    .text-content {
        padding: 1rem;
    }
    .text-content h2 {
        font-size: 1.2rem;
    }
}

/* ==================== MEDIA QUERIES (Com alterações) ==================== */



@media (max-width: 1199.98px) {
    .clock-holder {
        display: none;
    }

    /* Regras de tamanho adicionadas */
    #app {
      max-width: 220px;
    }
    #app #timer #timer-text {
      border-radius: 14px;
      max-width: 220px;
    }
    #app #timer #timer-text .timer-char {
      height: 36px;
      width: 22px;
    }
    #app #timer #timer-text .timer-char.colon {
      font-size: 1.3em;
      line-height: 36px;
    }
    #app #timer #timer-text .timer-char .timer-char-slider {
      height: 36px;
    }
    #app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option {
      font-size: 0.9em;
      height: 36px;
      line-height: 36px;
    }
    #app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option.active {
      font-size: 1.5em;
    }
}


@media (max-width: 768px) {
  .clock-holder {
        display: none;
    }
}

@media (max-width: 800px) {
  #app {
    max-width: 220px;
  }
  #app #timer {
    border-radius: 16px;
  }
  #app #timer #timer-text {
    border-radius: 14px;
    max-width: 220px;
  }
  #app #timer #timer-text .timer-char {
    height: 36px;
    width: 22px;
  }
  #app #timer #timer-text .timer-char.colon {
    font-size: 1.3em;
    line-height: 36px;
  }
  #app #timer #timer-text .timer-char .timer-char-slider {
    height: 36px;
  }
  #app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option {
    font-size: 0.9em;
    height: 36px;
    line-height: 36px;
  }
  #app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option.active {
    font-size: 1.5em;
  }
}

@media (max-width: 400px) {
  #app {
    max-width: 150px;
  }
  #app #timer {
    border-radius: 8px;
  }
  #app #timer #timer-text {
    border-radius: 6px;
    max-width: 150px;
  }
  #app #timer #timer-text .timer-char {
    height: 22px;
    width: 12px;
  }
  #app #timer #timer-text .timer-char.colon {
    font-size: 0.8em;
    line-height: 22px;
  }
  #app #timer #timer-text .timer-char .timer-char-slider {
    height: 22px;
  }
  #app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option {
    font-size: 0.55em;
    height: 22px;
    line-height: 22px;
  }
  #app #timer #timer-text .timer-char .timer-char-slider .timer-char-slider-option.active {
    font-size: 1em;
  }
}

.footer {
  background: linear-gradient(135deg, #6f42c1 0%, #5a2d9c 100%);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
  font-family: 'Inter', sans-serif;
  border-radius: 16px;
}

.footer-container {
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-section h3, .footer-section h4 {
  color: white;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-section h3 { font-size: 1.4em; }
.footer-section h4 { font-size: 1.1em; }

.footer-section p, .footer-section ul {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 8px;
  font-size: 1.2em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 20px;
}

.footer-bottom-content {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.9;
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.legal-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  text-decoration: none;
  color: white;
  opacity: 0.9;
}

footer .footer-section button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links a {
    margin: 0 10px;
  }
}

/* Estilização específica para o select do Pix e seletores similares */
select#pix-tipo, 
.section-card select, 
.input-with-select select {
    appearance: none; /* Remove a seta padrão do sistema */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Adiciona uma nova seta via background-image */
    /* Você pode trocar a cor no 'stroke' abaixo (%236F42C1 é o seu roxo) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236F42C1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    
    /* Aqui é onde você define o 'padding' da seta */
    /* 12px da direita e centralizado verticalmente */
    background-position: right 12px center; 
    background-size: 18px;
    
    /* Padding interno do texto para não colidir com a nova seta */
    padding-right: 40px !important; 
    
    cursor: pointer;
}

/* Ajuste para o modo escuro (Dark Mode) */
[data-theme='dark'] select#pix-tipo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
}

/* Estilização Geral de Selects para corrigir as opções e o padding da seta */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    
    /* Padding lateral para o texto e espaço para a seta */
    padding-left: 12px !important;
    padding-right: 40px !important; 
    
    /* Seta customizada com sua cor primária */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238a63d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    
    /* No Light Mode, usamos suas variáveis originais */
    background-color: #fff !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    opacity: .5 !important; /* Garante que o campo não herde opacidades nativas */
}

/* Mantendo suas variáveis para as opções no Light Mode */
select option {
    background-color: #fff !important;
    color: var(--text-color) !important;
}

/* AJUSTE PARA DARK MODE: Mantendo suas variáveis e apenas corrigindo a sintaxe */
html[data-theme="dark"] select {
    background-color: var(--background-color) !important; 
    color: var(--text-color) !important;
    /* Seta Branca para contraste no Dark Mode */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Garante que o menu suspenso (options) no Dark Mode use suas variáveis */
html[data-theme="dark"] select option {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}