html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

footer {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.footer-text {
    font-size: 0.8rem;
    margin: 0 auto;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    height: 100vh;
}
body {
    height: 100%
}
.sidebar {
    height: 100%;
    min-height: 100vh;
    width: 250px;
    top: 0;
    left: 0;
    padding-top: 20px;
    transition: all 0.3s;
}

    .sidebar a {
        text-decoration: none;
        font-size: 18px;
        color: #fff;
        padding: 15px;
        display: block;
        transition: 0.3s;
    }

        .sidebar a:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

    .sidebar .active {
        background-color: #007bff;
    }

.content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

/* Botão para colapsar a sidebar */
#sidebarCollapse {
    position: absolute;
    top: 10px;
    left: 260px;
    border: none;
    background-color: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Para telas menores */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        left: -200px;
    }

        .sidebar.active {
            left: 0;
        }

    #sidebarCollapse {
        left: 10px;
    }

    .content {
        margin-left: 0;
    }
}

/* Mobile Sidebar Styles */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1040;
    border: none;
    background: transparent;
    color: #333;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: none;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1050;
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.show {
        transform: translateX(250px);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1045;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    /* Adjust main content when sidebar is hidden */
    [role="main"] {
        width: 100% !important;
    }
}

.navbar-toggler {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1030;
    padding: 0.5rem;
    color: #333;
    border: none;
    background: transparent;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    padding: 1.5rem 1rem;
}

.offcanvas {
    width: 250px !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (min-width: 768px) {
    .w-md-75 {
        width: calc(100% - 250px) !important;
    }
}

.logo-container {
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.logo-sidebar {
    max-width: 180px;
    display: block;
    margin: 0 auto;
}

nav a {
    display: block;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
