﻿/* ====== Estilo Global ====== */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
}

/*.container-main {
    max-width: 100% !important;
    padding: 0px !important;
    height: calc(100vh - 60px);
}
*/

#containerPrincipal {
    float: right;
    transition: width 0.6s ease-in-out;
}

.container-main {
    max-width: calc(100% - 70px);
    width: calc(100% - 70px);
    padding: 0px !important;
    height: calc(100vh - 60px);
    position: relative;
    top: 60px;
    transition: margin-left 0.3s ease-in-out;
    float: right;
}

.app-sidebar:not(.minimized) + .app-header + .container-main {
    margin-left: 350px; /* Alinhado ao sidebar maximizado */
}

/* ====== Estilizando o Header ====== */
/*.app-header {
    background: #3C8CBD;
    color: white;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}*/

.app-header {
    background: #232C33;
    color: white;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    /*left: 60px;*/ /* Alinhado ao sidebar minimizado */
    right: 0;
    height: 60px;
    transition: left 0.3s ease-in-out; /* Transição suave */
}

.app-sidebar:not(.minimized) + .app-header {
    left: 350px; /* Alinhado ao sidebar maximizado */
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: white;
    font-size: 18px !important;
}

.logo-hunter {
    height: 40px;
    margin-right: 10px;
}

.navbar-brand b{
    color: white;
}
/* Botão de minimizar/maximizar */
.navbar-mobile-toggler {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
}

    .navbar-mobile-toggler:hover {
        color: #ff6600;
    }

/* ====== Menu de Usuário ====== */
.navbar-user {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
}

    .navbar-user:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }

    .navbar-user .image {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }

.header-user-text {
    margin-left: 10px;
    font-size: 14px;
    color: white;
}

.dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

    .dropdown-menu .dropdown-item {
        color: black;
    }

        .dropdown-menu .dropdown-item:hover {
            background: #3C8CBD;
            color: white;
        }

.nav-link.dropdown-toggle::after {
    display: none !important; /* Remove a seta padrão do Bootstrap */
}

.nav-link .menu-icon {
    transition: transform 0.3s ease-in-out;
}

.loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
}

.loading {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

/* Força o texto a ser visível nos campos autocompletados */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #000000 !important; /* Texto preto */
    background-color: #ffffff !important; /* Fundo branco */
    transition: background-color 5000s ease-in-out 0s; /* Hack para manter o fundo */
}

/* Garante que o texto normal também seja visível */
.form-control {
    color: #000000 !important; /* Texto preto por padrão */
}

.btnEdit {
    --bs-btn-padding-y: 0.38rem !important;
}

/* --------------- loader ---------------- */

.loadingSubmit-layout {
    z-index: 9999;
    position: fixed;
    top: 0px;
    left: 0px;
    display: flex !important;
    justify-content: center;
    height: 100%;
    width: 100%;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.55);
    animation: fadeIn 0.9s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.spinner-border-layout {
    scale: 1.3;
}

.loadingDiv-layout {
    padding: 20px 30px;
    display: flex;

}

.div-loadingText-layout {
    width: 120px;
    text-align:start;
}

.loadingText-layout {
    font-size: 14px;
    margin-left: 15px;
    &.black{
        color: black !important;
    }

    &.white{
        color: white !important;
    }
}

.loadingText-layout::after {
    content: "\2026";
    font-size: 14px;
    margin-left: 10px;
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    transform: translateX(-0.50em);
    animation: loadingText steps(4, end) 1s infinite;
    width: 0px;

    &.black{
        color: black !important;
    }

    &.white{
        color: white !important;
    }
}

@keyframes loadingText {
    to {
        width: 1em;
    }
}

.loadingDiv-layout {
    justify-content: center;
    align-items: center;
}

/* --------------- loader ---------------- */

.ring {
    --uib-size: 40px;
    --uib-speed: 2s;
    --uib-color: #00acac;

    height: var(--uib-size);
    width: var(--uib-size);
    vertical-align: middle;
    transform-origin: center;
    animation: rotate var(--uib-speed) linear infinite;
}

.ring circle {
    fill: none;
    stroke: var(--uib-color);
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: stretch calc(var(--uib-speed) * 0.75) ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes stretch {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dashoffset: -124px;
    }
}

/* --------------- Lista ---------------- */

.section {
    max-width: 2000px;
    width: 95%;
    margin: auto;
}

/* Estilo geral das abas */
.nav-tabs {
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

    /* Estilo das abas inativas */
    .nav-tabs .nav-link {
        background-color: #f8f9fa; /* Cinza claro para abas inativas */
        color: #333333; /* Texto escuro para contraste */
        border: 1px solid #dee2e6;
        border-bottom: none;
        border-radius: 5px 5px 0 0;
    }

        /* Estilo da aba ativa */
        .nav-tabs .nav-link.active {
            border: 1px solid #dee2e6;
            border-bottom: none;
        }

        /* Hover nas abas inativas */
        .nav-tabs .nav-link:hover:not(.active) {
            background-color: #e9ecef; /* Leve destaque ao passar o mouse */
            color: #333333;
        }

/* Botões de permissão na página de perfis */
.btn-permission {
    min-width: 90px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-right: 5px;
}

.btn-permission.btn-primary {
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
}

.btn-permission.btn-outline-primary:hover {
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
}

.btn-permission i {
    margin-right: 5px;
}

.permission-button-group {
    display: flex;
    gap: 8px;
}

/* Cores específicas para cada tipo de permissão */
.btn-permission[onclick*="incluir"] {
    color: #28a745;
    border-color: #28a745;
}

.btn-permission[onclick*="incluir"]:hover,
.btn-permission[onclick*="incluir"].btn-primary {
    color: white;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-permission[onclick*="editar"] {
    color: #007bff;
    border-color: #007bff;
}

.btn-permission[onclick*="editar"]:hover,
.btn-permission[onclick*="editar"].btn-primary {
    color: white;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-permission[onclick*="excluir"] {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-permission[onclick*="excluir"]:hover,
.btn-permission[onclick*="excluir"].btn-primary {
    color: white;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Formatação dos nomes de recursos */
.nome-recurso {
    font-size: 14px;
    text-transform: capitalize; /* Primeira letra de cada palavra em maiúscula */
    font-weight: 500 !important;
    color: #333;
}

/* Estiliza os itens da lista de recursos */
#listaRecursos .list-group-item {
    transition: all 0.2s ease;
    padding: 10px 15px;
    border-left: 3px solid transparent;
}

#listaRecursos .list-group-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-left-color: #007bff;
}

.choices__input {
    background-color: transparent !important; 
    font-size: 11px !important;
    margin-bottom: 0px !important; 
    padding: 0px !important; 
}