:root {
    --primary-color: #0d6efd;
    --sidebar-width: 250px;
    --header-height: 60px;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    border-right: 1px solid #dee2e6;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    color: #495057;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #e9ecef;
}

.nav-link.active {
    color: var(--primary-color);
    background-color: #e7f1ff;
    border-right: 3px solid var(--primary-color);
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* Header */
.top-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Cards - Overriding/Extending Layui Card if needed, or just removing custom card styles */
.layui-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.layui-card-header {
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .top-header {
        padding: 0 1rem;
    }
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}