body, html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ececec;
    font-family: 'Roboto';
}

#logostart {
    width: 150px;
    margin-left: auto;
}

#topbar {
    background-color: #808080;
}

#navbar {
    display: flex;
    align-items: center;
    width: 100%;
}

#navbar a {
    color: #ffffff;
}

#navbar a:hover {
    color: #3e48a3;
}

body, html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ececec;
}

main {
    display: flex;
    min-height: calc(100vh - 56px);
}

#sidebar {
    width: 100%;
    max-width: 320px;
    background-color: #f5f5f5;
    padding: 30px 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    color: #2c2c2c;
}

#sidebar h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 20px;
}

#sidebar .btn {
    margin-bottom: 20px;
    background-color: #ffffff;
    color: #2c2c2c;
    border: 1px solid #ddd;
    width: 100%;
    text-align: center;
    border-radius: 10px;
}

#sidebar ul.navbar-nav {
    width: 100%;
    padding: 0;
}

#sidebar .nav-item {
    margin: 10px 0;
    text-align: center;
}

#sidebar .nav-link {
    font-size: 16px;
    color: #2c2c2c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

#sidebar .nav-link i,
#sidebar .nav-link span {
    font-size: 24px;
    color: #4a568d;
}

#sidebar .nav-link:hover {
    color: #3e48a3;
}

#sidebar a {
    color: #ffffff;
}

#sidebar a:hover {
    color: #3e48a3;
}

#content {
    width: 88%;
    padding: 20px;
    background: #ececec;
}

ion-icon {
    transition: transform 0.2s ease;
    color: #ffffff;
}

ion-icon:hover {
    transform: scale(1.2);
    color: #3e48a3;
}

#hideSidebarBtn {
    font-size: 32px;
    color: #ffffff;
    margin-left: 15px;
}

#hideSidebarBtn:hover {
    color: #3e48a3;
}

#footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 10px 20px;
    font-size: 9px;
    background: none;
    color: #000;
    z-index: 10;
}

#dashboard_container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

#dashboard_modulos,
#dashboard_diarias,
#dashboard_atos {
    background-color: #f9f9f9;
    padding: 20px;
    color: #4a568d;
    border-radius: 20px;
    width: 30%;
    min-width: 280px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

#dashboard_modulos hr,
#dashboard_diarias hr,
#dashboard_atos hr {
    border: none;
    border-top: 2px solid #4a568d;
    width: 50%;
    margin: 10px auto;
}

.btn-rounded {
    border-radius: 50px;
}

.btn-success {
    background-color: #196335;
    border-color: #196335;
    color: #fff;
}

.btn-warning:hover {
    background-color: #2f7e4d;
    border-color: #196335;
}

.btn-warning {
    background-color: #e4b23f;
    border-color: #e4b23f;
    color: #fff;
}

.btn-warning:hover {
    background-color: #f1b638;
    border-color: #f1b638;
}

.btn-info {
    background-color: #0d86b6;
    border-color: #0d86b6;
    color: #fff;
}

.btn-info:hover {
    background-color: #36a5d1;
    border-color: #36a5d1;
}

/* --------------------- */
/*      GRID DE MÓDULOS */
/* --------------------- */
.ag-courses_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* distribui igualmente */
    gap: 20px;
    margin-top: 40px;
}

.ag-courses_item {
    flex: 0 0 18%;
    max-width: 18%;
    background: #969696;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centralizar conteúdo interno */
.ag-courses-item_content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Responsividade */
@media (max-width: 1200px) {
    .ag-courses_item {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .ag-courses_item {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media (max-width: 768px) {
    .ag-courses_item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .ag-courses_item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.ag-courses_item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #7e7e7e; /* um tom um pouco mais escuro */
}

