/* Ajustes generales */
body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Estilos personalizados para Bootstrap */
.btn-outline-primary {
    --bs-btn-color: #495057;
    --bs-btn-border-color: #495057;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #495057;
    --bs-btn-hover-border-color: #495057;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #495057;
    --bs-btn-active-border-color: #495057;
    --bs-btn-disabled-color: #495057;
    --bs-btn-disabled-border-color: #495057;
}

/* Navbar */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    margin-left: 0 !important;
}


/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -260px;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    padding: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}
.sidebar h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.sidebar.active {
    left: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #495057;
    font-size: 16px;
    display: block;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar ul li a:hover {
    background: #495057;
    color: white;
}


/* Contenido principal */
.main-content {
    margin-left: 280px;
    padding: 20px;
    flex: 1;
    transition: margin-left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}


.main-content.shifted {
    margin-left: 0 !important;
}

/* Footer */
footer {
    background-color: #fff;
    text-align: center;
    padding: 5px;
    width: 100%;
    margin-top: auto;
    position: relative;
}

footer p {
    font-size: 0.8em;
    margin: 0px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
    footer {
        position: relative;
    }
 
}

@media (min-width: 992px) {
    .navbar .container-fluid {
      /*  justify-content: flex-end;*/
    }
}
@media (min-width: 769px) {

    .sidebar {
        left: 0;
    }
    .overlay {
        display: none !important;
    }
    .d-lg-none{
        display: none !important;
    }
    .navbar .container-fluid {
        justify-content: flex-end;
    }
}