.sidebar {
    display: flex;
    position: relative;
    min-width: 200px;
    max-width: 500px;
    transition: width 0.3s ease;
    border-right: none !important;
}

#sidenav {
    width: 100% !important;
    display: flex !important;
    overflow: hidden;
    padding-right: 10px;
}

#sidenav-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
    padding-right: 5px;
    cursor: col-resize;
}

.sidenav-handle-line {
    width: 1px;
    height: 100%;
    transition: background-color 0.1s ease;
    background: #ddd;
    user-select: none;
    cursor: col-resize;
}

.nav-container {
    width: 100%;
}

.sidebar.narrow .menu-name {
    max-width: 100%;
}

#sidenav-handle::before {
    content: "";
    width: 2px;
    height: 20px;
    background: #ddd;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#sidenav-handle:hover::before .sidenav-handle-line {
    opacity: 1;
}

#sidenav-handle:hover .sidenav-handle-line {
    width: 2px;
    background: #6698ff;
}

#sidenav-handle:active .sidenav-handle-line {
    width: 2px;
    background: #6698ff;
}

.dragging {
    cursor: col-resize !important;
}

.dragging * {
    cursor: col-resize !important;
    user-select: none !important;
}

.menu-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.1s ease;
}

.sidebar.narrow .menu-name {
    max-width: 120px;
}

.sidebar.narrow .menu-content {
    padding-right: 5px;
}

.menu-content {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-content:hover {
    background-color: #e9ecef;
}

.menu-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.layout.container-section {
    flex: 1;
    min-width: 0;
}

.layout.wrap {
    display: flex;
}

@media (max-width: 768px) {
    .sidebar {
        min-width: 150px;
        width: 200px;
    }
}

.header {
    padding: 12px 25px;
}

.header-logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-opreation {
    position: relative;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.language-current:hover,
.language-current:focus,
.language-current:active {
    background-color: #6698ff1a;
    color: #6698ff;
    outline: none;

    .i18n-icon {
        filter: brightness(0) saturate(100%) invert(39%) sepia(77%) saturate(1739%) hue-rotate(213deg) brightness(98%) contrast(103%);
    }

    .language-text {
        color: #6698ff;
    }

    .language-arrow {
        color: #6698ff;
    }
}

.i18n-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}

.language-text {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.language-arrow {
    margin-left: auto;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #666;
}

.language-selector.active {
    .language-current {
        background-color: #6698ff1a;
        color: #6698ff;

        .i18n-icon {
            filter: brightness(0) saturate(100%) invert(39%) sepia(77%) saturate(1739%) hue-rotate(213deg) brightness(98%) contrast(103%);
        }

        .language-text {
            color: #6698ff;
        }

        .language-arrow {
            color: #6698ff;
            transform: rotate(180deg);
        }
    }
}

.language-dropdown {
    position: absolute;
    margin-top: 4px;
    padding: 12px 0;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 0px 16px #00000014;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
    outline: none;
}

.language-option.selected {
    background-color: #6698ff1a !important;
    color: #6698ff !important;

    span {
        color: #6698ff !important;
    }
}

.language-option:focus {
    background-color: #6698ff1a;
    color: #6698ff;
    outline: none;

    span {
        color: #6698ff;
    }
}

.language-option {
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;

    span {
        transition: color 0.2s ease;
    }
}

@media (max-width: 768px) {
    .language-current {
        min-width: 100px;
        padding: 6px 10px;
    }

    .language-text {
        font-size: 13px;
    }

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

    .language-option {
        padding: 8px 12px;
    }

    .language-option span {
        font-size: 13px;
    }
}

.main {
    top: 63px !important;
}
