:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
}

.main-content-wrapper {
    margin-left: var(--sidebar-width);
    overflow-x: auto;
    overflow-y: auto;
    width: calc(100% - var(--sidebar-width));
    height: calc(100vh - 60px);
    padding-top: 60px;
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Layout will be updated dynamically via JavaScript */

.content-container {
    padding: 20px;
}

.fixed-header {
    position: fixed;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 100;
    background-color: white;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
}

.header-right-side {
    display: flex;
    gap: 10px;
}

.fixed-header > :only-child {
    margin-left: auto;
}

.pagination-container {
    width: 100%;
    position: sticky;
    left: 0;
    background: white;
    padding: 15px 0;
    margin-top: 20px;
    z-index: 10;
}

.pagination {
    margin-bottom: 0;
}

.records-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.records-per-page label {
    margin-bottom: 0;
    white-space: nowrap;
}

.main-container {
    display: flex;
    flex-direction: column;
    margin: 20px;
    flex-grow: 1;
    padding: 20px;
    width: calc(100% - 270px);
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown > button {
    border: none;
    outline: none;
    background: none;
    display: inline;
    height: 100%;
    align-items: center;
}

.lang-menu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1;
    border-radius: 8px;
    padding: 0.5em 0;
}

.lang-menu button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.5em 1em;
    cursor: pointer;
}

.lang-menu button:hover {
    background-color: #f0f0f0;
}

.lang-menu .active {
    color: green;
    font-weight: bold;
}

.lang-dropdown:hover .lang-menu {
    display: block;
}
