html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
}

/* Submenu estilo */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -0.1rem;
        display: none;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }


.btn {
    margin: 5px;
}

/* Minhas personalizações*/
/********* Personalizações da cor do Menu ************************/


[data-bs-theme="light"] .navbar-custom .navbar-brand,
[data-bs-theme="light"] .navbar-custom .nav-link {
    color: black !important;
}

/* Hover com tom mais claro */
/*[data-bs-theme="light"] .navbar-custom .nav-link:hover {
        color: #d4f5d4 !important;
    }*/


[data-bs-theme="dark"] .navbar-custom .navbar-brand,
[data-bs-theme="dark"] .navbar-custom .nav-link {
    color: white !important;
}

/* Hover com tom mais escuro */
/* [data-bs-theme="dark"] .navbar-custom .nav-link:hover {
        color: #d4f5d4 !important;
    }*/

/* Fundo verde no tema claro */
[data-bs-theme="light"] .navbar-custom {
    background-color: #e3f2fd !important; /* azul claro */
}

/* Fundo escuro padrão no tema escuro */
[data-bs-theme="dark"] .navbar-custom {
    background-color: #212529 !important; /* fundo escuro padrão */
}

/* Estilo para tema Claro */
[data-bs-theme="light"] input[readonly].form-control {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}

/* Estilo para tema Escuro */
[data-bs-theme="dark"] input[readonly].form-control {
    background-color: #2b3035 !important; /* Um cinza mais destacado no dark mode */
    border-color: #495057 !important;
    color: #adb5bd !important; /* Deixa o texto um pouco opaco para dar ideia de bloqueado */
    cursor: not-allowed;
}


label.is-invalid {
    border: 1px solid #dc3545; /* mesma cor da borda de input inválido */
    border-radius: 0.375rem; /* arredondamento igual ao form-control */
    padding: 0.375rem 0.75rem; /* espaço interno parecido com input */
}

/****************Interruptor checkbox**********************/
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px;
}

    .slider::before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #4CAF50;
}

    input:checked + .slider::before {
        transform: translateX(24px);
    }

.fieldset-bootstrap {
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

    .fieldset-bootstrap legend {
        float: none;
        width: auto;
        padding: 0 .75rem;
        margin-left: .5rem;
        color: var(--bs-body-color);
        font-size: 1rem;
        font-weight: 600;
    }

/***************************************************/


/* Ajustes de responsividade */
@media (max-width: 992px) {
    .dropdown-submenu .dropdown-menu {
        left: 0;
        top: 100%;
    }
}