/* Reset básico */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
}

/* Estrutura principal */
#wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: #fff;
    min-height: 100vh;
    padding: 1rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
}

.sidebar a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    margin: 4px 0;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.sidebar a:hover {
    background-color: #495057;
    color: #fff;
}



/* RESPONSIVO */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        height: calc(100% - 56px);
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .overlay {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100% - 56px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
}

.content {
    flex: 1;
    padding: 30px;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Cards no painel */
.card {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Ajustes para grid de sistemas */
.card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: cover;

}

/* Rodapé */
footer {
    font-size: 0.85rem;
    background-color: #212529;
}


/* Responsividade */
@media (max-width: 768px) {
    #wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .sidebar a {
        padding: 10px;
        margin: 0 5px;
    }

    .content {
        padding: 20px;
    }
}


