/* Estilos gerais para o corpo da página */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fa;
    transition: margin-left 0.9s ease;
    overflow-x: hidden;
}

.ck-editor__editable {
    min-height: 550px !important;
}

/*ANIMAÇÃO DAS PARTIAL VIEWS*/


.animated-view {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.1s ease-out, transform 1.1s ease-out;
}

    .animated-view.animate {
        opacity: 1;
        transform: translateY(0);
    }


/* Menu lateral responsivo */
.sidebar {
    position: fixed;
    top: 0;
    left: -90%; /* Inicialmente escondido em mobile */
    width: 90%;
    max-width: 320px;
    height: 100%;
    background-color: #1a252f;
    color: white;
    padding-top: 20px;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.with-sidebar .sidebar {
    left: -90%; /* Mantém escondido por padrão em mobile */
}

.sidebar-open .sidebar {
    left: 0; /* Mostra a sidebar quando aberta em mobile */
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

/* Conteúdo principal ajustado por role */
.main-content {
    margin-left: 0;
    padding: 0px;
    transition: margin-left 0.3s ease;
}

.with-sidebar .main-content {
    margin-left: 0; /* Sem margem inicial em mobile */
}

.no-sidebar .main-content {
    margin-left: 0; /* Garante que não há margem para Jurado */
}

.sidebar-open .main-content {
    margin-left: 90%; /* Ajuste para mobile quando sidebar está aberta */
}

/* Media queries para responsividade */
@media (min-width: 992px) {
    .with-sidebar .sidebar {
        left: 0; /* Sidebar fixa e visível para Admin em desktop */
        width: 250px;
    }

    .with-sidebar .main-content {
        margin-left: 250px; /* Ajuste para a largura da sidebar em desktop */
    }

    .no-sidebar .main-content {
        margin-left: 0; /* Remove o espaço para Jurado */
    }

    .menu-toggle {
        display: none !important; /* Esconde o botão de toggle em desktop */
    }

    .sidebar-overlay {
        display: none !important; /* Overlay não é necessário em desktop */
    }
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block; /* Mostra o botão de toggle em mobile */
    }

    .with-sidebar .main-content {
        margin-left: 0; /* Sem margem em mobile a menos que a sidebar esteja aberta */
    }

    .sidebar-open .main-content {
        margin-left: 90%;
    }
}

/* Esconder overlay para usuários sem sidebar */
.no-sidebar .sidebar-overlay {
    display: none !important;
}

/* Restante do CSS permanece o mesmo */
.dropdown-menu {
    z-index: 1050;
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.sidebar a {
    color: #a0a8b3;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}



    .sidebar a:hover,
    .sidebar a.active {
        background-color: #2c3b4e;
        color: white;
        border-left: 3px solid #007bff;
    }


.sidebar .dropdown-toggle {
    position: relative;
}

    .sidebar .dropdown-toggle::after {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

.sidebar .dropdown-item {
    padding-left: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-left: none;
}

    .sidebar .dropdown-item:hover,
    .sidebar .dropdown-item.active {
        background-color: #253341;
        border-left: 3px solid #007bff;
    }
.dropdown-item:hover {
    background-color: #f4efef;
}

.sidebar .collapse:not(.show) {
    display: none;
}

.sidebar .collapse.show {
    display: block;
}

.sidebar .collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.sidebar .badge {
    background-color: #007bff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    float: right;
}

.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
}



.stats-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.traffic-chart {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .stats-card {
        min-width: 100%;
    }

    .main-content {
        padding: 15px;
    }

    .navbar {
        padding: 10px 15px;
    }
}

.card-img-top {
    border-radius: 50% !important;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto;
}

/*BARRA DE ESTATUS DO PANEL ADMIN E HOME*/
.navbar {
    background-color: #0d47a1;
    padding-left: 25px;
    padding-right: 25px;
    color: white;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    color: white;
}

.breadcrumb-item a {
    color: white !important;
    text-decoration: none;
}

.dropdown-menu-full {
    width: 350px;
    left: 0;
    right: 0;
    border-radius: 0;
    margin-top: 0;
    background-color: blue;
    padding: 1rem;
}

    .dropdown-menu-full a {
        color: black;
        display: block;
        padding: 5px 10px;
        text-decoration: none;
    }

        .dropdown-menu-full a:hover {
            background-color:  #1e58cc;
            color: black !important;
        }

        .dropdown-menu-full a.active {
            background-color:  #1e58cc;
            color: black !important;
        }

/*COR DAS BARRAS E DO MENU E RODAPE*/


.bg-menu {
    --bs-bg-opacity: 1;
    background-color: #1e58cc !important;
}

.bg-cor2 {
    --bs-bg-opacity: 1;
    background-color: #4a7ce2 !important;
}


/*FIM DO CODIGO BARRA DE NAVEGAÇÃO MENU ADMIN E HOME*/
/*DESTAQUE SLIDER*/
.carousel,
.carousel-inner,
.carousel-item {
    height: 614px; /* Define a altura fixa */
    width: 100vw;
}

    .carousel-item img {
        object-fit: cover; /* Mantém a proporção da imagem e cobre o container */
        width: 100%;
        height: 614px; /* Garante que a imagem também tenha a altura fixa */
    }

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
}

/*FOTO DO ARTILHEIRO DA COMPETIÇAÕ*/
.player-photo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}




/*BOTÃO TOPO PARA IR PRA CIMA DO SITE*/

#btnTopo {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 24px;
    background-color: #0d47a1;
    color: white;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: opacity 0.4s;
}

    #btnTopo:hover {
        background-color: #08306b;
    }


/*BLOG NEWS */

.badge-custom {
    background-color: #d9534f;
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.card-img-overlay {
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.title-small {
    font-size: 1rem;
    font-weight: bold;
}

.date-icon {
    margin-right: 5px;
}

.news-list .row + .row {
    margin-top: 0.75rem;
}

.thumbnail-fixed-size {
    width: 75px; /* Set your desired width */
    height: 115px; /* Set your desired height */
    object-fit: cover; /* This is key! It crops the image to fit the dimensions */
    display: block; /* Ensures the image takes up its defined space */
}

/* CSS for zoom effect */
.zoom-effect {
    transition: transform 0.3s ease-in-out; /* Smooth transition for zoom */
}

    .zoom-effect:hover {
        transform: scale(1.05); /* Slightly zoom in on hover */
    }

/* For the main featured image, ensure overflow is hidden if it's within a container that might cut off the zoom */
.card {
    overflow: hidden; /* Hide overflow from zoom effect if image goes outside card boundaries */
}
