/* Conteúdo do style.css anterior. Não há alterações aqui. */
body {
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    flex-direction: column;
}
main {
    height: 100vh;
}

/* ESTILO PARA O ÍCONE DE CHAT */
.chat-icon {
    position: fixed; /* Mantém-se no mesmo lugar, mesmo ao fazer scroll */
    bottom: 25px;    /* 25px de distância da parte inferior */
    right: 25px;     /* 25px de distância da parte direita */
    width: 60px;
    height: 60px;
    background-color: #0d6efd; /* Cor de fundo roxa */
    color: #fff;               /* Ícone branco */
    border-radius: 50%;         /* Deixa-o perfeitamente redondo */
    display: flex;
    align-items: center;        /* Centraliza o ícone verticalmente */
    justify-content: center;    /* Centraliza o ícone horizontalmente */
    font-size: 1.8rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sombra para dar profundidade */
    z-index: 1000;              /* Garante que fica por cima de outros elementos */
    transition: transform 0.2s ease-in-out; /* Animação suave */
}

.chat-icon:hover {
    transform: scale(1.1); /* Aumenta ligeiramente o tamanho ao passar o rato */
    color: #fff;
}

.imglogo {
width: 150px;
height: 150px;
border-radius: 50%;
margin-top: 10px;
margin-bottom: 10px;
margin-left: auto;
margin-right: auto;
flex: auto;
display: flex;
align-items: center;
}
#wrapper {
    display: flex;
    min-height: 100vh;
}

#sidebar-wrapper {

    min-height: 100vh;
    margin-left: -288px; /* Escondido por padrão */
    transition: margin .25s ease-out;
    width: 18rem;
    flex-shrink: 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0; /* Aparece quando a classe 'toggled' é adicionada */
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.4rem;
    color: #ecf0f1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sidebar-wrapper .list-group-item {
    background-color: transparent;
    color: #ecf0f1;
    border: none;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

#sidebar-wrapper .list-group-item i {
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #34495e;
    color: #ffffff;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #3a536b !important;
    color: #ffffff !important;
    font-weight: 500;
    border-left: 5px solid #8e44ad;
    padding-left: calc(1.25rem - 5px);
}

.sidebar-footer {
    bottom: 0;
    width: 100%;
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem 0;
    background-color: #212529;
    font-size: 0.8rem;
    z-index: auto;
    margin-top: auto;
    position: fixed; /* Mantém-se no mesmo lugar, mesmo ao fazer scroll */

}

#page-content-wrapper {
    min-width: 100vw;
    flex-grow: 1;
    transition: margin .25s ease-out;
    background-color: #ffffff;

}

#page-content-wrapper .navbar {
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}



#page-content-wrapper .navbar .avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #ddd;
}

#page-content-wrapper .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
#page-content-wrapper .btn-primary:hover {
    background-color: #0c57c9;
    border-color: #0c57c9;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }

    #wrapper.toggled #page-content-wrapper {
        margin-left: 0;
    }

    .btn.d-md-none {
        display: none !important;
    }
}

.hero-section {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.hero-section .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #8e44ad;
    margin-bottom: 0.5rem;
}

.hero-section .hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.hero-section .btn-custom {
    background-color: #8e44ad;
    border-color: #8e44ad;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hero-section .btn-custom:hover {
    background-color: #7d3ca1;
    border-color: #7d3ca1;
}

.action-card {
    border-left: 4px solid #8e44ad;
}

.action-card .card-body {
    padding: 1rem 1.25rem;
}

.action-card .font-weight-bold {
    font-weight: 600 !important;
    color: #333;
}

.action-card .text-uppercase {
    font-size: 0.85rem;
    color: #8e44ad;
    margin-bottom: 0.25rem;
}

.action-card .fa-2x {
    font-size: 1.8rem;
    color: #ced4da !important;
}

.action-card .text-muted {
    font-size: 0.75rem;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.book-grid .book-card {
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.book-grid .book-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.book-grid .book-card .card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.book-grid .book-card .text-muted {
    font-size: 0.7rem;
}

.news-grid .news-card {
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-grid .news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.news-grid .news-card .text-muted {
    font-size: 0.8rem;
}

.content-section {
    display: none;
    padding: 20px 0;
}

.content-section.active-section {
    display: block;
}