.wrapper .sidebar {
    width: 260px;
    z-index: 10;
    background: #54664b;
    position: fixed;
    top: 0;
    bottom: 0;

}

.content-page {
    position: relative;
    background: #75a15b7a !important;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, rgba(34, 44, 26, 1) 1%, rgba(161, 176, 132, 1) 100%);
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #4CAF50 !important;
}

.card-permissions fieldset legend {
    margin: 0;
    float: none;
    font-size: 0.9rem;
    width: auto;
    font-weight: bold;
    color: #0aa110;
}

.form-check-input:checked {
    background-color: #4CAF50;
    border-color: #009688;
}

.wrapper .content-page .breadcrumb>li,
.wrapper .content-page .breadcrumb>li>a {
    color: #3F4C38 !important;
    font-size: 0.95rem;
    text-decoration: none;
}

.navbar-top label {
    color: #3F4C38 !important;
}

.border-controls {
    border: 1px solid #fff !important;
}

.btn-outline-primary {
    color: #678d52 !important;
    border-color: #4CAF50 !important;
}

.nav-3d {
    border: 1px solid rgba(68, 79, 54, 0.5) !important;
    border-radius: 1px !important;
    background:
        linear-gradient(135deg, rgba(40, 48, 36, 0.9) 0%, rgba(25, 31, 20, 0.9) 100%),
        radial-gradient(circle at 30% 30%, rgba(128, 159, 93, 0.1) 0%, transparent 50%) !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(68, 79, 54, 0.2) inset;
}

.nav-2d {
    border: 1px solid rgba(128, 159, 93, 0.7) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(135deg, rgba(100, 119, 78, 0.95) 0%, rgba(80, 95, 62, 0.95) 100%),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%) !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 0 0 1px rgba(128, 159, 93, 0.3) inset;
}

/* Efeito de partículas animadas */
.nav-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(128, 159, 93, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 159, 93, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(128, 159, 93, 0.05) 0%, transparent 50%);
    opacity: 0;
    animation: particle-float 6s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.nav-2d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    opacity: 0;
    animation: particle-float 4s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

/* Borda neon animada */
.nav-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg,
            transparent,
            rgba(128, 159, 93, 0.5),
            transparent,
            rgba(128, 159, 93, 0.3),
            transparent);
    background-size: 400% 400%;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    animation: neon-border 3s linear infinite;
    transition: opacity 0.4s ease;
}

.nav-2d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg,
            transparent,
            rgba(128, 159, 93, 0.8),
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    background-size: 400% 400%;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0;
    animation: neon-border 2s linear infinite;
    transition: opacity 0.4s ease;
}

.nav-3d:hover {
    transform: translateY(-4px) scale(1.03);
    background:
        linear-gradient(135deg, rgba(100, 119, 78, 0.9) 0%, rgba(80, 95, 62, 0.9) 100%),
        radial-gradient(circle at 50% 50%, rgba(128, 159, 93, 0.2) 0%, transparent 70%) !important;
    border-color: rgba(128, 159, 93, 0.9) !important;
    box-shadow:
        0 20px 60px rgba(128, 159, 93, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(128, 159, 93, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.nav-3d:hover::before {
    opacity: 1;
}

.nav-3d:hover::after {
    opacity: 1;
}

.nav-2d:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(128, 159, 93, 1) !important;
    box-shadow:
        0 20px 60px rgba(128, 159, 93, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(128, 159, 93, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.nav-2d:hover::before {
    opacity: 1;
}

.nav-2d:hover::after {
    opacity: 1;
}

.nav-3d:active {
    transform: translateY(-2px) scale(0.99);
    transition: all 0.1s ease;
    box-shadow:
        0 8px 25px rgba(128, 159, 93, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-2d:active {
    transform: translateY(-2px) scale(0.99);
    transition: all 0.1s ease;
    box-shadow:
        0 8px 25px rgba(128, 159, 93, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Animações */
@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes neon-border {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Acessibilidade melhorada */
.nav-3d:focus,
.nav-2d:focus {
    outline: none;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(128, 159, 93, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Efeito de loading/processing */
.nav-3d.loading,
.nav-2d.loading {
    pointer-events: none;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(128, 159, 93, 0.3);
    }

    50% {
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(128, 159, 93, 0.6);
    }
}

.nav-3d::before,
.nav-3d::after,
.nav-2d::before,
.nav-2d::after {
    pointer-events: none;
    z-index: 0;
}

/* Garante que os links possam ser clicados */
.nav-3d a,
.nav-2d a {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Garante que o item todo seja clicável */
.nav-3d,
.nav-2d {
    pointer-events: auto;
    cursor: pointer;
}

.nav-2d:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(128, 159, 93, 1) !important;
    box-shadow:
        0 8px 25px rgba(128, 159, 93, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-2d:hover::before {
    left: 100%;
}

.nav-3d:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-2d:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Efeito de brilho adicional */
.nav-3d::after,
.nav-2d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-3d:hover::after,
.nav-2d:hover::after {
    opacity: 1;
}

/* Para melhor acessibilidade */
.nav-3d:focus,
.nav-2d:focus {
    outline: 2px solid rgba(128, 159, 93, 0.8);
    outline-offset: 2px;
}


.badge-sgi-success {
    color: #4CAF50;
    background-color: #6c757d2b;
}

.footer {
    background: #8dac7b8a !important;
    padding: 20px !important;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    position: fixed !important;
    bottom: 0;
    width: 100%;
}

.navbar-top {
    background-color: #8dac7b8a !important;
    color: #fff !important;
}

.wrapper .content-page .navbar-top .btn-menu {
    color: #fff;
}

.card {
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 35px 0 rgb(40 48 36);
}


.form-scroll {
    max-height: 70vh;
    /* ou outro valor desejado */
    overflow-y: auto;
    padding-right: 10px;
}

/* Scroll estilizado para navegadores WebKit (Chrome, Edge, Safari) */
.form-scroll::-webkit-scrollbar {
    width: 8px;
}

.form-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-scroll::-webkit-scrollbar-thumb {
    background-color: #A4C6A2;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

/* Scroll estilizado para Firefox */
.form-scroll {
    scrollbar-width: thin;
    scrollbar-color: #A4C6A2 #f1f1f1;
}

/* Chrome, Safari, Edge */
.card::-webkit-scrollbar {
    width: 8px;
}

.card::-webkit-scrollbar-track {
    background: transparent;
}

.card::-webkit-scrollbar-thumb {
    background-color: #A4C6A2;
    border-radius: 10px;
}

.card::-webkit-scrollbar-thumb:hover {
    background-color: #8BAB8D;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

.badge-warning {
    color: #fff;
    background-color: #ffc107;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.badge-info {
    color: #fff;
    background-color: #17a2b8;
}

div.dt-buttons>.dt-button,
div.dt-buttons>div.dt-button-split .dt-button {
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: white !important;
    background: #668567 !important;
}

.pagination .page-item.active .page-link {
    background: #6d8161 !important;
    color: #fff !important;
    border-color: #2b4868 !important;
}

/* ==================================== */
.tile-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.circle-tile {
    width: calc(20% - 30px);
    /* 5 por linha com gap */
    min-width: 180px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgb(40 48 36);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.circle-tile:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 15px #4CAF50;

}

.circle-tile-heading {
    background: linear-gradient(135deg, #6c8160, #3F4C38);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px 0;
    color: white;
}

.circle-tile-content {
    padding: 20px;
}

.circle-tile-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
}

.circle-tile-number {
    font-size: 2rem;
    font-weight: bold;
    color: #037F38;
}

.circle-tile-footer {
    display: inline-block;
    margin-top: 15px;
    color: #037F38;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.circle-tile-footer:hover {
    color: #02572B;
    text-decoration: underline;
}

/* Responsivo */
@media (max-width: 1200px) {
    .circle-tile {
        width: calc(33.33% - 30px);
        /* 3 por linha */
    }
}

@media (max-width: 768px) {
    .circle-tile {
        width: calc(50% - 30px);
        /* 2 por linha */
    }
}

@media (max-width: 480px) {
    .circle-tile {
        width: 100%;
    }
}

.flex-column {
    flex-direction: column !important;
    margin-bottom: 40% !important;
}
