:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --sidebar-bg: #ffffff;
    --sidebar-text: #64748b;
    --sidebar-hover: #f8fafc;
    --body-bg: #f1f5f9;
    --menu-item-active: #eff6ff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--body-bg);
    color: #334155;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.sidebar {
    height: 100vh;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    transition: var(--transition);
    z-index: 1000;
    border-right: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar.active {
    width: 280px;
}

.company-container {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.company-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
}

.company-name {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.sidebar-section {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-title {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-left: 12px;
}

.sidebar a {
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
}

.sidebar a:hover {
    color: #0f172a;
    background: var(--sidebar-hover);
}

.sidebar a.active {
    color: var(--primary-color);
    background: var(--menu-item-active);
    font-weight: 600;
}

.sidebar a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-toggle {
    font-size: 18px;
    cursor: pointer;
    background: #fff;
    border: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    color: #1e293b;
}

.menu-toggle.hidden {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.menu-toggle:hover {
    background: #f8fafc;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 16px;
    font-size: 16px;
    cursor: pointer;
    background: var(--sidebar-hover);
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    transition: var(--transition);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-left: 42px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb span {
    color: #94a3b8;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.profile-role {
    font-size: 12px;
    color: #64748b;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.sidebar-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-items {
    flex: 1;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sidebar.active {
        width: 260px;
    }
    .main-content {
        padding: 20px 16px;
    }
}

.badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: auto;
}

.badge.primary {
    background: #eff6ff;
    color: var(--primary-color);
}