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

.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

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

.header-left h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -0.3px;
    margin: 0;
    white-space: nowrap;
}

.menu-toggle {
    width: 38px;
    height: 38px;
    background: #f5f7fa;
    border: 1px solid #e8eef3;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.menu-toggle:hover i {
    color: white;
}

.menu-toggle i {
    font-size: 16px;
    color: #646a73;
    transition: color var(--transition-fast);
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -0.3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f5f7fa;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.header-user:hover {
    background: #e8eef3;
}

.header-user .avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #4a6cf7 0%, #6b8cff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

.header-user .avatar i {
    color: white;
    font-size: 14px;
}

.header-user .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.header-user .chevron {
    font-size: 12px;
    color: var(--text-muted);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-normal);
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: background var(--transition-fast);
    line-height: 1.5;
}

.user-dropdown a:hover {
    background: #f5f7fa;
    color: var(--primary);
}

.user-dropdown a:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.content {
    flex: 1;
    padding: 28px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-content {
    flex: 1;
    padding: 28px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 28px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.page-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 8px 0 0;
    font-weight: 400;
    line-height: 1.6;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 18px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.search-input {
    flex: 1;
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fafbfc;
    transition: all var(--transition-fast);
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.search-input input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #90959f;
    font-size: 16px;
}

.search-input select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: white;
    min-width: 160px;
    cursor: pointer;
    line-height: 1.5;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination button {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    letter-spacing: 0.1px;
}

.pagination button:hover {
    background: #f5f7fa;
    border-color: var(--primary);
}

.pagination button.active {
    background: linear-gradient(135deg, #4a6cf7 0%, #6b8cff 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.3);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #d0d5dd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-index-loading);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #e8eef3;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.loading-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.loading-progress {
    width: 200px;
    height: 6px;
    background: #e8eef3;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 3px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
    }
    50% {
        width: 80%;
    }
    100% {
        width: 100%;
    }
}
