/* CSS for the custom spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .custom-spinner {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
  
    /* Position the spinner in the center of the screen */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Ensure it is on top of other elements */
  }
  
/* CSS for the custom button */
.cssbuttons-io {
  position: relative;
  font-family: inherit;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 0.8em;
  cursor: pointer;
  border: none;
  background: #f0f3fa; /* Cor de fundo padrão do botão */
  color: black; /* Cor do texto */
  overflow: hidden;
  width: 80px; /* Largura fixa para todos os botões */
  height: 30px; /* Altura do botão */
  text-align: center; /* Centraliza o texto horizontalmente */
  display: flex; /* Flexbox para centralização vertical */
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  margin-left: 10px; /* Espaço entre a imagem e o botão */
  transition: background 0.4s, color 0.1s; /* Transições suaves para as mudanças de cor */
}

.cssbuttons-io span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Garante que o span ocupe toda a largura do botão */
}

.cssbuttons-io::before,
.cssbuttons-io::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cssbuttons-io::before {
  content: "";
  background: #e8e8e8;
  color: white; /* Cor do texto ao passar o mouse */
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover {
  background: #1a4931; /* Cor de fundo ao passar o mouse */
  color: white; /* Cor do texto ao passar o mouse */
}

.cssbuttons-io:hover::before {
  transform: translate3d(100%, 0, 0);
}

.cssbuttons-io:active {
  transform: scale(0.95);
}

.setting-btn {
  width: 45px;
  height: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: rgb(129, 110, 216);
  border-radius: 10px;
  cursor: pointer;
  border: none;
  box-shadow: 0px 0px 0px 2px rgb(212, 209, 255);
}
.bar {
  width: 50%;
  height: 2px;
  background-color: rgb(229, 229, 229);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px;
}
.bar::before {
  content: "";
  width: 2px;
  height: 2px;
  background-color: rgb(126, 117, 255);
  position: absolute;
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.3s;
  box-shadow: 0px 0px 5px white;
}
.bar1::before {
  transform: translateX(-4px);
}
.bar2::before {
  transform: translateX(4px);
}
.setting-btn:hover .bar1::before {
  transform: translateX(4px);
}
.setting-btn:hover .bar2::before {
  transform: translateX(-4px);
}

/* html.Button(className='setting-btn', children=[
      html.Span(className='bar bar1'),
      html.Span(className='bar bar2'),
      html.Span(className='bar bar1')
  ]), */


.my-button {
    transition: all 0.3s ease; /* Adiciona uma transição suave para a mudança de estilo */
}

/* Estilo para o botão quando o mouse está em cima (hover) */
.my-button:hover {
    color: black; /* Cor verde */
    border-color: black;
}

.login-button {
  transition: all 0.3s ease; /* Adiciona uma transição suave para a mudança de estilo */
}

/* Estilo para o botão quando o mouse está em cima (hover) */
.login-button:hover {
  transform: scale(1.01); /* Aumenta o tamanho do botão em 10% */
}

.hover-pointer {
  cursor: pointer;
}

.custom-tooltip {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.custom-tooltip-body {
  padding: 5px;
}

.custom-tooltip-item {
  margin-top: 5px;
  font-size: 12px; /* Define uma fonte menor para todos os itens */
}

.custom-tooltip-label {
  /* font-weight: bold; */
  font-size: 14px; /* Fonte menor para o label também */
  padding: 5px;
}

.custom-tooltip-body {
  border-top: 1px solid #ccc; /* Linha separadora abaixo da data */
  padding-top: 0px; /* Padding igualado ao padding do corpo */
}

.custom-hidden-tooltip {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.custom-hidden-tooltip-body {
  display: none !important;
}

.custom-hidden-tooltip-item {
  display: none !important;
}

.custom-hidden-tooltip-item-color {
  display: none !important;
}

/* Aqui você mantém apenas a data visível */
.custom-hidden-tooltip-label {
  font-size: 14px; /* Fonte menor para o label também */
  padding: 5px;
}


.ag-row:hover .clickable-icon {
  display: flex !important; /* Mostra o ícone quando o mouse está na linha */
}

.clickable-icon {
  display: none; /* Esconde o ícone por padrão */
  justify-content: flex-end;
  width: 20px;
}

.ag-theme-material {
  --ag-header-height: 30px;
  --ag-header-cell-hover-background-color: transparent; /* Remove a cor de fundo no hover */
  --ag-header-cell-moving-background-color: rgb(80, 40, 140);
}

/* .ag-theme-material .ag-header {
  font-family: cursive;
} */

.ag-theme-material .ag-header-group-cell {
  font-weight: bold; /* Deixa os grupos de colunas em negrito */
  font-size: 24px; /* Aumenta um pouco o tamanho */
}

.ag-theme-material .ag-header-cell {
  font-weight: bold; /* Deixa o texto do cabeçalho em negrito */
  font-size: 15px; /* Aumenta um pouco o tamanho */
  color: black;
}

.ag-theme-material .ag-header-cell:hover {
  background-color: transparent !important; /* Garante que o hover não altere a cor */
}

.card-base {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.interactive-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.interactive-card:hover {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.interactive-card:hover h4 {
  color: #2563eb;
}

.interactive-card:active {
  transform: translateY(0px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.interactive-card.selected {
  border-color: var(--accent, #3b82f6);
  background: #f8faff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Tweaked Mantine tab styles – lighter, cleaner, no solid background but clear affordance */

/* Minimal Mantine tab styling – no background, only bottom border */

/* Tab List Container */
.enhanced-tabs .mantine-Tabs-list {
  background: transparent !important;          /* no background color */
  padding: 0 !important;
  margin-bottom: 24px !important;
  border: none !important;
  border-bottom: 1px solid #e9ecef !important; /* single bottom border */
  box-shadow: none !important;                 /* remove shadow */
}

/* Individual Tab Styling */
.enhanced-tabs .mantine-Tabs-tab {
  position: relative !important;
  padding: 12px 20px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  border: none !important;                     /* no surrounding border */
  background: transparent !important;          /* no background */
  color: #6c757d !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
  margin: 0 2px !important;
  line-height: 1 !important;
}

/* Hover – subtle color change */
.enhanced-tabs .mantine-Tabs-tab:hover {
  color: #495057 !important;
}

/* Underline indicator */
.enhanced-tabs .mantine-Tabs-tab::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;                     /* align with container border */
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: #dc3545 !important;              /* accent color */
  transition: width 0.3s ease, left 0.3s ease !important;
}

.enhanced-tabs .mantine-Tabs-tab:hover::after {
  width: 100% !important;
  left: 0 !important;
}

/* Active tab – red underline + accent text */
.enhanced-tabs .mantine-Tabs-tab[data-active="true"] {
  color: #dc3545 !important;
  font-weight: 600 !important;
}

.enhanced-tabs .mantine-Tabs-tab[data-active="true"]::after {
  width: 100% !important;
  left: 0 !important;
}

/* Remove ripple/box‑shadow effects for simpler look */
.enhanced-tabs .mantine-Tabs-tab::before,
.enhanced-tabs .mantine-Tabs-tab:active::before {
  display: none !important;
}

/* Panel Content */
.enhanced-tabs .mantine-Tabs-panel {
  animation: fadeSlide 0.25s ease-out !important;
  background: white !important;
  border-radius: 12px !important;
  padding: 24px !important;
  /* box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e9ecef !important; */
}

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

/* Focus for accessibility */
.enhanced-tabs .mantine-Tabs-tab:focus {
  outline: none !important;
  box-shadow: 0 2px 0 0 #dc3545 !important;    /* small focus ring */
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .enhanced-tabs .mantine-Tabs-tab { padding: 10px 16px !important; font-size: 13px !important; }
  .enhanced-tabs .mantine-Tabs-panel { padding: 20px !important; }
}

@media (max-width: 480px) {
  .enhanced-tabs .mantine-Tabs-tab { padding: 8px 12px !important; font-size: 12px !important; }
}

/* ------------------------------------------- */
/* Utility animation class for any element    */
/* ------------------------------------------- */

.fade-slide-in {
  /* Apply the same animation used on .mantine-Tabs-panel */
  animation: fadeSlide 0.25s ease-out both;    /* 'both' keeps final state */
}

/* Card de Atividade - Único estilo usando accent-color */
.card-atividade {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid;
  border-left-color: var(--accent-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card-atividade:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Layout 4 - Card com sombra colorida */
/* estilos que todo card compartilha */
.card {
  /* ––––– aparência comum ––––– */
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--accent-color) 20%, transparent);

  /* ––––– contornos ––––– */
  border: 1px solid var(--border-neutral, #e0e0e0);   /* todo o perímetro */
  border-left: 3px solid var(--accent-color);         /* sobrepõe só o lado esquerdo */
}

/* card puramente informativo  ─ “não clicável” */
.card--static {
  cursor: default;            /* não dá a dica de clique */
  transition: none;           /* sem animações de hover */
}

/* card que leva a algum lugar  ─ “clicável” */
.card--action {
  cursor: pointer;
  transition: box-shadow .3s ease, transform .3s ease;
}

.card--action:hover,
.card--action:focus-visible {  /* acessibilidade para teclado */
  box-shadow: 0 4px 8px color-mix(in srgb, var(--accent-color) 30%, transparent);
  transform: translateY(-2px);
}

.link-card {
  text-decoration: none;
  color: inherit;
}

/* mantém feedback de foco para acessibilidade */
.link-card:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

.dmc-tabs {
  position: relative;
  margin: 0 !important;
  border: 1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4));
  background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-6));

  &:first-of-type {
    border-radius: 4px 0 0 4px;
  }

  &:last-of-type {
    border-radius: 0 4px 4px 0;
  }

  /* & + & {
    border-left-width: 0;
  } */

  &:hover {
    background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-5));
  }

  &[data-active] {
    z-index: 1;
    background-color: var(--mantine-color-blue-filled);
    border-color: var(--mantine-color-blue-filled);
    color: var(--mantine-color-white);

    &:hover {
      background-color: var(--mantine-color-blue-filled-hover);
    }
  }
}
