/* assets/css/sidebar.css */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #4a2c2a; /* Cor principal da Diocese */
    --sidebar-link-color: #f0e6d2;
    --sidebar-link-hover-bg: rgba(240, 230, 210, 0.1);
    --sidebar-link-active-bg: #c8a464;
    --sidebar-link-active-color: #4a2c2a;
}

body {
    display: flex;
    background-color: #f8f9fa;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1030;
    display: flex;
    flex-direction: column;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 1rem;
    transition: margin-left 0.3s ease-in-out;
    
}

.sidebar-logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.sidebar-logo img {
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.sidebar-nav {
    list-style: none;
    padding-left: 0;
    flex-grow: 1;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-link-color);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--sidebar-link-hover-bg);
}

.sidebar-nav .nav-link.active {
    background-color: var(--sidebar-link-active-bg);
    color: var(--sidebar-link-active-color);
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 1rem;
    text-align: center;
}

.sidebar-footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-align: center;
}

.mobile-header {
    display: none; /* Oculto em telas grandes */
}

/* Estilos para telas menores (tablets e celulares) */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 70px; /* Espaço para o header mobile */
    }
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--sidebar-bg);
        color: white;
        padding: 0 1rem;
        z-index: 1020;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1029;
        display: none;
    }
    .sidebar.active + .sidebar-overlay {
        display: block;
    }
}
