:root {
    --custom-primary: #0056b3;
}

body {
    background-color: rgb(245, 243, 243);
    padding-top: 80px;
    /* ajuste conforme altura da navbar */
}

.btn {
    border-radius: 2rem !important;
}

input {
    border-radius: 1rem !important;
}

select {
    border-radius: 1rem !important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    padding: 10px 20px;
    background-color: var(--navbar-bg, #ffffff);
    /* fallback se a var não estiver definida */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.navbar .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 19px;
    padding: 6px 12px;
}

.navbar-admin {
    top: 0px;
}

/* .navbar a {
    margin: 0 10px;
} */

.custom-toggler {
    border: none;
}

.custom-toggler:focus {
    color: green;
}

.custom-toggler:hover {
    color: var(--text-primary);
}

.nav-link {
    transition: background-color 0.3s, color 0.3s;
}

/* Efeito hover */
.nav-link:hover,
.nav-link.active {
    background-color: var(--custom-primary);
    color: white !important;
}

/* Item ativo com background diferente */
.nav-link.active {
    background-color: var(--custom-primary);
    color: white !important;
}

/* Hover de sombra nos itens */
.hover-shadow:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
}

.breadcrumb-item {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.breadcrumb-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--custom-primary);
}

.breadcrumb-item.active {
    color: var(--custom-primary);
}

.breadcrumb-item i {
    font-size: 20px;
    margin-right: 1px;
    color: var(--custom-primary);
}

.breadcrumb-item span {
    font-weight: 500;
}

/* Floating button container */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

/* Main FAB button */
#fab-main {
    width: 56px;
    height: 56px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Hidden options */
.fab-options {
    display: none;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
}

/* Show options on hover or click */
.fab-container:hover #fab-options,
#fab-main:focus+#fab-options {
    display: flex;
}

/* Option buttons padrão */
.fab-options button,
.fab-options a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
    color: #fff;
    transition: transform 0.2s ease;
}

/* Hover suave */
.fab-options button:hover,
.fab-options a:hover {
    transform: scale(1.1);
}

/* Cores distintas por função */
.fab-options .btn-danger {
    background-color: #dc3545;
}

.fab-options .btn-success {
    background-color: #198754;
}

.fab-options .btn-warning {
    background-color: #ffc107;
    color: #000;
}

.fab-options .btn-info {
    background-color: #0dcaf0;
}

.fab-options .btn-dark {
    background-color: #212529;
}

.fab-options .btn-secondary {
    background-color: #6c757d;
}


/* Animação */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Geral - aplica a aparência de um modal Bootstrap */
.swal2-popup {
    font-family: var(--bs-body-font-family, 'Roboto', sans-serif);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

/* Título */
.swal2-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--bs-heading-color, #212529);
    margin-bottom: 1rem;
}

/* Texto */
.swal2-html-container {
    font-size: 1rem;
    color: var(--bs-body-color, #495057);
}

/* Botões */
.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    font-size: 1rem;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    box-shadow: none;
    border: none;
}

/* Botão Confirmar → estilo primário do Bootstrap */
.swal2-confirm {
    background-color: var(--bs-primary);
    color: #fff;
}

.swal2-confirm:hover {
    background-color: var(--bs-primary-hover, #0b5ed7);
}

/* Botão Cancelar → estilo secundário */
.swal2-cancel {
    background-color: var(--bs-secondary);
    color: #fff;
}

.swal2-cancel:hover {
    background-color: var(--bs-secondary-hover, #6c757d);
}

/* Botão Deny → estilo danger */
.swal2-deny {
    background-color: var(--bs-danger);
    color: #fff;
}

.swal2-deny:hover {
    background-color: var(--bs-danger-hover, #c82333);
}

/* Ícones */
.swal2-icon {
    margin-bottom: 1rem;
}

.swal2-icon.swal2-warning {
    color: var(--bs-warning);
    border-color: var(--bs-warning);
}

.swal2-icon.swal2-success {
    color: var(--bs-success);
    border-color: var(--bs-success);
}

.swal2-icon.swal2-error {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
}

button {
    border-radius: 19px !important;
}

.accordion-button {
    border-radius: 0px !important;
}

.nav-link-rounded-hover {
    transition: background-color 0.2s, border-radius 0.2s;
    border-radius: 8px;
    /* valor padrão */
    padding: 0.5rem 1rem;
}

.nav-link-rounded-hover:hover {
    background-color: var(--bs-primary);
    /* leve destaque no hover */
    border-radius: 19px;
}

/* Garante que o calendário ocupe a largura total da tela em dispositivos móveis */
#calendar {
    width: 100%;
    height: auto;
}

/* Ajustes de responsividade para dispositivos móveis */
@media (max-width: 767px) {

    /* Personalize mais a aparência do calendário no mobile, se necessário */
    #calendar {
        margin: 10px;
        padding: 0;
    }
}

.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.transition {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.choices {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    font-size: 16px;
}

.choices__inner {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 1rem !important;
    /* igual ao input do seu CSS */
    min-height: 44px;
    padding: 10px 12px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: text;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--custom-primary);
    /* azul do seu :root */
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
    outline: none;
}

.choices__list--single .choices__item {
    width: 100%;
    color: #212121;
    font-weight: 400;
}

.choices__list--dropdown {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 1rem !important;
    /* borda arredondada */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* sombra suave, como seu padrão */
    /* max-height: 240px; */
    overflow-y: auto;
    padding: 0;
    margin-top: 6px;
    z-index: 1000;
}

.choices__list--dropdown .choices__item--selectable {
    padding: 12px 16px;
    font-size: 14px;
    color: #424242;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list--dropdown .choices__item--selectable:hover {
    background-color: rgba(0, 86, 179, 0.1);
    /* cor com alpha do --custom-primary */
    color: var(--custom-primary);
}

.choices__button:hover,
.choices__button:focus {
    color: var(--custom-primary);
    outline: none;
}

.choices__input {
    border: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-family: inherit;
    color: #212121;
    background: transparent;
    box-shadow: none;
    outline: none;
    border-radius: 0 !important;
}

.choices__placeholder {
    color: #9e9e9e;
    font-style: italic;
}

.choices.is-disabled .choices__inner {
    background-color: #f5f5f5;
    color: #bdbdbd;
    cursor: not-allowed;
}

#suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    background: white;
    width: 200px;
}

#suggestions li {
    padding: 8px;
    cursor: pointer;
}

#suggestions li:hover {
    background-color: #f0f0f0;
}

.dt-button {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

/* 🔧 Ajustes visuais para ficar igual ao form-floating */
.ts-control {
    height: calc(3.5rem + 2px);
    padding-top: 1.625rem !important;
    padding-bottom: 0.625rem !important;
    border-radius: 1rem;
}

.ts-control input {
    padding-top: 0;
}

.ts-wrapper {
    width: 100%;
}

/* animação de piscar */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.blinking {
    animation: blink 1s infinite;
}

:root {
  /* Paleta personalizada */
  --azul: rgb(23, 19, 156);
  --vermelho: rgb(221, 62, 62);
  --amarelo: rgb(255, 165, 31);
  --azul-claro: #C6DCEA;
  --azul-medio: rgb(0, 107, 255);
  --azul-brasao: #2041AA;
  --vermelho-brasao: #ba151b;
  --cinza-claro: #f8fafb;
  --cinza-medio: #e8eef2;
  --cinza-medio2: #C8CCCF;
  --cinza-escuro: #666666;
  --highlight: #E1FE0A;

  /* Sobrescrevendo variáveis do Bootstrap */
  --bs-primary: var(--azul-medio);
  --bs-secondary: var(--cinza-medio2);
  --bs-success: var(--highlight);
  --bs-info: var(--azul-claro);
  --bs-warning: var(--amarelo);
  --bs-danger: var(--vermelho);
  --bs-light: var(--cinza-claro);
  --bs-dark: var(--cinza-escuro);

  /* Opcional: estados de hover ou foco */
  --bs-primary-hover: var(--azul-brasao);
  --bs-danger-hover: var(--vermelho-brasao);

  /* Texto e bordas */
  --bs-body-color: var(--cinza-escuro);
  --bs-border-color: var(--cinza-medio2);
}

.bg-hero {
    background-color: rgb(23, 19, 156);
}