:root {
    --sidebar-bg: #ffffff;
    --top-nav-bg: #1e1b4b; /* Deep Navy Indigo */
    --top-nav-border: #e2e8f0;
    --accent-color: #4f46e5;
    --text-primary: #0f172a;
    --text-on-dark: #f8fafc;
    --text-secondary: #64748b;
    --bg-main: #f8fafc;
    --sidebar-width: 260px;
    --navbar-height: 70px;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Layout Wrapper */
.wrapper {
    display: flex;
    padding-top: var(--navbar-height);
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--text-primary);
    height: calc(100vh - var(--navbar-height));
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--top-nav-border);
    padding: 1.5rem 0.75rem;
}

.sidebar-menu {
    list-style: none;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    font-size: 14px;
}

.menu-link:hover {
    background: #f1f5f9;
    color: var(--accent-color);
}

.menu-link.active {
    background: #eef2ff;
    color: var(--accent-color);
    font-weight: 400;
    position: relative;
}

.menu-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 0 4px 4px 0;
}

.menu-link i {
    width: 20px;
    height: 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.menu-link:hover i {
    transform: scale(1.1);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Bar */
.top-nav {
    width: 100%;
    height: var(--navbar-height);
    background: var(--top-nav-bg);
    border-bottom: 1px solid var(--top-nav-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--top-nav-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-info:hover {
    border-color: var(--accent-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* Content Area */
.content {
    padding: 32px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Reusable Components */
.card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--top-nav-border);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar.open {
        transform: translateX(0);
    }
}
