.sides {
    display: flex;
    min-height: 100vh;
}
.side1 {
    position: fixed;
    left: 0;
    top: 0;
    width: 30%;
    height: 100vh;
    background-color: var(--primary_color);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.side1 .logo {
    margin-bottom: 30px;
    max-width: 200px;
    height: auto;
}
.side1 h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: white;
}
.sidebar-nav {
    margin-top: 20px;
    width: 100%;
}
.sidebar-nav .sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    margin: 10px 0;
}
.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 16px;
}
.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}
.sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}
/* Select dropdown - hidden on desktop, shown on mobile */
/* Hide the original select (Tom Select hides it anyway) */
.side1 .sidebar-nav .sidebar-nav-select {
    display: none !important;
}
/* Tom Select wrapper in sidebar - hidden on desktop */
.side1 .sidebar-nav .ts-wrapper {
    display: none;
    width: 100% !important;
}
.side2 {
    margin-left: 30%;
    width: 70%;
    padding: 40px;
    overflow-y: auto;
    min-height: 100vh;
}
.side2 .content-wrapper {
    max-width: 600px;
    margin: 0 auto;
}
/* RTL Support */
[dir="rtl"] .side1 {
    left: auto;
    right: 0;
}
[dir="rtl"] .side2 {
    margin-left: 0;
    margin-right: 30%;
}
@media (max-width: 767px) {
    .sides {
        flex-direction: column;
    }
    .side1 {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
    }
    .side2 {
        margin-left: 0;
        width: 100%;
    }
    .side1 h1 {
        font-size: 24px;
    }
    [dir="rtl"] .side2 {
        margin-right: 0;
    }
    /* Mobile: Hide the list, show the Tom Select dropdown */
    .sidebar-nav .sidebar-nav-list {
        display: none;
    }
    .side1 .sidebar-nav .ts-wrapper {
        display: block !important;
    }
}
/* Hide the side menu if the flag is set */
.sides[data-hide-side-menu-boo="true"] {
    .side1 {
        display: none;
    }
    .side2 {
        margin-left: 0;
        width: 100%;
    }
}

html[dir="rtl"] .sides[data-hide-side-menu-boo="true"] .side2 {
    margin-right: 0;
}
