:root {
    --primary-color: #0d6efd;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: #e9ecef;
    --sidebar-active-bg: #0d6efd;
    --sidebar-active-color: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    height: 70px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.sidebar-header span {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.menu-label {
    padding: 0 24px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-top: 16px;
    letter-spacing: 0.5px;
}

.nav-item {
    list-style: none;
    margin-bottom: 4px;
    padding: 0 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link i {
    font-size: 18px;
    margin-right: 12px;
    color: var(--text-muted);
}

.nav-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--text-color);
}

.nav-link.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
}

.nav-link.active i {
    color: var(--sidebar-active-color);
}

/* Main Content Area */
.main-wrapper {
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: 70px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.breadcrumb-nav {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 8px;
}

.breadcrumb-nav span {
    color: var(--text-color);
    margin-left: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    position: relative;
    width: 250px;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #f8f9fa;
    font-size: 13px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.icon-btn:hover {
    color: var(--text-color);
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.profile-dropdown img, .profile-dropdown .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
}

/* Content Container */
.content-container {
    padding: 32px;
    flex-grow: 1;
}
