:root {
    --sidebar-width: 280px;
    --primary-color: #333;
    --hover-bg: rgba(0, 0, 0, 0.04);
    --selected-bg: rgba(0, 0, 0, 0.08);
    --border-color: #e0e0e0;
    --button-bg: #000;
    --error-color: #ff3b30;
    --success-color: #34c759;
    --error-bg: #ffefef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--primary-color);
    background-color: #fff;
}

.container {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fa;
    padding: 20px;
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    background: white;
    margin-right: 12px; /* Reduced from 24px to 12px */
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.sidebar-header {
    padding: 0 16px;
    margin-bottom: 16px;
}

.language-toggle {
    position: absolute;
    top: 32px;
    right: 44px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 0;
    z-index: 50;
}

.language-option {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
    transition: all 0.2s ease;
    border: none;
    background: none;
    font-weight: 500;
}

.language-option svg {
    width: 16px;
    height: 16px;
}

.language-option.active {
    background: var(--hover-bg);
    color: #007bff;
}

.language-option:not(.active) {
    opacity: 0.7;
}

.language-option:hover:not(.active) {
    opacity: 1;
}

.language-separator {
    color: var(--border-color);
    margin: 0 4px;
    user-select: none;
}

.nav-items {
    list-style: none;
    margin-top: 8px;
}

.nav-items li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 12px;
}

.nav-items li a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 1.5;
}

.nav-items li a:hover {
    background-color: var(--hover-bg);
    transform: translateX(4px);
}

.nav-items li a.selected {
    background-color: var(--selected-bg);
    color: #007bff;
    font-weight: 500;
    transform: translateX(4px);
}

.nav-items li a.selected svg {
    color: #007bff;
}

.content {
    flex: 1;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content.no-sidebar {
    margin: 0 auto;
    max-width: 1000px;
    padding: 30px;
    width: 100%;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 80;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .sidebar {
        width: 240px;
    }

    .language-toggle {
        right: 20px;
        top: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 280px;
        margin-right: 0;
        padding-top: 60px;
        transition: left 0.3s ease;
        overflow-y: auto;
        border-radius: 0;
        z-index: 100;
    }

    .close-sidebar {
        display: block;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .content {
        margin-top: 60px;
        padding: 20px;
        border-radius: 8px;
    }

    .language-toggle {
        right: 15px;
        top: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    .content {
        padding: 15px;
        margin-top: 50px;
    }

    .language-toggle {
        top: 10px;
        right: 10px;
    }
}

.sidebar-firm-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: #222;
    letter-spacing: 0.01em;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 12px;
    padding-bottom: 2px;
    background: linear-gradient(90deg, #f5f7fa 0%, #e9ecef 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.sidebar-user-info {
    color: #6c757d;
    font-size: 0.93rem;
    margin-bottom: 18px;
    margin-left: 0;
    margin-right: 0;
    padding: 4px 24px 12px 24px;
    border-left: none;
    background: linear-gradient(90deg, #f5f7fa 0%, #e9ecef 100%);

    font-style: italic;
    min-height: 22px;
    display: flex;
    align-items: center;
}
