/* Main Container - #conector */
#conector {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    background-color: #f4f4f4;
}

/* Sidebar Styles - #sidebar */
#sidebar {
    width: 250px;
    background-color: #2d3748;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 10;
    transition: transform 1s ease;
}

#sidebar a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    transition: background-color 1s ease;
}

#sidebar a:hover {
    background-color: #4a5568;
}

/* Hide subsections by default */
.hidden {
    display: none;
}

/* Rotate the arrow when the section is open */
.rotate-180 {
    transform: rotate(180deg);
}

/* Add smooth transitions to the arrow rotation */
.transition-transform {
    transition: transform 1s ease;
}

.section-header,
.subsection-item {
    text-align: left; /* Align text to the left */
}

/* Hover effect for section headers */
.section-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 1s ease;
}

/* Hover Effect */
.section-header:hover {
    background-color: #4a5568;
}

.subsection-item {
    padding: 5px 20px;
}

/* Sidebar hover effect for subsections */
.subsection-item a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    padding: 8px 0;
    transition: background-color 1s ease;
}

.subsection-item a:hover {
    background-color: #4a5568;
}

.subsection-item:hover {
    background-color: #4a5568;
}

.logout-button {
    background-color: #ff7979;
}

.logout-button:hover {
    background-color: #ff4e4e;
}


/* Mobile Sidebar Styles */
#mobile-sidebar {
    display: block;
    max-height: 100vh;
    overflow-y: auto;
}

#mobile-sidebar .section-header,
#mobile-sidebar .subsection-item {
    text-align: left;
}

#view {
    flex: 1;
    margin-left: 250px;
    padding: 9px;
    overflow-y: auto;
    background-color: #ffffff;
    transition: margin-left 0.3s ease;
}

.flag {
    border-radius: 3px;
}

.dropdown-menu {
    min-width: 120px;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
}

.dropdown-toggle:hover {
    text-decoration: underline;
}

/* Mobile Sidebar */
@media (max-width: 767px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    /* Make mobile sidebar fullscreen */
    #mobile-sidebar {
        display: block;
        max-height: 100vh;
        overflow-y: auto;
    }

    #view {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 20;
        cursor: pointer;
        font-size: 30px;
        color: #2d3748;
    }
}

.sidebar-toggle {
    display: none;
}

